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
94 real(wp),
dimension(:),
allocatable ::
weight,
r0
111 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
138 bc_x%beg = dflt_int;
bc_x%end = dflt_int
139 bc_y%beg = dflt_int;
bc_y%end = dflt_int
140 bc_z%beg = dflt_int;
bc_z%end = dflt_int
142# 132 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
143# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
146# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
149# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
152# 136 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
153# 132 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
154# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
157# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
160# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
163# 136 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
164# 132 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
165# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
168# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
171# 133 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
174# 136 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
175# 137 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
177# 139 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
178 bc_x%isothermal_in = .false.
179 bc_x%isothermal_out = .false.
180 bc_x%Twall_in = dflt_real
181 bc_x%Twall_out = dflt_real
182# 139 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
183 bc_y%isothermal_in = .false.
184 bc_y%isothermal_out = .false.
185 bc_y%Twall_in = dflt_real
186 bc_y%Twall_out = dflt_real
187# 139 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
188 bc_z%isothermal_in = .false.
189 bc_z%isothermal_out = .false.
190 bc_z%Twall_in = dflt_real
191 bc_z%Twall_out = dflt_real
192# 144 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
283 do i = 1, num_patches_max
349 do i = 1, num_bc_patches_max
384 do i = 1, num_ib_patches_max_namelist
404 patch_ib(i)%centroid_offset(:) = 0._wp
408 patch_ib(i)%rotation_matrix(1, 1) = 1._wp
409 patch_ib(i)%rotation_matrix(2, 2) = 1._wp
410 patch_ib(i)%rotation_matrix(3, 3) = 1._wp
414 do i = 1, num_ib_airfoils_max
423 do i = 1, num_stl_models_max
427 stl_models(i)%model_threshold = ray_tracing_threshold
438 do i = 1, num_fluids_max
460 bub_pp%ss = dflt_real;
ss = dflt_real
461 bub_pp%pv = dflt_real;
pv = dflt_real
462 bub_pp%vd = dflt_real;
vd = dflt_real
564 else if (
nb < 1)
then
565 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.
character(len=path_len) files_dir
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
character(len=path_len) file_extension
Defines global parameters for the computational domain, simulation algorithm, and initial conditions.
type(bounds_info) y_domain_glb
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
type(int_bounds_info), dimension(3) nidx
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.
type(bubbles_lagrange_parameters) lag_params
Lagrange bubbles' parameters (pre_process-local; not in generated_decls).
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
integer fd_number
FD half-stencil size: MAX(1, fd_order/2).
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
character(len=2 *path_len) interface_file
type(int_bounds_info) bc_y
integer, dimension(:,:,:), allocatable neighbor_ranks
Neighbor ranks.
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(ib_airfoil_grid), dimension(:), allocatable ib_airfoil_grids
Per-airfoil computed surface grids (unused in pre_process).
type(chemistry_parameters) chem_params
integer fd_order
Finite-difference order for CoM/probe derivative approximations.
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.
type(bounds_info) x_domain_glb
Global (pre-decomposition) domain bounds, needed by s_generate_serial_grid to stretch the grid using ...
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
type(bc_xyz_info) bc
Combined BC storage (used by the shared beta-buffer routines; pre-process-local).
real(wp), dimension(:), allocatable pe_t
real(wp), dimension(:), allocatable mass_v0
type(bounds_info) z_domain_glb
integer(kind=8) nglobal
Global number of cells in the domain.
Basic floating-point utilities: approximate equality, default detection, and coordinate bounds.
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, fd_number)
Compute ghost-cell buffer size and set interior/buffered coordinate index bounds.
elemental subroutine, public s_update_cell_bounds(bounds, m, n, p)
Update the min and max number of cells in each set of axes.
Groups the x, y, z boundary condition begin/end codes for passing as a single argument.
Derived type adding beginning (beg) and end bounds info as attributes.
Lagrangian bubble parameters.
Max and min number of cells in a direction of each combination of x-,y-, and z-.
Computed surface grid for a NACA airfoil (simulation-only, not in namelist).
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.