31 void Foam::solvers::VoFSolver::setRDeltaT()
39 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.9)
45 rDeltaT.internalFieldRef() =
49 scalar minRDeltaT =
gMin(rDeltaT.primitiveField());
50 if (pimpleDict.found(
"maxDeltaT") || minRDeltaT < rootVSmall)
52 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"maxDeltaT");
53 rDeltaT.max(clipRDeltaT);
54 minRDeltaT =
max(minRDeltaT, clipRDeltaT);
56 if (pimpleDict.found(
"minDeltaT"))
58 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"minDeltaT");
59 rDeltaT.min(clipRDeltaT);
60 minRDeltaT =
min(minRDeltaT, clipRDeltaT);
63 Info<<
"Flow time scale min/max = "
64 <<
gMin(1/rDeltaT.primitiveField()) <<
", " << 1/minRDeltaT <<
endl;
73 pimpleDict.found(
"rDeltaTDampingCoeff")
78 const scalar rDeltaTDampingCoeff
80 pimpleDict.lookup<scalar>(
"rDeltaTDampingCoeff")
86 (scalar(1) - rDeltaTDampingCoeff)*rDeltaT0
89 Info<<
"Damped flow time scale min/max = "
90 <<
gMin(1/rDeltaT.primitiveField())
91 <<
", " <<
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.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
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)