MFC
Exascale flow solver
Loading...
Searching...
No Matches
MFC Simulation

The simulation component is the core flow solver. It advances the governing equations in time using high-order finite-volume methods on structured grids with GPU acceleration via OpenACC/OpenMP offloading.

Modules

Simulation

Module Description
m_acoustic_src One-way acoustic source injection, Maeda and Colonius JCP (2017)
m_amr Block-structured AMR: up to amr_max_blocks refined blocks (2:1 or 4:1 per amr_ref_ratio), optionally nested to amr_max_level, advanced with the shared solver via grid-state swap and conservatively coupled to each block's parent level (ghost prolongation, Berger-Colella flux reflux, restriction) and dynamic regrid
m_amr_advance Fine-block stage advance and the immersed-boundary/Lagrange fine services
m_amr_cluster Berger-Rigoutsos clustering of a sparse tag list into separated block boxes, identically on every rank: tag signatures, bisection, canonical Morton order and min-separation merge
m_amr_distribution Rank decomposition, box arithmetic and block ownership (SFC cut, owner lookups, owned-block lists)
m_amr_exchange Parent/child data exchange: gather plans, pack/unpack and the fill waves
m_amr_frame Block-frame swap (fine grid state in/out of the shared solver)
m_amr_ghost Coarse-to-fine ghost fill: slab table, limited-linear or quartic fill, quartic positivity guard, volume-fraction closure
m_amr_nest Hierarchical child nesting for AMR regrid: each level's children are tagged by the density-gradient sensor on the old parent-level fine solution, clustered, and replayed in rank-invariant order
m_amr_registers AMR flux registers: per-RK-stage refluxing at the coarse/fine block boundary
m_amr_regrid Dynamic regrid for the AMR level set: density-gradient tagging, clustering (m_amr_cluster), box shaping, hierarchical child nesting (m_amr_nest), and slot rebuild with cross-rank fine-state migration
m_amr_restart AMR fine-level restart I/O: writes/reads the fine-level restart file alongside the level-0 restart (serial per-rank unformatted files, or one shared MPI-IO file under parallel_io)
m_amr_seam Same-level fine-fine seams and the coarse conservative halo
m_amr_stage The AMR hooks of the SSP-RK stage loop (m_time_steppers): the stage-top coarse halo, the fine-level stage, and the end-of-step fold of the fine solution into the level-0 covered cells
m_amr_state Module-scope AMR state (block pool, flat field store, wave buffers) and the leaf helpers every AMR module needs
m_amr_store Flat per-block field store: dense slot indexing, reservation, alloc/free and the prim/bridge loaders
m_amr_transfer Prolongation, restriction and Berger-Colella reflux, including the restrict/reflux/freg waves
m_amr_wave MPI point-to-point waves for AMR exchange: post all receives, pack, post all sends, wait once
m_body_forces Computes gravitational and body force source terms for the momentum equations
m_bubbles Bubble-dynamics procedures for ensemble- and volume-averaged model
m_bubbles_EE Computes ensemble-averaged (Euler–Euler) bubble source terms for radius, velocity, pressure, and mass transfer
m_bubbles_EL Tracks Lagrangian bubbles and couples their dynamics to the Eulerian flow via volume averaging
m_bubbles_EL_kernels Kernel functions (Gaussian, delta) that smear Lagrangian bubble effects onto the Eulerian grid
m_cbc Characteristic boundary conditions (CBCs) for slip walls, non-reflecting subsonic inflow/outflow, and supersonic boundaries
m_checker Validates simulation input parameters for consistency and supported configurations
m_collisions Ghost-node immersed boundary method: locates ghost/image points, computes interpolation coefficients, and corrects the flow state
m_compute_cbc Characteristic boundary condition (CBC) computations for subsonic inflow, outflow, and slip walls
m_compute_levelset Computes signed-distance level-set fields and surface normals for immersed-boundary patch geometries
m_conduction Fourier heat conduction, div(k grad T), as a face-centered source flux on the energy equation
m_data_output Writes solution data, run-time stability diagnostics (ICFL, VCFL, CCFL, Rc), and probe/center-of-mass files
m_derived_variables Derives diagnostic flow quantities (vorticity, speed of sound, numerical Schlieren, etc.) from conservative and primitive variables
m_euler_lagrange Utilities shared by the Euler-Lagrange bubble and solid-particle solvers: cell location, domain and cell-volume helpers, boundary handling, RK stages and Fornberg gradients
m_fftw Forward and inverse FFT wrappers (FFTW/cuFFT/hipFFT) for azimuthal Fourier filtering in cylindrical geometries
m_global_parameters Global parameters for the computational domain, fluid properties, and simulation algorithm configuration
m_hb_function Herschel-Bulkley non-Newtonian viscosity: formula, shear rate, and mixture inverse-Re
m_hypoelastic Computes hypoelastic stress-rate source terms and damage-state evolution
m_ib_patches Immersed boundary patch geometry constructors for 2D and 3D shapes
m_ib_wall_column Sub-grid wall conduction column of an isothermal immersed wall (patch_ibwall_column): state and 1D numerics
m_ibm Per-block fine-grid immersed-boundary state for AMR
m_igr Iterative ghost rasterization (IGR) for sharp immersed boundary treatment
m_mpi_proxy MPI halo exchange, domain decomposition, and buffer packing/unpacking for the simulation solver
m_muscl MUSCL reconstruction with interface sharpening for contact-preserving advection
m_particles_EL Euler-Lagrange solid particle solver with two-way coupling
m_particles_EL_kernels This module contains kernel functions used to map the effect of the lagrangian particles in the Eulerian framework
m_phase_timing Per-phase wall-time budget of the AMR step, reported when rank_time_wrt is on
m_pressure_relaxation Pressure relaxation for the six-equation multi-component model via Newton–Raphson equilibration and volume-fraction correction
m_qbmm Quadrature-based moment methods (QBMM) for polydisperse bubble moment inversion and transport
m_reactive_burn Condensed-phase reactive burn: a pressure-driven programmed-burn source that converts a "reactant" fluid into a "product" fluid on the multi-fluid model (num_fluids=2, chemistry='F')
m_rhs Assemble the right-hand side of the governing equations using finite-volume flux differencing, Riemann solvers, and physical source terms
m_riemann_solver_hll HLL approximate Riemann solver, Harten et al
m_riemann_solver_hllc HLLC Riemann solver with contact restoration, Toro et al
m_riemann_solver_hlld HLLD approximate Riemann solver for MHD, Miyoshi & Kusano JCP (2005)
m_riemann_solver_hypo_hlld Dual-pass HLLD approximate Riemann solver for hypoelastic flows, with non-conservative interface-velocity coupling
m_riemann_solver_lf Lax-Friedrichs (Rusanov) approximate Riemann solver
m_riemann_solvers Approximate and exact Riemann solvers (HLL, HLLC, HLLD, exact) for the multicomponent Navier–Stokes equations
m_riemann_state Shared Riemann-solver module state and the per-sweep setup, state-buffer population, viscous source flux, and finalization helpers
m_sim_helpers Simulation helper routines for cell state, CFL calculation, and stability checks
m_species_bounds Keeps reconstructed species mass fractions on the simplex (Y >= 0, sum Y = 1)
m_stage_hooks The hooks applied to the conservative state after each RK stage update, as one ordered list shared by the coarse grid (m_time_steppers) and the AMR fine blocks (m_amr_advance), so the two levels cannot run them in different orders
m_start_up Reads input files, loads initial conditions and grid data, and orchestrates solver initialization and finalization
m_surface_tension Computes capillary source fluxes and color-function gradients for the diffuse-interface surface tension model
m_thinc THINC and MTHINC interface compression for volume fraction sharpening
m_time_steppers Total-variation-diminishing (TVD) Runge–Kutta time integrators (1st-, 2nd-, and 3rd-order SSP)
m_viscous Computes viscous stress tensors and diffusive flux contributions for the Navier–Stokes equations
m_weno WENO/WENO-Z/TENO reconstructions with optional monotonicity-preserving bounds and mapped weights

