-
Notifications
You must be signed in to change notification settings - Fork 105
Equation Indices and BC Types - Issue (#828) #860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
69a5312
f5554d4
d60b4ea
bf2a897
e689a6b
485b1cb
f50daac
11e1e71
4b813ab
b11682b
57f6b1a
6bd7e36
1e7c62b
37aa5d9
ac48caa
bd3269a
514b771
ab86026
f6fc6a0
74ccd77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,37 @@ module m_derived_types | |
integer, dimension(:, :), allocatable :: moms !< Moment indices for qbmm | ||
integer, dimension(:, :, :), allocatable :: fullmom !< Moment indices for qbmm | ||
end type bub_bounds_info | ||
|
||
!> @name Annotations of the structure of the state and flux vectors in terms of the | ||
!! size and the configuration of the system of equations to which they belong | ||
!> @{ | ||
type system_of_equations | ||
integer :: sys_size !< Size of the system of equations | ||
type(int_bounds_info) :: cont !< Indexes of first & last continuity eqns. | ||
type(int_bounds_info) :: mom !< Indexes of first & last momentum eqns. | ||
integer :: E !< Index of energy equation | ||
integer :: n !< Index of number density | ||
type(int_bounds_info) :: adv !< Indexes of first & last advection eqns. | ||
type(int_bounds_info) :: internalEnergies !< Indexes of first & last internal energy eqns. | ||
type(bub_bounds_info) :: bub !< Indexes of first & last bubble variable eqns. | ||
integer :: alf !< Index of void fraction | ||
integer :: gamma !< Index of specific heat ratio func. eqn. | ||
integer :: pi_inf !< Index of liquid stiffness func. eqn. | ||
type(int_bounds_info) :: B !< Indexes of first and last magnetic field eqns. | ||
type(int_bounds_info) :: stress !< Indexes of first and last shear stress eqns. | ||
type(int_bounds_info) :: xi !< Indexes of first and last reference map eqns. | ||
integer :: b_size !< Number of elements in the symmetric b tensor, plus one | ||
integer :: tensor_size !< Number of elements in the full tensor plus one | ||
type(int_bounds_info) :: species !< Indexes of first & last concentration eqns. | ||
integer :: c !< Index of color function | ||
integer :: damage !< Index of damage state variable (D) for continuum damage model | ||
integer, dimension(3) :: dir | ||
real(wp), dimension(3) :: dir_flg | ||
integer, dimension(3) :: dir_tau !!used for hypoelasticity=true | ||
integer, dimension(2) :: Re_size | ||
integer, allocatable, dimension(:, :) :: Re | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you may need to be careful with this on GPU cases (especially Frontier/Cray). i forget exactly how we deal with cases where we have an allocatable in a derived type but i would look for other examples of the code that do this. also, isn't Re a real and not an integer? and why is its size unknown at compile time? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I kinda omitted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep this works There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have a look at MFC/src/simulation/m_acoustic_src.fpp Line 59 in db44da1
|
||
end type system_of_equations | ||
!> @} | ||
|
||
!> Defines parameters for a Model Patch | ||
type ic_model_parameters | ||
|
@@ -345,6 +376,11 @@ module m_derived_types | |
type(vec3_dt), allocatable, dimension(:) :: var | ||
end type mpi_io_airfoil_ib_var | ||
|
||
!> Derived type for boundary flags | ||
type boundary_bounds | ||
real(wp) :: xb, xe, yb, ye, zb, ze | ||
end type boundary_bounds | ||
|
||
!> Derived type annexing integral regions | ||
type integral_parameters | ||
real(wp) :: xmin !< Min. boundary first coordinate direction | ||
|
@@ -391,6 +427,22 @@ module m_derived_types | |
real(wp), dimension(:, :), allocatable :: xyz_to_r_ratios !< List of [xyz]/r for mom source term vector | ||
end type source_spatial_type | ||
|
||
!> @brief Type for storing point data | ||
type point_data | ||
real(wp), dimension(:), allocatable :: alpha_rho !< Partial densities | ||
real(wp), dimension(:), allocatable :: alpha !< Volume fractions | ||
real(wp) :: pressure !< Pressure | ||
real(wp), dimension(3) :: vel !< Velocity | ||
real(wp) :: c !< Color function (for surface tension) | ||
real(wp), dimension(:), allocatable :: r !< Bubble radii | ||
real(wp), dimension(:), allocatable :: v !< Bubble radial velocities | ||
real(wp), dimension(:), allocatable :: pb !< Bubble pressures | ||
real(wp), dimension(:), allocatable :: mv !< Mass of vapor | ||
real(wp), dimension(:), allocatable :: nmom !< Moments for QBMM | ||
real(wp), dimension(:), allocatable :: presb !< Node pressures for bubbles | ||
real(wp), dimension(:), allocatable :: massv !< Node masses for bubbles | ||
end type point_data | ||
|
||
!> Ghost Point for Immersed Boundaries | ||
type ghost_point | ||
integer, dimension(3) :: loc !< Physical location of the ghost point | ||
|
@@ -400,6 +452,7 @@ module m_derived_types | |
integer :: ib_patch_id !< ID of the IB Patch the ghost point is part of | ||
logical :: slip | ||
integer, dimension(3) :: DB | ||
type(point_data) :: ip | ||
end type ghost_point | ||
|
||
!> Species parameters | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, this derived type appears never to be used. git blame says I added it years ago.