Skip to content

Commit 69a5312

Browse files
author
mohdsaid497566
committed
ip as derived type (#828)
1 parent 32c0347 commit 69a5312

File tree

3 files changed

+152
-111
lines changed

3 files changed

+152
-111
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"python.defaultInterpreterPath": "${workspaceFolder}/build/venv/bin/python3",
1717

1818
"files.associations": {
19-
"*.f90": "FortranFreeForm",
20-
"*.fpp": "FortranFreeForm",
19+
"*.f90": "fortran-modern",
20+
"*.fpp": "fortran-modern"
2121
},
2222

2323
"fortran.preferredCase": "lowercase",

src/common/m_derived_types.fpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,22 @@ module m_derived_types
391391
real(wp), dimension(:, :), allocatable :: xyz_to_r_ratios !< List of [xyz]/r for mom source term vector
392392
end type source_spatial_type
393393
394+
!> @brief Type for storing point data
395+
type :: point_data
396+
real(wp), dimension(:), allocatable :: alpha_rho !< Partial densities
397+
real(wp), dimension(:), allocatable :: alpha !< Volume fractions
398+
real(wp) :: pressure !< Pressure
399+
real(wp), dimension(3) :: vel !< Velocity
400+
real(wp) :: c !< Color function (for surface tension)
401+
real(wp), dimension(:), allocatable :: r !< Bubble radii
402+
real(wp), dimension(:), allocatable :: v !< Bubble radial velocities
403+
real(wp), dimension(:), allocatable :: pb !< Bubble pressures
404+
real(wp), dimension(:), allocatable :: mv !< Mass of vapor
405+
real(wp), dimension(:), allocatable :: nmom !< Moments for QBMM
406+
real(wp), dimension(:), allocatable :: presb !< Node pressures for bubbles
407+
real(wp), dimension(:), allocatable :: massv !< Node masses for bubbles
408+
end type point_data
409+
394410
!> Ghost Point for Immersed Boundaries
395411
type ghost_point
396412
integer, dimension(3) :: loc !< Physical location of the ghost point
@@ -400,6 +416,7 @@ module m_derived_types
400416
integer :: ib_patch_id !< ID of the IB Patch the ghost point is part of
401417
logical :: slip
402418
integer, dimension(3) :: DB
419+
type(point_data) :: ip
403420
end type ghost_point
404421
405422
!> Species parameters

0 commit comments

Comments
 (0)