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, fvMesh > & V() const
Return cell volumes.
static const dictionary & dict(const fvMesh &mesh, const word &algorithmName="PIMPLE")
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)
Type gMin(const UList< Type > &f, const label comm)
Ostream & endl(Ostream &os)
Add newline and flush stream.
VolField< scalar > volScalarField
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
Type gMax(const UList< Type > &f, const label comm)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)