1# 1 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
6# 1 "/home/runner/work/MFC/MFC/src/common/include/case.fpp" 1
12# 8 "/home/runner/work/MFC/MFC/src/common/include/case.fpp"
15# 12 "/home/runner/work/MFC/MFC/src/common/include/case.fpp"
16# 6 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp" 2
80 real(wp),
dimension(:),
allocatable ::
weight,
r0
92 real(wp) ::
p0ref,
rho0ref,
t0ref,
ss,
pv,
vd,
mu_l,
mu_v,
mu_g,
gam_v,
gam_g,
m_v,
m_g,
cp_v,
cp_g,
r_v,
r_g
115 bc_x%beg = dflt_int;
bc_x%end = dflt_int
116 bc_y%beg = dflt_int;
bc_y%end = dflt_int
117 bc_z%beg = dflt_int;
bc_z%end = dflt_int
119# 109 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
120# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
123# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
126# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
129# 113 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
130# 109 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
131# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
134# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
137# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
140# 113 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
141# 109 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
142# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
145# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
148# 110 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
151# 113 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
152# 114 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
154# 116 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
155 bc_x%isothermal_in = .false.
156 bc_x%isothermal_out = .false.
157 bc_x%Twall_in = dflt_real
158 bc_x%Twall_out = dflt_real
159# 116 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
160 bc_y%isothermal_in = .false.
161 bc_y%isothermal_out = .false.
162 bc_y%Twall_in = dflt_real
163 bc_y%Twall_out = dflt_real
164# 116 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
165 bc_z%isothermal_in = .false.
166 bc_z%isothermal_out = .false.
167 bc_z%Twall_in = dflt_real
168 bc_z%Twall_out = dflt_real
169# 121 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
239 do i = 1, num_patches_max
305 do i = 1, num_bc_patches_max
340 do i = 1, num_ib_patches_max_namelist
360 patch_ib(i)%centroid_offset(:) = 0._wp
364 patch_ib(i)%rotation_matrix(1, 1) = 1._wp
365 patch_ib(i)%rotation_matrix(2, 2) = 1._wp
366 patch_ib(i)%rotation_matrix(3, 3) = 1._wp
370 do i = 1, num_ib_airfoils_max
379 do i = 1, num_stl_models_max
383 stl_models(i)%model_threshold = ray_tracing_threshold
390 do i = 1, num_fluids_max
412 bub_pp%ss = dflt_real;
ss = dflt_real
413 bub_pp%pv = dflt_real;
pv = dflt_real
414 bub_pp%vd = dflt_real;
vd = dflt_real
516 else if (
nb < 1)
then
517 stop
'Invalid value of nb'
Shared derived types for field data, patch geometry, bubble dynamics, and MPI I/O structures.
Shared global parameters and equation-index setup for all three executables. Each per-target m_global...
integer muscl_polyn
Degree of the MUSCL polynomials.
logical elliptic_smoothing
type(ib_stl_parameters), dimension(num_stl_models_max) stl_models
Per-STL model parameters.
impure subroutine s_finalize_global_parameters_common
Shared finalize core: deallocate proc_coords and start_idx. Per-target finalize routines call this fi...
integer perturb_sph_fluid
type(ic_patch_parameters), dimension(num_patches_max) patch_icpp
IC patch parameters.
type(subgrid_bubble_physical_parameters) bub_pp
Subgrid bubble physical parameters.
integer sys_size
Number of unknowns in system of equations.
real(wp) mixlayer_perturb_k0
real(wp) perturb_flow_mag
type(physical_parameters), dimension(num_fluids_max) fluid_pp
Per-fluid stiffened-gas EOS parameters, Reynolds numbers, and shear modulus.
type(bc_patch_parameters), dimension(num_bc_patches_max) patch_bc
Boundary condition patch parameters.
integer num_dims
Number of spatial dimensions.
real(wp) mixlayer_vel_coef
type(eqn_idx_info) eqn_idx
All conserved-variable equation index ranges and scalars.
logical, parameter chemistry
real(wp), dimension(num_fluids_max) fluid_rho
integer perturb_flow_fluid
impure subroutine s_initialize_eqn_idx(nmom_in, nb_in)
Initialize equation-index state (eqn_idx, sys_size, b_size, tensor_size) from the namelist parameters...
type(ib_patch_parameters), dimension(num_ib_patches_max_namelist) patch_ib
Immersed boundary patch parameters.
impure subroutine s_initialize_parallel_io_common
Configure MPI parallel I/O settings and allocate processor coordinate arrays. Shared across all three...
integer weno_polyn
Degree of the WENO polynomials.
type(ib_airfoil_parameters), dimension(num_ib_airfoils_max) ib_airfoil
Per-airfoil NACA user inputs.
type(simplex_noise_params) simplex_params
impure subroutine s_assign_common_defaults
Assign default values to the user-input parameters that are shared across all three executables (pre_...
logical mixlayer_vel_profile
integer mixlayer_perturb_nk
integer elliptic_smoothing_iters
Defines global parameters for the computational domain, simulation algorithm, and initial conditions.
integer grid_geometry
Cylindrical coordinates (either axisymmetric or full 3D).
integer p_glb
Global number of cells in each direction.
impure subroutine s_assign_default_values_to_user_inputs
Assigns default values to user inputs prior to reading them in. This allows for an easier consistency...
impure subroutine s_finalize_global_parameters_module
Deallocate all global grid, index, and equation-of-state parameter arrays.
real(wp), dimension(:), allocatable im_trans_c
type(int_bounds_info), dimension(1:3) idwint
real(wp) dz
Minimum cell-widths in the x-, y- and z-coordinate directions.
type(int_bounds_info) bc_z
Boundary conditions in the x-, y- and z-coordinate directions.
real(wp), dimension(:), allocatable pb0
real(wp), dimension(:), allocatable im_trans_t
type(qbmm_idx_info) qbmm_idx
QBMM moment index mappings.
real(wp), dimension(:), allocatable y_cc
logical non_axis_sym
Use existing IC data.
integer proc_rank
Rank of the local processor Number of cells in the x-, y- and z-coordinate directions.
real(wp), dimension(:), allocatable re_trans_t
logical bc_io
whether or not to save BC data
real(wp), dimension(:), allocatable y_cb
type(bounds_info) z_domain
Locations of the domain bounds in the x-, y- and z-coordinate directions.
real(wp), dimension(:), allocatable weight
real(wp), dimension(:), allocatable k_v
type(bounds_info) x_domain
type(int_bounds_info), dimension(1:3) idwbuff
integer buff_size
Number of ghost cells for boundary condition storage.
real(wp), dimension(:), allocatable z_cb
type(int_bounds_info) bc_y
real(wp), dimension(:), allocatable r0
impure subroutine s_initialize_global_parameters_module
Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the...
real(wp), dimension(:), allocatable x_cc
Locations of cell-centers (cc) in x-, y- and z-directions, respectively.
real(wp), dimension(:), allocatable k_g
type(chemistry_parameters) chem_params
type(int_bounds_info) bc_x
real(wp), dimension(:), allocatable x_cb
Locations of cell-boundaries (cb) in x-, y- and z-directions, respectively.
type(bounds_info) y_domain
real(wp), dimension(:), allocatable z_cc
integer num_procs
Number of processors.
integer nmom
Number of carried moments.
type(cell_num_bounds) cells_bounds
real(wp), dimension(:), allocatable mass_g0
type(mpi_io_var), public mpi_io_data
impure subroutine s_initialize_parallel_io
Configure MPI parallel I/O settings and allocate processor coordinate arrays.
real(wp), dimension(:), allocatable omegan
integer, dimension(:,:,:), allocatable logic_grid
real(wp), dimension(:), allocatable re_trans_c
real(wp), dimension(:), allocatable pe_t
real(wp), dimension(:), allocatable mass_v0
integer(kind=8) nglobal
Global number of cells in the domain.
Basic floating-point utilities: approximate equality, default detection, and coordinate bounds.
elemental subroutine, public s_update_cell_bounds(bounds, m, n, p)
Updates the min and max number of cells in each set of axes.
subroutine, public s_configure_coordinate_bounds(recon_type, weno_polyn, muscl_polyn, igr_order, buff_size, idwint, idwbuff, viscous, bubbles_lagrange, m, n, p, num_dims, igr, ib)
Compute ghost-cell buffer size and set interior/buffered coordinate index bounds.
Derived type adding beginning (beg) and end bounds info as attributes.
Max and min number of cells in a direction of each combination of x-,y-, and z-.
Integer bounds for variables.
Derived type for bubble variables pb and mv at quadrature nodes (qbmm).
QBMM moment index mappings - separate from bub beg/end so eqn_idx contains no allocatables.