Common (shared)

Module Description
m_amr_restart_io The AMR fine-level restart file layout shared by m_amr_restart (writer/reader) and post_process's overlay reader (m_data_input): path, fine cell-boundary subdivision, global-header check and the parallel_io per-block catalog
m_assign_variables Assigns initial primitive variables to computational cells based on patch geometry
m_boundary_common Noncharacteristic and processor boundary condition application for ghost cells and buffer regions
m_boundary_io Boundary condition restart I/O, capillary/IGR buffer population, and grid-variable buffers
m_boundary_primitives Per-cell noncharacteristic boundary condition primitives applied in the ghost cells
m_box Box type, per-rank partition arithmetic (one box per rank) and the Morton key
m_checker_common Shared input validation checks for grid dimensions and AMD GPU compiler limits
m_chemistry Multi-species chemistry interface for thermodynamic properties, reaction rates, and transport coefficients
m_compile_specific Platform-specific file and directory operations: create, delete, inquire, getcwd, and basename
m_constants Compile-time constant parameters: default values, tolerances, and physical constants
m_delay_file_access Rank-staggered file access delays to prevent I/O contention on parallel file systems
m_derived_types Shared derived types for field data, patch geometry, bubble dynamics, and MPI I/O structures
m_eos Equations of state in Gamma/Pi form, rho e = Gamma(rho) p + Pi(rho)
m_finite_differences Finite difference operators for computing divergence of velocity fields
m_global_parameters_common Shared global parameters and equation-index setup for all three executables
m_helper Utility routines for bubble model setup, coordinate transforms, array sampling, and special functions
m_helper_basic Basic floating-point utilities: approximate equality, default detection, and coordinate bounds
m_icpp_patches Constructs initial condition patch geometries (lines, circles, rectangles, spheres, etc.) on the grid
m_model Binary STL file reader and processor for immersed boundary geometry
m_mpi_common MPI communication layer: domain decomposition, halo exchange, reductions, and parallel I/O setup
m_nvtx NVIDIA NVTX profiling API bindings for GPU performance instrumentation
m_patch_geometries Contains helper functions specific to various patch gemoetries for determining if a grid cell lies inside of or outside of a patch geometry
m_phase_change Phase transition relaxation solvers for liquid-vapor flows with cavitation and boiling
m_precision_select Working-precision kind selection (half/single/double) and corresponding MPI datatype parameters
m_variables_conversion Conservative-to-primitive variable conversion, mixture property evaluation, and pressure computation

See Also