How emirhanic/reactorfoam works
Project type and purpose
• reactorFoam is a specialized CFD solver built on OpenFOAM-v10. It extends interFoam to handle two incompressible, isothermal immiscible fluids with VOF interface capturing, optional mesh motion/topology changes (adaptive remeshing), plus an optional radioactive‐decay term in the phase‐fraction transport.
File structure
• Top level:
• Makefiles (Allwmake, Make/, wmake support) for building against OpenFOAM libraries
• reactorFoam.C: the main solver entry point
• Equation headers (UEqn.H, alphaEqn.H, pEqn.H, etc.) that encapsulate individual equation setup/solve
• Subdirectories for two custom libraries:
– VoFTurbulenceDamping/: adds turbulence damping logic to the VOF model
– incompressibleInterPhaseTransportModel/: encapsulates the immiscible‐phase transport model
• Each library has its own Make/, source (*.C), headers (*.H), and lnInclude/ for OpenFOAM include linking.
README for additional insights
• Confirms physics extensions: radioactive decay added to the alpha transport equation
• Build instructions use wmake under $FOAM_APP/solvers
Detail
• Build dependencies: which Makefiles compile which modules
• Optional branches (mesh motion vs. static mesh)