77 fluidSolver::correctCoNum(phi);
91 mixturePtr_(mixturePtr),
92 mixture_(mixturePtr_()),
94 divAlphaName(
"div(phi,alpha)"),
167 extrapolatedCalculatedFvPatchScalarField::typeName
184 const scalar maxAlphaCo =
185 runTime.controlDict().lookup<scalar>(
"maxAlphaCo");
191 deltaT =
min(deltaT, maxAlphaCo/
alphaCoNum*runTime.deltaTValue());
200 if ((mesh.dynamic() ||
MRF.size()) && !Uf.valid())
202 Info<<
"Constructing face momentum Uf" <<
endl;
205 U_.correctBoundaryConditions();
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
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.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const fvSchemes & schemes() const
Return the fvSchemes.
virtual void preUpdateMesh()
Prepare for mesh update.
void setFluxRequired(const word &name) const
static word rDeltaTName
Name of the reciprocal local time-step field.
bool LTS
Switch for local time step transient operation.
const Time & runTime
Time.
const fvMesh & mesh
Region mesh.
Base solver module base-class for the solution of immiscible fluids using a VOF (volume of fluid) pha...
volScalarField & p_rgh
Reference to the buoyant pressure for buoyant cases.
const surfaceScalarField & phi
Reference to the mass-flux field.
virtual void postSolve()
Called after the PIMPLE loop at the end of the time-step.
tmp< volScalarField > trDeltaT
Optional LTS reciprocal time-step field.
virtual scalar maxDeltaT() const
Return the current maximum time-step for stable solution.
VoFSolver(fvMesh &mesh, autoPtr< VoFMixture >)
Construct from region mesh.
void clearrAU()
Clear the cached rAU is no longer needed.
virtual ~VoFSolver()
Destructor.
virtual void prePredictor()=0
Called at the start of the PIMPLE loop.
void continuityErrors()
Calculate and print the continuity errors.
virtual void preSolve()
Called at the start of the time-step, before the PIMPLE loop.
virtual void correctCoNum()=0
Correct the cached Courant numbers.
void setrAU(const fvVectorMatrix &UEqn)
Set or update the cached rAU.
Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases...
Base solver module for fluid solvers.
void continuityErrors(const surfaceScalarField &phi)
Calculate and print the continuity errors.
virtual scalar maxDeltaT() const
Return the current maximum time-step for stable solution.
A class for managing temporary objects.
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
Calculate the divergence of the given field.
Calculate the mesh motion flux and convert fluxes from absolute to relative and back.
volScalarField rAU(1.0/UEqn.A())
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
defineTypeNameAndDebug(compressibleMultiphaseVoF, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
tmp< SurfaceField< Type > > linearInterpolate(const VolField< Type > &vf)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const dimensionSet dimTime
VolField< scalar > volScalarField
SurfaceField< vector > surfaceVectorField