39 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.8)
42 const scalar rDeltaTSmoothingCoeff
44 pimpleDict.lookupOrDefault<scalar>
46 "rDeltaTSmoothingCoeff",
55 scalar minRDeltaT =
gMin(rDeltaT.primitiveField());
56 if (pimpleDict.found(
"maxDeltaT") || minRDeltaT < rootVSmall)
58 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"maxDeltaT");
59 rDeltaT.max(clipRDeltaT);
60 minRDeltaT =
max(minRDeltaT, clipRDeltaT);
62 if (pimpleDict.found(
"minDeltaT"))
64 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"minDeltaT");
65 rDeltaT.min(clipRDeltaT);
66 minRDeltaT =
min(minRDeltaT, clipRDeltaT);
69 Info<<
"Flow time scale min/max = "
70 <<
gMin(1/rDeltaT.primitiveField()) <<
", " << 1/minRDeltaT <<
endl;
73 rDeltaT.correctBoundaryConditions();
77 Info<<
"Smoothed flow time scale min/max = "
78 <<
gMin(1/rDeltaT.primitiveField())
79 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
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 fvMesh & mesh
Region mesh.
tmp< volScalarField > trDeltaT
Optional LTS reciprocal time-step field.
Provides functions smooth spread and sweep which use the FvFaceCellWave algorithm to smooth and redis...
void smooth(volScalarField &field, const scalar coeff)
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.
SurfaceField< scalar > surfaceScalarField
VolField< scalar > volScalarField
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
Type gMax(const UList< Type > &f, const label comm)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)