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# 9 "/home/runner/work/MFC/MFC/src/common/include/case.fpp"
15# 14 "/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
27 use m_thermochem,
only: num_species
185 real(wp) ::
r0ref,
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
223 m = dflt_int;
n = 0;
p = 0
278 bc_x%beg = dflt_int;
bc_x%end = dflt_int
279 bc_y%beg = dflt_int;
bc_y%end = dflt_int
280 bc_z%beg = dflt_int;
bc_z%end = dflt_int
282# 272 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
283# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
286# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
289# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
292# 276 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
293# 272 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
294# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
297# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
300# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
303# 276 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
304# 272 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
305# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
308# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
311# 273 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
314# 276 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
315# 277 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
317# 279 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
318 bc_x%isothermal_in = .false.
319 bc_x%isothermal_out = .false.
320 bc_x%Twall_in = dflt_real
321 bc_x%Twall_out = dflt_real
322# 279 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
323 bc_y%isothermal_in = .false.
324 bc_y%isothermal_out = .false.
325 bc_y%Twall_in = dflt_real
326 bc_y%Twall_out = dflt_real
327# 279 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
328 bc_z%isothermal_in = .false.
329 bc_z%isothermal_out = .false.
330 bc_z%Twall_in = dflt_real
331 bc_z%Twall_out = dflt_real
332# 284 "/home/runner/work/MFC/MFC/src/pre_process/m_global_parameters.fpp"
370 do i = 1, num_patches_max
376 patch_icpp(i)%model_threshold = ray_tracing_threshold
440 do i = 1, num_bc_patches_max
494 do i = 1, num_ib_patches_max
512 patch_ib(i)%model_translate(:) = 0._wp
514 patch_ib(i)%model_filepath(:) = dflt_char
516 patch_ib(i)%model_threshold = ray_tracing_threshold
525 patch_ib(i)%centroid_offset(:) = 0._wp
529 patch_ib(i)%rotation_matrix(1, 1) = 1._wp
530 patch_ib(i)%rotation_matrix(2, 2) = 1._wp
531 patch_ib(i)%rotation_matrix(3, 3) = 1._wp
539 do i = 1, num_fluids_max
555 bub_pp%ss = dflt_real;
ss = dflt_real
556 bub_pp%pv = dflt_real;
pv = dflt_real
557 bub_pp%vd = dflt_real;
vd = dflt_real
763 else if (
nb < 1)
then
764 stop
'Invalid value of nb'
906 write (
mpiiofs,
'(A)')
'/lustre_'
909 call mpi_info_set(
mpi_info_int,
'romio_ds_write',
'disable', ierr)
Shared derived types for field data, patch geometry, bubble dynamics, and MPI I/O structures.
Defines global parameters for the computational domain, simulation algorithm, and initial conditions.
real(wp) perturb_flow_mag
Magnitude of perturbation with perturb_flow flag.
real(wp) mixlayer_perturb_k0
Peak wavenumber for mixlayer perturbation (default: most unstable mode).
integer grid_geometry
Cylindrical coordinates (either axisymmetric or full 3D).
logical cont_damage
continuum damage modeling
integer p_glb
Global number of cells in each direction.
logical igr
Use information geometric regularization.
integer, dimension(3, 2) shear_bc_flip_indices
Shear stress BC reflection indices (1:3, 1:shear_BC_flip_num).
logical hypoelasticity
activate hypoelasticity
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.
integer thermal
1 = adiabatic, 2 = isotherm, 3 = transfer
real(wp), dimension(:), allocatable im_trans_c
integer perturb_flow_fluid
Fluid to be perturbed with perturb_flow flag.
type(int_bounds_info), dimension(1:3) idwint
integer recon_type
Reconstruction Type.
logical, parameter chemistry
Chemistry modeling.
integer mpi_info_int
MPI info for parallel IO with Lustre file systems.
logical elliptic_smoothing
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
integer num_fluids
Number of different fluids present in the flow.
integer elliptic_smoothing_iters
logical pre_stress
activate pre_stressed domain
real(wp), dimension(:), allocatable im_trans_t
type(qbmm_idx_info) qbmm_idx
QBMM moment index mappings.
integer dist_type
1 = binormal, 2 = lognormal-normal
integer weno_polyn
Degree of the WENO polynomials (polyn).
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 dummy
AMDFlang workaround for case-optimization + GPU-kernel bug.
integer, dimension(:), allocatable proc_coords
Processor coordinates in MPI_CART_COMM.
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.
character(len=name_len) mpiiofs
integer, dimension(:), allocatable start_idx
Starting cell-center index of local processor in global grid.
integer sys_size
Number of unknowns in the system of equations.
real(wp), dimension(:), allocatable weight
real(wp), dimension(:), allocatable k_v
type(simplex_noise_params) simplex_params
integer muscl_order
Order of accuracy for the MUSCL reconstruction.
type(bounds_info) x_domain
real(wp) ptgalpha_eps
trigger parameter for the pTg relaxation procedure, phase change model
integer relax_model
Relax Model.
integer num_patches
Number of patches composing initial condition.
logical ib
Turn immersed boundaries on.
integer num_bc_patches
Number of boundary condition patches.
integer tensor_size
Number of components in the nonsymmetric tensor.
type(bc_patch_parameters), dimension(num_bc_patches_max) patch_bc
Boundary condition patch parameters.
type(int_bounds_info), dimension(1:3) idwbuff
integer model_eqns
Multicomponent flow model.
integer buff_size
Number of ghost cells for boundary condition storage.
integer precision
Precision of output files.
logical hyperelasticity
activate hyperelasticity
real(wp), dimension(:), allocatable z_cb
type(physical_parameters), dimension(num_fluids_max) fluid_pp
Stiffened gas EOS parameters and Reynolds numbers per fluid.
type(vec3_dt), dimension(:), allocatable airfoil_grid_u
integer num_dims
Number of spatial dimensions.
integer shear_bc_flip_num
Number of shear stress components to reflect for boundary conditions.
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
integer mixlayer_perturb_nk
Number of Fourier modes for perturbation with mixlayer_perturb flag.
type(chemistry_parameters) chem_params
integer num_vels
Number of velocity components (different from num_dims for mhd).
integer perturb_sph_fluid
Fluid to be perturbed with perturb_sph flag.
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
logical relax
activate phase change
logical qbmm
Quadrature moment method.
logical old_grid
Use existing grid data.
real(wp) pi_fac
Factor for artificial pi_inf.
logical hyper_cleaning
Hyperbolic cleaning for MHD.
real(wp), dimension(num_fluids_max) fluid_rho
real(wp), dimension(:), allocatable z_cc
real(wp) pref
Reference parameters for Tait EOS.
real(wp) bx0
Constant magnetic field in the x-direction (1D).
integer b_size
Number of components in the b tensor.
logical stretch_z
Grid stretching flags for the x-, y- and z-coordinate directions.
logical adv_n
Solve the number density equation and compute alpha from number density.
integer num_procs
Number of processors.
character(len=path_len) case_dir
Case folder location.
type(vec3_dt), dimension(:), allocatable airfoil_grid_l
type(ic_patch_parameters), dimension(num_patches_max) patch_icpp
IC patch parameters (max: num_patches_max).
integer weno_order
Order of accuracy for the WENO reconstruction.
logical mhd
Magnetohydrodynamics.
integer shear_num
Number of shear stress components.
integer, dimension(3) shear_indices
Indices of the stress components that represent shear stress.
logical parallel_io
Format of the data files.
integer nmom
Number of carried moments.
type(cell_num_bounds) cells_bounds
logical down_sample
Down-sample the output data.
real(wp), dimension(:), allocatable mass_g0
logical file_per_process
type of data output
real(wp) palpha_eps
trigger parameter for the p relaxation procedure, phase change model
integer t_step_start
Existing IC/grid folder.
logical elasticity
elasticity modeling, true for hyper or hypo
type(mpi_io_var), public mpi_io_data
real(wp) mixlayer_vel_coef
Coefficient for the hyperbolic tangent streamwise velocity profile.
impure subroutine s_initialize_parallel_io
Configure MPI parallel I/O settings and allocate processor coordinate arrays.
logical mpp_lim
Alpha limiter.
real(wp), dimension(:), allocatable omegan
integer, dimension(:,:,:), allocatable logic_grid
integer igr_order
IGR reconstruction order.
integer muscl_polyn
Degree of the MUSCL polynomials (polyn).
real(wp), dimension(:), allocatable re_trans_c
type(subgrid_bubble_physical_parameters) bub_pp
real(wp) rhorv
standard deviations in R/V
logical relativity
Relativity for RMHD.
real(wp), dimension(:), allocatable pe_t
type(eqn_idx_info) eqn_idx
All conserved-variable equation index ranges and scalars.
real(wp), dimension(:), allocatable mass_v0
integer num_ibs
Number of immersed boundaries.
logical mixlayer_vel_profile
Set hyperbolic tangent streamwise velocity profile.
type(ib_patch_parameters), dimension(num_ib_patches_max) patch_ib
Immersed boundary patch parameters.
integer(kind=8) nglobal
Global number of cells in the domain.
logical mixlayer_perturb
Superimpose instability waves to surrounding fluid flow.
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-.
All conserved-variable equation indices, computed at startup from model_eqns and enabled features....
Derived type adding initial condition (ic) patch parameters as attributes NOTE: The requirements for ...
Integer bounds for variables.
Derived type annexing the physical parameters (PP) of the fluids. These include the specific heat rat...
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.
Derived type annexing the physical parameters required for sub-grid bubble models.
Generic 3-component vector (e.g., spatial coordinates or field components) Named _dt (derived types: ...