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, volMesh > & V() const
Return cell volumes.
virtual const dictionary & dict() const
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)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SurfaceField< scalar > surfaceScalarField
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)