49 alphaControls.
found(
"nAlphaSubCycles")
59 {
"nCorrectors",
"nAlphaCorr"},
149 if (
mesh().topoChanged())
151 talphaPhi1Corr0.clear();
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
T lookupOrDefaultBackwardsCompatible(const wordList &, const T &) const
Find and return a T, trying a list of keywords in sequence,.
T lookupOrDefault(const word &, const T &, const bool writeDefault=writeOptionalEntries > 0) const
Find and return a T, if not found return the given default.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Mesh data needed to do the Finite Volume discretisation.
const fvSchemes & schemes() const
Return the fvSchemes.
const fvSolution & solution() const
Return the fvSolution.
void setFluxRequired(const word &name) const
const dictionary & solverDict(const word &name) const
Return the solver controls dictionary for the given field.
const fvMesh & mesh
Region mesh.
Base solver module base-class for the solution of immiscible fluids using a VOF (volume of fluid) pha...
virtual void preSolve()
Called at the start of the time-step, before the PIMPLE loop.
virtual bool read()
Read controls.
Solver module base-class for 2 immiscible fluids, with optional mesh motion and mesh topology changes...
virtual void prePredictor()
Called at the start of the PIMPLE loop.
twoPhaseSolver(fvMesh &mesh, autoPtr< twoPhaseVoFMixture >)
Construct from region mesh.
bool alphaRestart
Switch indicating if this is a restart.
bool alphaApplyPrevCorr
Apply the compression correction from the previous iteration.
MULES::control MULEScontrols
MULES controls.
label nAlphaCorr
Number of alpha correctors.
volScalarField & alpha1
Reference to the phase1-fraction.
autoPtr< Function1< scalar > > nAlphaSubCyclesPtr
Function to calculate the number of explicit MULES sub-cycles.
bool MULESCorr
Semi-implicit MULES switch.
virtual ~twoPhaseSolver()
Destructor.
virtual void preSolve()
Called at the start of the time-step, before the PIMPLE loop.
virtual bool read()
Read controls.
Class to represent a VoF mixture.
Templated form of IOobject providing type information for file reading and header type checking.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const char *const group
Group name for atomic constants.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
defineTypeNameAndDebug(compressibleMultiphaseVoF, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void read(const dictionary &dict)
Read dict and set the controls.