31 void Foam::solvers::VoFSolver::setRDeltaT()
39 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.9)
48 scalar minRDeltaT =
gMin(rDeltaT.primitiveField());
49 if (pimpleDict.found(
"maxDeltaT") || minRDeltaT < rootVSmall)
51 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"maxDeltaT");
52 rDeltaT.max(clipRDeltaT);
53 minRDeltaT =
max(minRDeltaT, clipRDeltaT);
55 if (pimpleDict.found(
"minDeltaT"))
57 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"minDeltaT");
58 rDeltaT.min(clipRDeltaT);
59 minRDeltaT =
min(minRDeltaT, clipRDeltaT);
62 Info<<
"Flow time scale min/max = "
63 <<
gMin(1/rDeltaT.primitiveField()) <<
", " << 1/minRDeltaT <<
endl;
72 pimpleDict.found(
"rDeltaTDampingCoeff")
77 const scalar rDeltaTDampingCoeff
79 pimpleDict.lookup<scalar>(
"rDeltaTDampingCoeff")
85 (scalar(1) - rDeltaTDampingCoeff)*rDeltaT0
88 Info<<
"Damped flow time scale min/max = "
89 <<
gMin(1/rDeltaT.primitiveField())
90 <<
", " <<
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< VolInternalField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
VolField< scalar > volScalarField
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)