141 rhoPhi = (alphaPhi1*(rho1 - rho2) + phi*rho2);
143 if (
pimple.predictTransport())
145 momentumTransport.predict();
152 incompressiblePressureCorrector(
p);
162 if (
pimple.correctTransport())
164 momentumTransport.correct();
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool restart() const
Return true if the run is a restart, i.e. startTime != beginTime.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word & name() const
Return const reference to name.
Mesh data needed to do the Finite Volume discretisation.
bool topoChanging() const
Does the mesh topology change?
Class to represent a mixture of two constant density phases.
Abstract base class for run-time selectable region solvers.
pimpleNoLoopControl pimple
PIMPLE inner-loop controls.
const Time & runTime
Time.
const fvMesh & mesh
Region mesh.
volScalarField & p_rgh
Reference to the buoyant pressure for buoyant cases.
volVectorField U_
Velocity field.
autoPtr< volScalarField > rAU
Inverse momentum equation diagonal.
const volVectorField & U
Reference to the velocity field.
surfaceScalarField phi_
Volumetric flux field.
Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases...
bool correctPhi
Switch to correct the flux after mesh change.
void readControls()
Read controls.
Solver module for for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) ph...
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
virtual const Foam::pressureReference & pressureReference() const
Return the pressure reference.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
virtual bool divergent() const
Is the flow divergent?
virtual ~incompressibleVoF()
Destructor.
virtual void pressureCorrector()
Construct and solve the pressure equation in the PISO loop.
virtual void postCorrector()
Correct the momentum and thermophysical transport modelling.
incompressibleVoF(fvMesh &mesh)
Construct from region mesh.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
Solver module base-class for for 2 immiscible fluids using a VOF (volume of fluid) phase-fraction bas...
Class to represent a VoF mixture.
pimpleControl pimple(mesh)
Flux correction functions to ensure continuity.
void correctPhi(surfaceScalarField &phi, const volVectorField &U, const volScalarField &p, const autoPtr< volScalarField > &rAU, const autoPtr< volScalarField > &divU, const pressureReference &pressureReference, nonOrthogonalSolutionControl &pcorrControl)
addToRunTimeSelectionTable(solver, compressibleMultiphaseVoF, fvMesh)
defineTypeNameAndDebug(compressibleMultiphaseVoF, 0)
To & refCast(From &r)
Reference type cast template function.
const dimensionSet dimTime
const dimensionSet dimDensity
VolField< scalar > volScalarField
void correctUphiBCs(volVectorField &U, surfaceScalarField &phi, const bool evaluateUBCs)
If the mesh is moving correct the velocity BCs on the moving walls to.
word name(const complex &)
Return a string representation of a complex.