31 void Foam::solvers::VoFSolver::setRDeltaT()
39 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.9)
47 if (pimpleDict.found(
"maxDeltaT"))
49 rDeltaT.max(1/pimpleDict.lookup<scalar>(
"maxDeltaT"));
51 if (pimpleDict.found(
"minDeltaT"))
53 rDeltaT.min(1/pimpleDict.lookup<scalar>(
"minDeltaT"));
56 Info<<
"Flow time scale min/max = "
57 <<
gMin(1/rDeltaT.primitiveField())
58 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
67 pimpleDict.found(
"rDeltaTDampingCoeff")
72 const scalar rDeltaTDampingCoeff
74 pimpleDict.lookup<scalar>(
"rDeltaTDampingCoeff")
80 (scalar(1) - rDeltaTDampingCoeff)*rDeltaT0
83 Info<<
"Damped flow time scale min/max = "
84 <<
gMin(1/rDeltaT.primitiveField())
85 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
label timeIndex() const
Return current time index.
virtual label startTimeIndex() const
Return start time index.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
virtual const dictionary & dict() const
Return the solution dictionary.
pimpleNoLoopControl pimple
PIMPLE inner-loop controls.
const Time & runTime
Time.
const fvMesh & mesh
Region mesh.
const surfaceScalarField & phi
Reference to the mass-flux field.
tmp< volScalarField > trDeltaT
Optional LTS reciprocal time-step field.
virtual void setInterfaceRDeltaT(volScalarField &rDeltaT)=0
Adjust the rDeltaT in the vicinity of the interface.
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField.
tmp< VolField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)