139 rhoPhi = alphaPhi1*rho1 + alphaPhi2*rho2;
145 momentumTransport.predict();
155 incompressiblePressureCorrector(
p);
165 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.
volVectorField U_
Velocity field.
const volScalarField & p_rgh
Reference to the buoyant pressure for buoyant cases.
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.
Solver module for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-...
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
virtual const Foam::pressureReference & pressureReference() const
Return the pressure reference.
virtual void momentumTransportCorrector()
Correct the momentum transport.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
virtual bool divergent() const
Is the flow divergent?
virtual void momentumTransportPredictor()
Predict the momentum transport.
virtual ~incompressibleVoF()
Destructor.
virtual void pressureCorrector()
Construct and solve the pressure equation in the PISO loop.
virtual void thermophysicalTransportCorrector()
Correct the thermophysical transport.
incompressibleVoF(fvMesh &mesh)
Construct from region mesh.
virtual void thermophysicalTransportPredictor()
Predict thermophysical transport.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
Solver module base-class for 2 immiscible fluids using a VOF (volume of fluid) phase-fraction based i...
Class to represent a VoF mixture.
pimpleControl pimple(mesh)
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void correctUphiBCs(volVectorField &U, surfaceScalarField &phi, const bool evaluateUBCs)
If the mesh is moving correct the velocity BCs on the moving walls to.