43 void Foam::solvers::twoPhaseVoFSolver::correctCoNum()
56 const scalar meanAlphaCoNum =
61 Info<<
"Interface Courant Number mean: " << meanAlphaCoNum
77 return interface.surfaceTensionForce();
91 interface(
mixture, alpha1, alpha2,
U)
99 <<
" is not an interface compression scheme:"
105 if (alphaControls.
found(
"cAlpha"))
108 <<
"Deprecated and unused cAlpha entry specified in "
109 << alphaControls.
name() <<
nl
110 <<
"Please update the case to use one of the run-time "
111 "selectable interface compression schemes:"
List< Key > toc() const
Return the table of contents.
bool found(const Key &) const
Return true if hashedEntry is found in table.
const word & name() const
Return name.
scalar deltaTValue() const
Return time step value.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const fileName & name() const
Return the dictionary name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvSchemes & schemes() const
Return the fvSchemes.
const fvSolution & solution() const
Return the fvSolution.
ITstream & div(const word &name) const
tmp< volScalarField > nearInterface() const
Indicator of the proximity of the interface.
const dictionary & solverDict(const word &name) const
Return the solver controls dictionary for the given field.
const Time & runTime
Time.
const fvMesh & mesh
Region mesh.
const word divAlphaName
Name of the alpha convection scheme.
const surfaceScalarField & phi
Reference to the mass-flux field.
scalar alphaCoNum
Phase-fraction flux Courant number.
virtual void correctCoNum()=0
Correct the cached Courant numbers.
Solver module base-class for 2 immiscible fluids, with optional mesh motion and mesh topology changes...
volScalarField & alpha1
Reference to the phase1-fraction.
Solver module base-class for 2 immiscible fluids using a VOF (volume of fluid) phase-fraction based i...
twoPhaseVoFSolver(fvMesh &mesh, autoPtr< twoPhaseVoFMixture >)
Construct from region mesh.
virtual tmp< surfaceScalarField > surfaceTensionForce() const
Return the interface surface tension force for the momentum equation.
interfaceProperties interface
virtual void correctInterface()
Correct the interface properties following mesh-change.
virtual ~twoPhaseVoFSolver()
Destructor.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Area-weighted average a surfaceField creating a volField.
#define WarningInFunction
Report a warning using Foam::Warning.
tmp< VolInternalField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
defineTypeNameAndDebug(compressibleMultiphaseVoF, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gSum(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const wordHashSet compressionSchemes
Type gMax(const FieldField< Field, Type > &f)