MFC: Pre-Process
High-fidelity multiphase flow simulation
|
This module contains all of the parameters characterizing the computational domain, simulation algorithm, initial condition and the stiffened equation of state. More...
Functions/Subroutines | |
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 check of these parameters once they are read from the input file. | |
subroutine | s_initialize_global_parameters_module () |
Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module. | |
subroutine | s_initialize_parallel_io () |
subroutine | s_finalize_global_parameters_module () |
Variables | |
integer | num_procs |
Number of processors. | |
character(len=path_len) | case_dir |
Case folder location. | |
logical | old_grid |
Use existing grid data. | |
logical | old_ic |
Use existing IC data. | |
integer | t_step_old |
integer | t_step_start |
Existing IC/grid folder. | |
integer | proc_rank |
Rank of the local processor. | |
integer | m |
integer | n |
integer | p |
Number of cells in the x-, y- and z-coordinate directions. | |
integer(8) | nglobal |
integer | m_glb |
integer | n_glb |
integer | p_glb |
Global number of cells in each direction. | |
integer | num_dims |
Number of spatial dimensions. | |
logical | cyl_coord |
integer | grid_geometry |
Cylindrical coordinates (either axisymmetric or full 3D) | |
real(kind(0d0)), dimension(:), allocatable | x_cc |
real(kind(0d0)), dimension(:), allocatable | y_cc |
real(kind(0d0)), dimension(:), allocatable | z_cc |
Locations of cell-centers (cc) in x-, y- and z-directions, respectively. | |
real(kind(0d0)), dimension(:), allocatable | x_cb |
real(kind(0d0)), dimension(:), allocatable | y_cb |
real(kind(0d0)), dimension(:), allocatable | z_cb |
Locations of cell-boundaries (cb) in x-, y- and z-directions, respectively. | |
real(kind(0d0)) | dx |
real(kind(0d0)) | dy |
real(kind(0d0)) | dz |
Minimum cell-widths in the x-, y- and z-coordinate directions. | |
type(bounds_info) | x_domain |
type(bounds_info) | y_domain |
type(bounds_info) | z_domain |
Locations of the domain bounds in the x-, y- and z-coordinate directions. | |
logical | stretch_x |
logical | stretch_y |
logical | stretch_z |
Grid stretching flags for the x-, y- and z-coordinate directions. | |
real(kind(0d0)) | a_x |
real(kind(0d0)) | a_y |
real(kind(0d0)) | a_z |
integer | loops_x |
integer | loops_y |
integer | loops_z |
real(kind(0d0)) | x_a |
real(kind(0d0)) | y_a |
real(kind(0d0)) | z_a |
real(kind(0d0)) | x_b |
real(kind(0d0)) | y_b |
real(kind(0d0)) | z_b |
integer | model_eqns |
Multicomponent flow model. | |
logical | relax |
activate phase change | |
integer | relax_model |
Relax Model. | |
real(kind(0d0)) | palpha_eps |
trigger parameter for the p relaxation procedure, phase change model | |
real(kind(0d0)) | ptgalpha_eps |
trigger parameter for the pTg relaxation procedure, phase change model | |
integer | num_fluids |
Number of different fluids present in the flow. | |
logical | adv_alphan |
Advection of the last volume fraction. | |
logical | mpp_lim |
Alpha limiter. | |
integer | sys_size |
Number of unknowns in the system of equations. | |
integer | weno_order |
Order of accuracy for the WENO reconstruction. | |
logical | hypoelasticity |
activate hypoelasticity | |
type(int_bounds_info) | cont_idx |
Indexes of first & last continuity eqns. | |
type(int_bounds_info) | mom_idx |
Indexes of first & last momentum eqns. | |
integer | e_idx |
Index of total energy equation. | |
integer | alf_idx |
Index of void fraction. | |
integer | n_idx |
Index of number density. | |
type(int_bounds_info) | adv_idx |
Indexes of first & last advection eqns. | |
type(int_bounds_info) | internalenergies_idx |
Indexes of first & last internal energy eqns. | |
type(bub_bounds_info) | bub_idx |
Indexes of first & last bubble variable eqns. | |
integer | gamma_idx |
Index of specific heat ratio func. eqn. | |
integer | pi_inf_idx |
Index of liquid stiffness func. eqn. | |
type(int_bounds_info) | stress_idx |
Indexes of elastic shear stress eqns. | |
type(int_bounds_info) | bc_x |
type(int_bounds_info) | bc_y |
type(int_bounds_info) | bc_z |
Boundary conditions in the x-, y- and z-coordinate directions. | |
logical | parallel_io |
Format of the data files. | |
logical | file_per_process |
type of data output | |
integer | precision |
Precision of output files. | |
logical | vel_profile |
Set hyperbolic tangent streamwise velocity profile. | |
logical | instability_wave |
Superimpose instability waves to surrounding fluid flow. | |
real(kind(0d0)) | pi_fac |
Factor for artificial pi_inf. | |
logical | perturb_flow |
integer | perturb_flow_fluid |
Fluid to be perturbed with perturb_flow flag. | |
real(kind(0d0)) | perturb_flow_mag |
Magnitude of perturbation with perturb_flow flag. | |
logical | perturb_sph |
integer | perturb_sph_fluid |
Fluid to be perturbed with perturb_sph flag. | |
real(kind(0d0)), dimension(num_fluids_max) | fluid_rho |
integer, dimension(:), allocatable | proc_coords |
Processor coordinates in MPI_CART_COMM. | |
integer, dimension(:), allocatable | start_idx |
Starting cell-center index of local processor in global grid. | |
type(mpi_io_var), public | mpi_io_data |
type(mpi_io_ib_var), public | mpi_io_ib_data |
type(mpi_io_airfoil_ib_var), public | mpi_io_airfoil_ib_data |
character(len=name_len) | mpiiofs |
integer | mpi_info_int |
MPI info for parallel IO with Lustre file systems. | |
integer, private | ierr |
integer | num_patches |
Number of patches composing initial condition. | |
type(ic_patch_parameters), dimension(num_patches_max) | patch_icpp |
Database of the initial condition patch parameters (icpp) for each of the patches employed in the configuration of the initial condition. Note that the maximum allowable number of patches, num_patches_max, may be changed in the module m_derived_types.f90. | |
type(physical_parameters), dimension(num_fluids_max) | fluid_pp |
Database of the physical parameters of each of the fluids that is present in the flow. These include the stiffened gas equation of state parameters, the Reynolds numbers and the Weber numbers. | |
real(kind(0d0)) | rhoref |
real(kind(0d0)) | pref |
Reference parameters for Tait EOS. | |
integer, dimension(:, :, :), allocatable | logic_grid |
type(pres_field) | pb |
type(pres_field) | mv |
Bubble modeling | |
integer | nb |
real(kind(0d0)) | r0ref |
real(kind(0d0)) | ca |
real(kind(0d0)) | web |
real(kind(0d0)) | re_inv |
real(kind(0d0)), dimension(:), allocatable | weight |
real(kind(0d0)), dimension(:), allocatable | r0 |
real(kind(0d0)), dimension(:), allocatable | v0 |
logical | bubbles |
logical | qbmm |
Quadrature moment method. | |
integer | nmom |
Number of carried moments. | |
real(kind(0d0)) | sigr |
real(kind(0d0)) | sigv |
real(kind(0d0)) | rhorv |
standard deviations in R/V | |
logical | adv_n |
Solve the number density equation and compute alpha from number density. | |
Immersed Boundaries | |
logical | ib |
Turn immersed boundaries on. | |
integer | num_ibs |
Number of immersed boundaries. | |
integer | np |
type(ib_patch_parameters), dimension(num_patches_max) | patch_ib |
type(probe_parameters), dimension(:), allocatable | airfoil_grid_u |
type(probe_parameters), dimension(:), allocatable | airfoil_grid_l |
Non-polytropic bubble gas compression | |
logical | polytropic |
logical | polydisperse |
integer | thermal |
real(kind(0d0)) | r_n |
real(kind(0d0)) | r_v |
real(kind(0d0)) | phi_vn |
real(kind(0d0)) | phi_nv |
real(kind(0d0)) | pe_c |
real(kind(0d0)) | tw |
real(kind(0d0)) | pv |
real(kind(0d0)) | m_n |
real(kind(0d0)) | m_v |
real(kind(0d0)), dimension(:), allocatable | k_n |
real(kind(0d0)), dimension(:), allocatable | k_v |
real(kind(0d0)), dimension(:), allocatable | pb0 |
real(kind(0d0)), dimension(:), allocatable | mass_n0 |
real(kind(0d0)), dimension(:), allocatable | mass_v0 |
real(kind(0d0)), dimension(:), allocatable | pe_t |
real(kind(0d0)), dimension(:), allocatable | re_trans_t |
real(kind(0d0)), dimension(:), allocatable | re_trans_c |
real(kind(0d0)), dimension(:), allocatable | im_trans_t |
real(kind(0d0)), dimension(:), allocatable | im_trans_c |
real(kind(0d0)), dimension(:), allocatable | omegan |
real(kind(0d0)) | mul0 |
real(kind(0d0)) | ss |
real(kind(0d0)) | gamma_v |
real(kind(0d0)) | mu_v |
real(kind(0d0)) | gamma_m |
real(kind(0d0)) | gamma_n |
real(kind(0d0)) | mu_n |
real(kind(0d0)) | poly_sigma |
integer | dist_type |
integer | r0_type |
Index variables used for m_variables_conversion | |
integer | momxb |
integer | momxe |
integer | advxb |
integer | advxe |
integer | contxb |
integer | contxe |
integer | intxb |
integer | intxe |
integer | bubxb |
integer | bubxe |
integer | strxb |
integer | strxe |
This module contains all of the parameters characterizing the computational domain, simulation algorithm, initial condition and the stiffened equation of state.
subroutine m_global_parameters::s_assign_default_values_to_user_inputs |
Assigns default values to user inputs prior to reading them in. This allows for an easier consistency check of these parameters once they are read from the input file.
subroutine m_global_parameters::s_finalize_global_parameters_module |
subroutine m_global_parameters::s_initialize_global_parameters_module |
Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.
subroutine m_global_parameters::s_initialize_parallel_io |
real(kind(0d0)) m_global_parameters::a_x |
real(kind(0d0)) m_global_parameters::a_y |
real(kind(0d0)) m_global_parameters::a_z |
logical m_global_parameters::adv_alphan |
Advection of the last volume fraction.
type(int_bounds_info) m_global_parameters::adv_idx |
Indexes of first & last advection eqns.
logical m_global_parameters::adv_n |
Solve the number density equation and compute alpha from number density.
integer m_global_parameters::advxb |
integer m_global_parameters::advxe |
type(probe_parameters), dimension(:), allocatable m_global_parameters::airfoil_grid_l |
type(probe_parameters), dimension(:), allocatable m_global_parameters::airfoil_grid_u |
integer m_global_parameters::alf_idx |
Index of void fraction.
type(int_bounds_info) m_global_parameters::bc_x |
type(int_bounds_info) m_global_parameters::bc_y |
type(int_bounds_info) m_global_parameters::bc_z |
Boundary conditions in the x-, y- and z-coordinate directions.
type(bub_bounds_info) m_global_parameters::bub_idx |
Indexes of first & last bubble variable eqns.
logical m_global_parameters::bubbles |
integer m_global_parameters::bubxb |
integer m_global_parameters::bubxe |
real(kind(0d0)) m_global_parameters::ca |
character(len=path_len) m_global_parameters::case_dir |
Case folder location.
type(int_bounds_info) m_global_parameters::cont_idx |
Indexes of first & last continuity eqns.
integer m_global_parameters::contxb |
integer m_global_parameters::contxe |
logical m_global_parameters::cyl_coord |
integer m_global_parameters::dist_type |
real(kind(0d0)) m_global_parameters::dx |
real(kind(0d0)) m_global_parameters::dy |
real(kind(0d0)) m_global_parameters::dz |
Minimum cell-widths in the x-, y- and z-coordinate directions.
integer m_global_parameters::e_idx |
Index of total energy equation.
logical m_global_parameters::file_per_process |
type of data output
type(physical_parameters), dimension(num_fluids_max) m_global_parameters::fluid_pp |
Database of the physical parameters of each of the fluids that is present in the flow. These include the stiffened gas equation of state parameters, the Reynolds numbers and the Weber numbers.
real(kind(0d0)), dimension(num_fluids_max) m_global_parameters::fluid_rho |
integer m_global_parameters::gamma_idx |
Index of specific heat ratio func. eqn.
real(kind(0d0)) m_global_parameters::gamma_m |
real(kind(0d0)) m_global_parameters::gamma_n |
real(kind(0d0)) m_global_parameters::gamma_v |
integer m_global_parameters::grid_geometry |
Cylindrical coordinates (either axisymmetric or full 3D)
logical m_global_parameters::hypoelasticity |
activate hypoelasticity
logical m_global_parameters::ib |
Turn immersed boundaries on.
|
private |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::im_trans_c |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::im_trans_t |
logical m_global_parameters::instability_wave |
Superimpose instability waves to surrounding fluid flow.
type(int_bounds_info) m_global_parameters::internalenergies_idx |
Indexes of first & last internal energy eqns.
integer m_global_parameters::intxb |
integer m_global_parameters::intxe |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::k_n |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::k_v |
integer, dimension(:, :, :), allocatable m_global_parameters::logic_grid |
integer m_global_parameters::loops_x |
integer m_global_parameters::loops_y |
integer m_global_parameters::loops_z |
integer m_global_parameters::m |
integer m_global_parameters::m_glb |
real(kind(0d0)) m_global_parameters::m_n |
real(kind(0d0)) m_global_parameters::m_v |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::mass_n0 |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::mass_v0 |
integer m_global_parameters::model_eqns |
Multicomponent flow model.
type(int_bounds_info) m_global_parameters::mom_idx |
Indexes of first & last momentum eqns.
integer m_global_parameters::momxb |
integer m_global_parameters::momxe |
integer m_global_parameters::mpi_info_int |
MPI info for parallel IO with Lustre file systems.
type(mpi_io_airfoil_ib_var), public m_global_parameters::mpi_io_airfoil_ib_data |
type(mpi_io_var), public m_global_parameters::mpi_io_data |
type(mpi_io_ib_var), public m_global_parameters::mpi_io_ib_data |
character(len=name_len) m_global_parameters::mpiiofs |
logical m_global_parameters::mpp_lim |
Alpha limiter.
real(kind(0d0)) m_global_parameters::mu_n |
real(kind(0d0)) m_global_parameters::mu_v |
real(kind(0d0)) m_global_parameters::mul0 |
type(pres_field) m_global_parameters::mv |
integer m_global_parameters::n |
integer m_global_parameters::n_glb |
integer m_global_parameters::n_idx |
Index of number density.
integer m_global_parameters::nb |
integer(8) m_global_parameters::nglobal |
integer m_global_parameters::nmom |
Number of carried moments.
integer m_global_parameters::np |
integer m_global_parameters::num_dims |
Number of spatial dimensions.
integer m_global_parameters::num_fluids |
Number of different fluids present in the flow.
integer m_global_parameters::num_ibs |
Number of immersed boundaries.
integer m_global_parameters::num_patches |
Number of patches composing initial condition.
integer m_global_parameters::num_procs |
Number of processors.
logical m_global_parameters::old_grid |
Use existing grid data.
logical m_global_parameters::old_ic |
Use existing IC data.
real(kind(0d0)), dimension(:), allocatable m_global_parameters::omegan |
integer m_global_parameters::p |
Number of cells in the x-, y- and z-coordinate directions.
integer m_global_parameters::p_glb |
Global number of cells in each direction.
real(kind(0d0)) m_global_parameters::palpha_eps |
trigger parameter for the p relaxation procedure, phase change model
logical m_global_parameters::parallel_io |
Format of the data files.
type(ib_patch_parameters), dimension(num_patches_max) m_global_parameters::patch_ib |
type(ic_patch_parameters), dimension(num_patches_max) m_global_parameters::patch_icpp |
Database of the initial condition patch parameters (icpp) for each of the patches employed in the configuration of the initial condition. Note that the maximum allowable number of patches, num_patches_max, may be changed in the module m_derived_types.f90.
type(pres_field) m_global_parameters::pb |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::pb0 |
real(kind(0d0)) m_global_parameters::pe_c |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::pe_t |
logical m_global_parameters::perturb_flow |
integer m_global_parameters::perturb_flow_fluid |
Fluid to be perturbed with perturb_flow flag.
real(kind(0d0)) m_global_parameters::perturb_flow_mag |
Magnitude of perturbation with perturb_flow flag.
logical m_global_parameters::perturb_sph |
integer m_global_parameters::perturb_sph_fluid |
Fluid to be perturbed with perturb_sph flag.
real(kind(0d0)) m_global_parameters::phi_nv |
real(kind(0d0)) m_global_parameters::phi_vn |
real(kind(0d0)) m_global_parameters::pi_fac |
Factor for artificial pi_inf.
integer m_global_parameters::pi_inf_idx |
Index of liquid stiffness func. eqn.
real(kind(0d0)) m_global_parameters::poly_sigma |
logical m_global_parameters::polydisperse |
logical m_global_parameters::polytropic |
integer m_global_parameters::precision |
Precision of output files.
real(kind(0d0)) m_global_parameters::pref |
Reference parameters for Tait EOS.
integer, dimension(:), allocatable m_global_parameters::proc_coords |
Processor coordinates in MPI_CART_COMM.
integer m_global_parameters::proc_rank |
Rank of the local processor.
real(kind(0d0)) m_global_parameters::ptgalpha_eps |
trigger parameter for the pTg relaxation procedure, phase change model
real(kind(0d0)) m_global_parameters::pv |
logical m_global_parameters::qbmm |
Quadrature moment method.
real(kind(0d0)), dimension(:), allocatable m_global_parameters::r0 |
integer m_global_parameters::r0_type |
real(kind(0d0)) m_global_parameters::r0ref |
real(kind(0d0)) m_global_parameters::r_n |
real(kind(0d0)) m_global_parameters::r_v |
real(kind(0d0)) m_global_parameters::re_inv |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::re_trans_c |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::re_trans_t |
logical m_global_parameters::relax |
activate phase change
integer m_global_parameters::relax_model |
Relax Model.
real(kind(0d0)) m_global_parameters::rhoref |
real(kind(0d0)) m_global_parameters::rhorv |
standard deviations in R/V
real(kind(0d0)) m_global_parameters::sigr |
real(kind(0d0)) m_global_parameters::sigv |
real(kind(0d0)) m_global_parameters::ss |
integer, dimension(:), allocatable m_global_parameters::start_idx |
Starting cell-center index of local processor in global grid.
type(int_bounds_info) m_global_parameters::stress_idx |
Indexes of elastic shear stress eqns.
logical m_global_parameters::stretch_x |
logical m_global_parameters::stretch_y |
logical m_global_parameters::stretch_z |
Grid stretching flags for the x-, y- and z-coordinate directions.
integer m_global_parameters::strxb |
integer m_global_parameters::strxe |
integer m_global_parameters::sys_size |
Number of unknowns in the system of equations.
integer m_global_parameters::t_step_old |
integer m_global_parameters::t_step_start |
Existing IC/grid folder.
integer m_global_parameters::thermal |
real(kind(0d0)) m_global_parameters::tw |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::v0 |
logical m_global_parameters::vel_profile |
Set hyperbolic tangent streamwise velocity profile.
real(kind(0d0)) m_global_parameters::web |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::weight |
integer m_global_parameters::weno_order |
Order of accuracy for the WENO reconstruction.
real(kind(0d0)) m_global_parameters::x_a |
real(kind(0d0)) m_global_parameters::x_b |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::x_cb |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::x_cc |
type(bounds_info) m_global_parameters::x_domain |
real(kind(0d0)) m_global_parameters::y_a |
real(kind(0d0)) m_global_parameters::y_b |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::y_cb |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::y_cc |
type(bounds_info) m_global_parameters::y_domain |
real(kind(0d0)) m_global_parameters::z_a |
real(kind(0d0)) m_global_parameters::z_b |
real(kind(0d0)), dimension(:), allocatable m_global_parameters::z_cb |
Locations of cell-boundaries (cb) in x-, y- and z-directions, respectively.
real(kind(0d0)), dimension(:), allocatable m_global_parameters::z_cc |
Locations of cell-centers (cc) in x-, y- and z-directions, respectively.
type(bounds_info) m_global_parameters::z_domain |
Locations of the domain bounds in the x-, y- and z-coordinate directions.