Skip to content

MOOSE Multiphysics

MOOSE is not a Python package. It is a compiled C++/Fortran FEM executable (moose-opt) linked against PETSc, libMesh, MPI, HDF5, Exodus/SEACAS, WASP and optionally VTK. pip install moose gets you an unrelated task runner. Plan for a real build.

0. Decide which solver you need before writing any physics

Need App
Anything across modules (neutronics + heat + NS + reactor mesh) modules/combined/combined-opt
One module only modules/<name>/<name>-opt
Framework-only regression binary test/moose_test-opt

The combined app registers every module's objects. Build that unless you have a reason not to. There is no top-level Makefile in the repo — cd modules/combined && make -j<N> is the target.

A source build produces combined-opt, NOT moose-opt. moose-opt is the name INL's conda package installs it under (APPLICATION_NAME := combined in modules/combined/Makefile decides). Asserting on moose-opt reports failure on a build that succeeded.

1. Getting MOOSE

Three paths, in order of preference:

  1. INL conda channel — conda.software.inl.gov/public. Fastest by far.
    mamba create -n moose -c https://conda.software.inl.gov/public -c conda-forge moose
    
    This channel has recurring multi-hour 502 outages (Cloudflare can't reach origin). See references/build-from-source.md §1 for how to poll it and for the GitHub discussion thread. anaconda.org/idaholab is empty — there is no mirror. idaholab/conda-moose is archived and dead.
  2. Apptainer — apptainer/{mpi,petsc,libmesh,app,moose-dev}.def in the repo. Skip if the user has a GPU they care about; container GPU contention is a real complaint.
  3. From source — ~2 h on 16 cores. Full recipe with every trap documented in references/build-from-source.md. Read it before starting; the failure modes are non-obvious and each one costs a 15-minute PETSc configure to discover.

The GPU story: INL's prebuilt conda stack is CPU-only (the CUDA variant in conda/petsc/build.sh is commented out). MOOSE's GPU path is Kokkos, and scripts/configure_petsc.sh already passes --download-kokkos=1 --download-kokkos-commit=4.7.04 --download-kokkos-kernels=1, so a from-source build gets Kokkos for free. To actually use the GPU you additionally need --with-cuda=1 --with-cuda-dir=/usr/local/cuda and a CUDA toolkit installed. See framework/doc/content/source/kokkos/ and framework/kokkos.mk (KOKKOS_CUDA_ARCH_86 := Ampere CC 8.6 etc.).

Split the tooling: mamba/conda for the solver, uv for the Python layer. python/ in the repo holds MooseDocs, TestHarness, chigger/peacock (Exodus post-processing), mooseutils, moosecontrol, moosepy, moosefmu, pyhit and mms. requirements.txt exists but its header says it mirrors conda/tools/ and is only used inside the moose-dev Apptainer containers. OpenMC is pip/conda-installable — if the user wants Monte Carlo cross sections, uv gets a real job there.

Export-controlled: idaholab/{pronghorn,griffin,bison,mammoth,elk} and neams-hpc/cardinal are all 404 on GitHub. Plain MOOSE + OpenMC is the open path. MOOSE has no neutronics module — that's Griffin/MAMMOTH. You can still do multigroup diffusion k-eigenvalues with stock framework objects; see references/neutronics-diffusion.md.

2. Reading the source is faster than reading the docs

mooseframework.inl.gov sits behind Cloudflare and 403s a plain fetch. GitHub raw paths for the getting-started docs 404 (they moved; there is no framework/doc/content/source/getting_started/). Clone the repo and grep it. Every object's parameters are declared in its .C file with addParam<> / addRequiredParam<> / addCoupledVar<>, and every object has a test under test/tests/ or modules/<mod>/test/tests/. That is ground truth and it beats any memory of the docs.

from ripgrep_rs import search
res = search(patterns=[r"class\s+InfiniteCylinderRadiativeBC"],
             paths=["~/src/moose/modules"], line_number=True)

To find a working example of any object:

grep -rl "type = <ObjectName>" ~/src/moose/{test,modules}/*/tests | head

3. HIT input-file grammar in one screen

[Mesh]            # or a MeshGenerator chain
[Variables]       # nonlinear unknowns
[AuxVariables]
[ICs] [AuxICs]
[Kernels]         # volume residual terms, one block per term
[BCs]
[Materials]
[Postprocessors] [VectorPostprocessors] [UserObjects]
[Functions]
[Executioner]     # Steady / Transient / Eigenvalue / NonlinearEigen
[Problem]         # only needed for EigenProblem / FEProblem type overrides
[Outputs]

Rules that bite: - Every block entry needs type = <RegisteredClassName>. - [GlobalParams] sets defaults for a named object list — the INSFV natural convection examples lean on it hard. - MOOSE_JOBS/METHOD are env, not input. METHOD=opt is what you want. - --dump is a boolean, not a filter — --dump MatReaction errors with "the command line option '--dump' is a boolean and does not support a value". The filters are --dump-search <regex>, --json-search <regex>, --yaml-search <regex>. --dump alone prints the entire syntax tree (huge). All of them emit a wall of MOOSE's own FunctorMaterial/add_material deprecation warnings — grep through it. - ./combined-opt --show-input file.i resolves the fully-expanded input. - ./combined-opt --check-input -i file.i validates without solving. - ./combined-opt --list-constructed-objects lists every registered type name. - Unused top-level HIT parameters are a hard error, not a warning: *** ERROR *** file.i:43.1: unused parameter 'P_nominal'. Every name = value at file scope must be referenced by a ${name} somewhere. -w / --allow-unused downgrades it, but don't — that check catches real typos. - Syntax errors report the exact block path. Read them literally.

4. Axisymmetric (RZ) — the workhorse for reactors

coord_type = RZ is a top-level [Mesh] block parameter, not a mesh generator parameter. It works alongside modern mesh generators.

[Mesh]
  coord_type = RZ
  [core]
    type = CartesianMeshGenerator
    ...
  []
[]
  • x = radial (must be ≥ 0), y = axial.
  • The r = 0 axis needs no boundary condition — the Jacobian weight 2πr vanishes there.
  • Related params: rz_coord_axis, rz_coord_blocks, rz_coord_origins.
  • 594 files in the repo use it. Canonical example: modules/combined/test/tests/gap_heat_transfer_mortar/finite-2d-rz/finite.i.
  • CartesianMeshGenerator takes a flat subdomain_id vector in y-outer / x-inner order. Boundary names left/right/top/bottom exist, plus _to_<block> variants for internal faces.
  • RenameBlockGenerator uses old_block / new_block (old_block_id / new_block_name are deprecated).
  • RZ → 3D: RevolveGenerator.

5. Physics-area quick map

Full verified inventory in references/object-inventory.md.

Physics Go-to objects
Multigroup neutron diffusion, k-eff EigenProblem + Eigenvalue executioner + MatDiffusion/MatReaction + VacuumBC. See references/neutronics-diffusion.md — there are sign traps.
Conduction HeatConduction, HeatConductionTimeDerivative, HeatSource, MatHeatSource, AnisoHeatConduction, HomogenizedHeatConduction
Surface-to-surface radiation across an annulus InfiniteCylinderRadiativeBC — concentric infinite cylinder, takes boundary_radius/cylinder_radius, does not query the mesh. Also RayTracingViewFactor, GapFluxModelRadiation
Boussinesq natural convection INSFV family: INSFVMomentumBoussinesq + INSFVRhieChowInterpolator. Template: modules/navier_stokes/test/tests/finite_volume/ins/natural_convection/fuel_cavity.i
Fluid ↔ solid wall coupling FVConvectionCorrelationInterface
Solid props solid_properties module: ThermalSS316Properties, ThermalUCProperties, ThermalGraphiteProperties (grade H_451 only — PCEA is NOT implemented), ThermalFunctionSolidProperties
Fluid props fluid_properties module: HeliumFluidProperties, IdealGasFluidProperties, CaloricallyImperfectGas, CO2FluidProperties, Water97FluidProperties, …
Reactor geometry reactor module: CoreMeshGenerator, AssemblyMeshGenerator, PinMeshGenerator, ControlDrumMeshGenerator, AdvancedConcentricCircleGenerator, PeripheralRingMeshGenerator, RevolveGenerator
XS depend on T (Doppler, moderator density) NonlinearEigen executioner, or Picard via MultiApp + Transfer
Decay heat ANS-5.1-style curve inside an ADParsedFunctorMaterial (it sees t), INSFVEnergyTimeDerivative per block, IterationAdaptiveDT capped by a PiecewiseLinear log-time limiter. Read references/fv-and-transient.md first - the resolved-gap limit cycle and the one-enthalpy-material rule live there.

HeliumFluidProperties, IdealGasFluidProperties, NitrogenFluidProperties and CaloricallyImperfectGas live in modules/fluid_properties/src/ — they are always built. The modules/fluid_properties/contrib/{air,helium,sodium,...} submodules are optional SBTL table libraries and carry update = none in .gitmodules on purpose.

6. Coupling strategy — don't over-build

Stage the model. Each stage should run and produce a number before you add the next physics:

  1. Neutronics alone, isothermal → k_eff + power shape.
  2. One-way fixed power → conduction through the solid stack.
  3. Close the neutronics↔thermal loop (Doppler in fuel, moderator T → moderator density → thermal absorption/downscatter). NonlinearEigen or Picard.
  4. Replace the outer BC with the real coolant (INSFV Boussinesq + InfiniteCylinderRadiativeBC).
  5. The safety case — decay-heat transient, watch the limiting temperature.
  6. Optional: primary/secondary loops, thermal stress, OpenMC coupling for real cross sections.

A 2D RZ model with homogenized rings gets you the safety argument. Do not reach for 3D or CAD until a reviewer asks for it.

7. Label your assumptions

For anything not open literature (microreactor vendors publish almost no numbers), every geometry, temperature, pressure and enrichment in the input file is a guess. Put # ASSUMPTION: comments inline and keep a design_basis/ markdown next to the inputs separating cited facts from assumed values. Future-you and any reviewer will need it.

References

  • references/build-from-source.md — the full from-source recipe, every error message encountered, and the fix, with the INL recipe it was copied from.
  • references/object-inventory.md — source-verified MOOSE object inventory by physics area, with parameter names that differ from what you'd guess.
  • references/neutronics-diffusion.md — multigroup k-eigenvalue diffusion with zero custom C++: the template input, and the MatReaction sign traps.
  • references/fv-and-transient.md — the finite-volume stack and the transient: the upwind-boolean period-2 limit cycle and why a resolved gap cannot be marched to equilibrium, INSFVEnthalpyFunctorMaterial's h/rho_h and one-instance rule, ParsedFunctorMaterial's x/y/z/t-only scope, timestep_limiting_function needing a PiecewiseBase, FV sources and surface postprocessors, and the steady-at-F(t) cross-check that proves a transient.
  • references/post-and-visualize.md — reading MOOSE Exodus with netCDF4 (the per-block elemental-variable and NUL-garbage traps), field maps and profiles without ParaView, an honest turntable "video" for a steady solve, and the ffmpeg contact-sheet trick that judges it in one vision call.