|
MFC
Exascale flow solver
|
Contains module m_global_parameters. More...
Go to the source code of this file.
Modules | |
| module | m_global_parameters |
| Global parameters for the computational domain, fluid properties, and simulation algorithm configuration. | |
Variables | |
| real(wp) | m_global_parameters::wall_time = 0 |
| real(wp) | m_global_parameters::wall_time_avg = 0 |
| integer | m_global_parameters::num_procs |
| Number of processors. | |
| integer | m_global_parameters::proc_rank |
| Rank of the local processor. | |
| logical | m_global_parameters::cfl_dt |
| integer, parameter | m_global_parameters::hypo_nc_mode_none = 0 |
| Hypoelastic NC velocity-coupling mode; exactly one value, derived from riemann_solver + hypo_hll_interface_rhs. | |
| integer, parameter | m_global_parameters::hypo_nc_mode_finite_diff = 1 |
| velocity gradients by finite difference (HLL without interface RHS) | |
| integer, parameter | m_global_parameters::hypo_nc_mode_interface = 2 |
| interface-velocity export for the velocity-gradient tensor (HLL Method 2, HLLC) | |
| integer, parameter | m_global_parameters::hypo_nc_mode_dual_pass = 3 |
| anchored dual-pass HLLD; all NC terms stay in the Riemann flux | |
| integer | m_global_parameters::hypo_nc_mode |
| integer, parameter | m_global_parameters::adv_src_mode_unset = 0 |
| NC volume-fraction advection export mode; exactly one value, derived from riemann_solver + hll_u_interface. | |
| integer, parameter | m_global_parameters::adv_src_mode_alpha_iface = 1 |
| flux_src exports per-fluid interface alpha | |
| integer, parameter | m_global_parameters::adv_src_mode_vel_iface = 2 |
| flux_src exports shared face-normal interface velocity | |
| integer, parameter | m_global_parameters::adv_src_mode_none = 3 |
| flux_src exports no NC advection quantity | |
| integer | m_global_parameters::adv_src_mode |
| logical | m_global_parameters::use_nc_iface_vel |
| nc_iface_vel exports interface velocities needed outside flux_src | |
| logical | m_global_parameters::shear_stress |
| Shear stresses. | |
| logical | m_global_parameters::bulk_stress |
| Bulk stresses. | |
| logical | m_global_parameters::bodyforces |
| real(wp), dimension(3) | m_global_parameters::accel_bf |
| real(wp), dimension(3) | m_global_parameters::mpg_force |
| Mean-pressure-gradient momentum source, -dP/dx. | |
| real(wp) | m_global_parameters::mts_qdot |
| Mean gas heat source per volume (thermostat). | |
| real(wp), dimension(:,:,:), allocatable | m_global_parameters::spbf_source_x |
| Source fields for the spatially supported body force. spatial_bf and bf_spatial_support are auto-generated in generated_decls.fpp. | |
| real(wp), dimension(:,:,:), allocatable | m_global_parameters::spbf_source_y |
| integer, dimension(num_synth_shells_max) | m_global_parameters::synth_n_waves_per_shell |
| real(wp), dimension(num_synth_shells_max) | m_global_parameters::synth_k_shell |
| real(wp), dimension(num_synth_shells_max) | m_global_parameters::synth_amp_shell |
| real(wp), dimension(num_turb_sources_max, 3) | m_global_parameters::turb_pos |
| real(wp), dimension(num_turb_sources_max, 3) | m_global_parameters::synth_l |
| integer | m_global_parameters::cpu_start |
| integer | m_global_parameters::cpu_end |
| integer | m_global_parameters::cpu_rate |
| logical | m_global_parameters::bc_io |
| logical, dimension(3) | m_global_parameters::periodic_bc |
| type(bounds_info) | m_global_parameters::neighbor_domain_x |
| type(bounds_info) | m_global_parameters::neighbor_domain_y |
| type(bounds_info) | m_global_parameters::neighbor_domain_z |
| integer | m_global_parameters::num_gbl_ibs |
| integer | m_global_parameters::num_local_ibs |
| type(mpi_io_var), public | m_global_parameters::mpi_io_data |
| type(mpi_io_ib_var), public | m_global_parameters::mpi_io_ib_data |
| type(mpi_io_airfoil_ib_var), public | m_global_parameters::mpi_io_airfoil_ib_data |
| type(mpi_io_levelset_var), public | m_global_parameters::mpi_io_levelset_data |
| type(mpi_io_levelset_norm_var), public | m_global_parameters::mpi_io_levelsetnorm_data |
| type(qbmm_idx_info) | m_global_parameters::qbmm_idx |
| QBMM moment index mappings (allocatable; GPU-managed separately). | |
| type(int_bounds_info), dimension(1:3) | m_global_parameters::idwint |
| type(int_bounds_info), dimension(1:3) | m_global_parameters::idwbuff |
| type(int_bounds_info), dimension(1:3) | m_global_parameters::idwbuff_alloc |
| ALLOCATION bounds for the solver working set, as distinct from the RUNTIME bounds in idwbuff: the AMR fine advance rewrites m/idwint/idwbuff to a block but the arrays stay as allocated, so they must hold the largest grid seen (coarse subdomain or refined block). Equal to idwbuff unless amr_max_grid_size pins a cap larger than the subdomain. | |
| integer | m_global_parameters::m_alloc |
| Interior allocation extents, the m/n/p counterpart of idwbuff_alloc, for scratch sized on bare m/n/p (m_riemann_solvers, m_weno, the x/y/z_cb family). Equal to m/n/p unless amr_max_grid_size pins a cap larger than the subdomain. | |
| integer | m_global_parameters::n_alloc |
| integer | m_global_parameters::p_alloc |
| integer | m_global_parameters::buff_size |
| Number of ghost cells for boundary condition storage. | |
| integer | m_global_parameters::fd_number |
| Finite-difference half-stencil size: MAX(1, fd_order/2). | |
| integer | m_global_parameters::n_el_particles_loc |
| integer | m_global_parameters::n_el_particles_glb |
| Number of Lagrangian solid particles (local and global). | |
| type(part_q_idx_info) | m_global_parameters::part_q_idx |
| Lagrangian particle projected-field indices. | |
| type(part_field_idx_info) | m_global_parameters::part_field_idx |
| Lagrangian particle cell-field indices. | |
Max and min number of cells in a direction of each combination of x-,y-, and z- | |
| type(cell_num_bounds) | m_global_parameters::cells_bounds |
Global number of cells in each direction | |
| integer | m_global_parameters::m_glb |
| integer | m_global_parameters::n_glb |
| integer | m_global_parameters::p_glb |
Cylindrical coordinates (either axisymmetric or full 3D) | |
| integer | m_global_parameters::grid_geometry |
Cell-boundary (CB) locations in the x-, y- and z-directions, respectively | |
| real(wp), dimension(:), allocatable, target | m_global_parameters::x_cb |
| real(wp), dimension(:), allocatable, target | m_global_parameters::y_cb |
| real(wp), dimension(:), allocatable, target | m_global_parameters::z_cb |
| type(bounds_info), dimension(3) | m_global_parameters::glb_bounds |
Cell-center (CC) locations in the x-, y- and z-directions, respectively | |
| real(wp), dimension(:), allocatable, target | m_global_parameters::x_cc |
| real(wp), dimension(:), allocatable, target | m_global_parameters::y_cc |
| real(wp), dimension(:), allocatable, target | m_global_parameters::z_cc |
Cell-width distributions in the x-, y- and z-directions, respectively | |
| real(wp), dimension(:), allocatable, target | m_global_parameters::dx |
| real(wp), dimension(:), allocatable, target | m_global_parameters::dy |
| real(wp), dimension(:), allocatable, target | m_global_parameters::dz |
Boundary conditions (BC) in the x-, y- and z-directions, respectively | |
| 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 |
| type(bc_xyz_info) | m_global_parameters::bc |
Original boundary conditions preserved for immersed boundary code | |
(bc_x/y/z get overwritten with MPI neighbor ranks during decomposition) | |
| type(int_bounds_info) | m_global_parameters::ib_bc_x |
| type(int_bounds_info) | m_global_parameters::ib_bc_y |
| type(int_bounds_info) | m_global_parameters::ib_bc_z |
MPI domain-decomposition state for Lagrangian-bubble exchange (#1290) | |
| type(bounds_info), dimension(:), allocatable | m_global_parameters::pcomm_coords |
| Local rank physical domain bounds. | |
| type(int_bounds_info), dimension(3) | m_global_parameters::nidx |
| Neighbor index offsets per direction. | |
| integer, dimension(:,:,:), allocatable | m_global_parameters::neighbor_ranks |
| MPI ranks of neighbors. | |
Herschel-Bulkley non-Newtonian viscosity: per-fluid flags and parameter arrays. | |
| logical | m_global_parameters::any_non_newtonian |
| .true. if any fluid is non-Newtonian | |
| logical, dimension(:), allocatable | m_global_parameters::is_non_newtonian |
| per-fluid NN flag | |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_tau0 |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_k |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_nn |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_m_arr |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_mu_min |
| real(wp), dimension(:), allocatable | m_global_parameters::hb_mu_max |
| real(wp), dimension(:), allocatable | m_global_parameters::fluid_inv_re |
| per-fluid Newtonian inverse-Re | |
| real(wp) | m_global_parameters::wa_flg |
The coordinate direction indexes and flags (flg), respectively, for which the configurations will be determined with | |
respect to a working direction and that will be used to isolate the contributions, in that direction, in the dimensionally split system of equations. Declared here rather than in m_global_parameters_common so the hot dimensionally-split kernels (Riemann solvers) read them from their own module: use-associating them from common causes heavy register spill on AMD OpenMP offload. Common code takes the mapping as explicit arguments instead. | |
| integer, dimension(3) | m_global_parameters::dir_idx |
| real(wp), dimension(3) | m_global_parameters::dir_flg |
| integer, dimension(3) | m_global_parameters::dir_idx_tau |
| (nn, nt, nt2) stress indices for wave speeds and momentum flux | |
| integer, dimension(6) | m_global_parameters::stress_perm |
| Full tensor permutation: local basis -> physical storage index. | |
Centered finite-difference coefficients in x-, y- and z-coordinate directions | |
| real(wp), dimension(:,:), allocatable | m_global_parameters::fd_coeff_x |
| real(wp), dimension(:,:), allocatable | m_global_parameters::fd_coeff_y |
| real(wp), dimension(:,:), allocatable | m_global_parameters::fd_coeff_z |
Immersed Boundaries | |
patch_ib, ib_airfoil, stl_models, particle_cloud: auto-generated in generated_decls.fpp | |
| integer, dimension(num_local_ibs_max) | m_global_parameters::local_ib_patch_ids |
| lookup table of IBs in the local compute domain | |
| integer, dimension(:,:,:), allocatable | m_global_parameters::ib_neighbor_ranks |
| MPI ranks of neighborhood domains, indexed (-N:N,-N:N,-N:N). | |
| type(ib_airfoil_grid), dimension(num_ib_airfoils_max) | m_global_parameters::ib_airfoil_grids |
| Per-airfoil computed surface grids. | |
Bubble modeling | |
| integer | m_global_parameters::nb |
| real(wp) | m_global_parameters::eu |
| Euler number. | |
| real(wp), dimension(:), allocatable | m_global_parameters::weight |
| Simpson quadrature weights. | |
| real(wp), dimension(:), allocatable | m_global_parameters::r0 |
| Bubble sizes. | |
| real(wp), dimension(:,:,:), allocatable | m_global_parameters::ptil |
| Pressure modification. | |
| integer, parameter | m_global_parameters::nmom = 6 |
| Number of carried moments per R0 location. | |
| integer | m_global_parameters::nmomsp |
| Number of moments required by ensemble-averaging. | |
| integer | m_global_parameters::nmomtot |
| Total number of carried moments moments/transport equations. | |
| type(scalar_field), dimension(:), allocatable | m_global_parameters::mom_sp |
| type(scalar_field), dimension(:,:,:), allocatable | m_global_parameters::mom_3d |
Physical bubble parameters (see Ando 2010, Preston 2007) | |
| real(wp) | m_global_parameters::phi_vg |
| real(wp) | m_global_parameters::phi_gv |
| real(wp) | m_global_parameters::pe_c |
| real(wp) | m_global_parameters::tw |
| real(wp) | m_global_parameters::k_vl |
| real(wp) | m_global_parameters::k_gl |
| real(wp), dimension(:), allocatable | m_global_parameters::pb0 |
| real(wp), dimension(:), allocatable | m_global_parameters::mass_g0 |
| real(wp), dimension(:), allocatable | m_global_parameters::mass_v0 |
| real(wp), dimension(:), allocatable | m_global_parameters::pe_t |
| real(wp), dimension(:), allocatable | m_global_parameters::k_v |
| real(wp), dimension(:), allocatable | m_global_parameters::k_g |
| real(wp), dimension(:), allocatable | m_global_parameters::re_trans_t |
| real(wp), dimension(:), allocatable | m_global_parameters::re_trans_c |
| real(wp), dimension(:), allocatable | m_global_parameters::im_trans_t |
| real(wp), dimension(:), allocatable | m_global_parameters::im_trans_c |
| real(wp), dimension(:), allocatable | m_global_parameters::omegan |
| real(wp) | m_global_parameters::gam |
| real(wp) | m_global_parameters::gam_m |
| real(wp) | m_global_parameters::p0ref |
| real(wp) | m_global_parameters::rho0ref |
| real(wp) | m_global_parameters::t0ref |
| real(wp) | m_global_parameters::ss |
| real(wp) | m_global_parameters::pv |
| real(wp) | m_global_parameters::vd |
| real(wp) | m_global_parameters::mu_l |
| real(wp) | m_global_parameters::mu_v |
| real(wp) | m_global_parameters::mu_g |
| real(wp) | m_global_parameters::gam_v |
| real(wp) | m_global_parameters::gam_g |
| real(wp) | m_global_parameters::m_v |
| real(wp) | m_global_parameters::m_g |
| real(wp) | m_global_parameters::cp_v |
| real(wp) | m_global_parameters::cp_g |
| real(wp) | m_global_parameters::r_v |
| real(wp) | m_global_parameters::r_g |
| real(wp) | m_global_parameters::mytime |
| Current simulation time. | |
| type(pres_field), dimension(:), allocatable | m_global_parameters::pb_ts |
| type(pres_field), dimension(:), allocatable | m_global_parameters::mv_ts |
lagrangian subgrid bubble parameters | |
lag_params: auto-generated in generated_decls.fpp ! | |
| integer | m_global_parameters::n_el_bubs_loc |
| integer | m_global_parameters::n_el_bubs_glb |
| Number of Lagrangian bubbles (local and global). | |
| logical | m_global_parameters::moving_lag_bubbles |
| logical | m_global_parameters::lag_pressure_force |
| logical | m_global_parameters::amr_sub_on = .false. |
| a subcycled step is in progress (flux captures accumulate rk3_w * the level dt) | |
| logical | m_global_parameters::amr_sub_first = .false. |
| the fine substep is its parent step's first (stage 1 restarts the fine registers) | |
| integer | m_global_parameters::amr_adv_level = 0 |
| the level the batched fine advance is restricted to (0: every refined level) | |
| real(wp) | m_global_parameters::amr_par_theta = 1._wp |
| subcycled level>=2 fills read (1-theta)*parent backup + theta*parent (1: current only) | |
| logical | m_global_parameters::lag_gravity_force |
| integer | m_global_parameters::lag_vel_model |
| integer | m_global_parameters::lag_drag_model |
| type(bub_q_idx_info) | m_global_parameters::bub_q_idx |
| Lagrangian bubble projected-field indices. | |
! | |
| logical | m_global_parameters::amr_cons_ghosts_valid = .false. |
| Coarse CONS ghosts at internal faces are already valid for this stage (the AMR cons halo ran before the coarse RHS), so s_compute_rhs converts over the buffered domain and skips the PRIM MPI exchange (byte-identical: the conversion is pointwise). | |
| logical | m_global_parameters::amr_rank_owns_block = .true. |
| true on the current block's single owner rank: amr_block_owner(amr_cur) == proc_rank; kept by s_set_amr_fine_geometry | |
| integer, dimension(3) | m_global_parameters::amr_region_lo = 0 |
| Current AMR fine-block box in level-0 cell indices (kept by s_set_amr_fine_geometry); lives here so m_amr_registers can read it without a use-cycle through m_amr. | |
| integer, dimension(3) | m_global_parameters::amr_region_hi = 0 |
| logical, dimension(3) | m_global_parameters::amr_dim = .true. |
| The active dimensions, and this rank's coarse subdomain origin and extent padded to 3-vectors (0 in collapsed dims), so per-dimension geometry is one masked vector expression. | |
| integer, dimension(3) | m_global_parameters::amr_sidx = 0 |
| integer, dimension(3) | m_global_parameters::amr_ext = 0 |
| integer, dimension(3) | m_global_parameters::amr_isect_lo = 0 |
| The block's coarse footprint driving the coarse<->fine gather/scatter, per dim (collapsed dims 0:0): the entire block on its owner, empty (lo > hi) elsewhere. Level-dependent frame: a level-1 block records global level-0 cell indices; a level>=2 owner records its parent's fine-cell frame, amr_ref_ratio*(region - parent_region_lo). Local fine index 0 maps to footprint cell amr_isect_lo. Kept by s_set_amr_fine_geometry. | |
| integer, dimension(3) | m_global_parameters::amr_isect_hi = 0 |
| integer | m_global_parameters::amr_num_blocks = 1 |
| Number of active AMR fine-block slots (>= 1) and the working slot index selecting which one the per-block machinery operates on. Lives here so m_amr and m_amr_registers share it without a use-cycle. | |
| integer | m_global_parameters::amr_cur = 1 |
| integer, dimension(:,:), allocatable | m_global_parameters::amr_region_lo_all |
| Per-slot mirrors (allocated 1:amr_max_blocks by m_amr): region box, rank intersection and ownership flag of every block. s_set_amr_fine_geometry writes the current slot's entry; s_amr_select_slot copies a slot's entry into the working mirrors. | |
| integer, dimension(:,:), allocatable | m_global_parameters::amr_region_hi_all |
| real(wp), dimension(:,:,:), allocatable | m_global_parameters::amr_cfl_rf |
| Spacing ratio of the finest cell over each coarse cell (1 where uncovered), and the powers of it by which that cell's inviscid, diffusive and capillary CFL numbers exceed the coarse cell's (a subcycled level also takes dt/ratio). Rebuilt by s_amr_build_cfl_map whenever the block set changes. | |
| real(wp), dimension(3) | m_global_parameters::amr_cfl_pow = 0._wp |
| integer, dimension(:,:), allocatable | m_global_parameters::amr_isect_lo_all |
| integer, dimension(:,:), allocatable | m_global_parameters::amr_isect_hi_all |
| logical, dimension(:), allocatable | m_global_parameters::amr_owns_all |
| integer, dimension(:), allocatable | m_global_parameters::amr_block_level |
| Refinement level of each active block (1..amr_max_level) and the deepest level populated. A level-l block refines a level-(l-1) region (L0 for l==1); regions stay in L0 cell indices at every level (fine extent per dim is amr_ref_ratio**level. | |
| integer | m_global_parameters::amr_num_levels = 1 |
| integer, dimension(:), allocatable | m_global_parameters::amr_block_owner |
| Fine-level distribution map: SFC/work-balanced single-owner rank per active block, giving amr_rank_owns_block = (amr_block_owner(amr_cur) == proc_rank). | |
| integer(8) | m_global_parameters::amr_mesh_epoch = 0 |
| Monotone mesh epoch, incremented wherever amr_seam_pairs_dirty is set and at the end of each slot reconciliation (exchange plans bake local slot indices). The boolean cannot serve as plan staleness: the first lazy seam-cache rebuild consumes it and ownership can change with no regrid. Lives here so m_amr_registers can key on it without a use-cycle. | |
| integer, dimension(:), allocatable | m_global_parameters::amr_reg_of |
| Participation-local flux-register index (m_amr_registers): global block slot -> dense register slot, 0 when this rank neither owns block g, owns g's parent, nor reflux-face-participates in it. The flux-register arrays are sized by amr_reg_n, not amr_num_blocks. Rebuilt by s_amr_reg_prepare on every mesh-epoch change. Host-only. | |
| integer | m_global_parameters::amr_reg_n = 0 |
| integer | m_global_parameters::amr_reg_cur = 0 |
| Dense register slot of the working block (amr_reg_of(amr_cur), 0 if unmapped); kept by s_amr_select_slot. | |
| integer, parameter | m_global_parameters::amr_bat_max = 256 |
| Batched fine advance: amr_bat_n members (0 outside a batch), their block ids, shared extents, the stacking dimension (the last active one) and the stack stride (block width + two ghost shells). Member i sits at offset amr_bat_off(:, i) = (i-1)*amr_bat_w along amr_bat_sd in the bridge and every solver scratch array. amr_bat_lim = members per batch, amr_bat_max = table capacity. | |
| integer | m_global_parameters::amr_bat_lim = 8 |
| integer | m_global_parameters::amr_bat_n = 0 |
| integer, dimension(amr_bat_max) | m_global_parameters::amr_bat_blk = 0 |
| integer, dimension(3) | m_global_parameters::amr_bat_ext = 0 |
| integer | m_global_parameters::amr_bat_sd = 3 |
| integer | m_global_parameters::amr_bat_w = 0 |
| real(wp), parameter | m_global_parameters::amr_bat_pad = 0.1_wp |
| A block may join a batch led by a larger block when padding it to the leader's extent wastes at most amr_bat_pad of its own cells. amr_bat_mext holds each member's own extents: the bridge load clamps to its buffered region, and the RK update and flux capture touch only its own cells. | |
| integer, dimension(3, amr_bat_max) | m_global_parameters::amr_bat_mext = 0 |
| integer, dimension(3, amr_bat_max) | m_global_parameters::amr_bat_off = 0 |
| real(wp), dimension(3, amr_bat_max) | m_global_parameters::amr_bat_xsh = 0._wp |
| For the IB face forces on a fine frame: each batch member's origin minus the leader's (members read the leader's coordinate arrays), and the boxes of the frame's cells that a finer level covers (lo(1:3), hi(1:3) in the frame's indices), where the finer level takes the faces. The coarse frame uses the cell map amr_cfl_rf instead. | |
| integer | m_global_parameters::amr_cov_n = 0 |
| integer, dimension(:,:), allocatable | m_global_parameters::amr_cov_box |
| subroutine | m_global_parameters::s_amr_select_slot (islot) |
| Make block slot islot the working slot: set amr_cur and copy its stored mirrors (region, intersection, ownership) into the working globals the per-block machinery reads. | |
| impure subroutine | m_global_parameters::s_assign_default_values_to_user_inputs |
| Assigns default values to the user inputs before reading them in. This enables for an easier consistency check of these parameters once they are read from the input file. | |
| impure subroutine | m_global_parameters::s_initialize_global_parameters_module |
| Initialize the global parameters module. | |
| impure subroutine | m_global_parameters::s_initialize_bubble_idx |
| Initialize the Lagrangian bubble projected-field indices (bub_q_idx). | |
| impure subroutine | m_global_parameters::s_initialize_particle_idx |
| Initialize the Lagrangian particle field indices (part_q_idx and part_field_idx), each vector spanning num_dims. Only the fields the enabled models use get an index: absent vectors are empty ranges, absent scalars are 0. | |
| subroutine | s_next_idx_range (bounds, used, len, num) |
| Next len indices after num when used, else the empty range after num; advances num. | |
| impure subroutine | m_global_parameters::s_initialize_parallel_io |
| Initializes parallel infrastructure. | |
| impure subroutine | m_global_parameters::s_finalize_global_parameters_module |
| Module deallocation and/or disassociation procedures. | |
Contains module m_global_parameters.
Definition in file m_global_parameters.fpp.f90.
|
private |
Next len indices after num when used, else the empty range after num; advances num.
Definition at line 3955 of file m_global_parameters.fpp.f90.