39 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.8)
42 const scalar rDeltaTSmoothingCoeff
44 pimpleDict.lookupOrDefault<scalar>
46 "rDeltaTSmoothingCoeff",
52 rDeltaT.internalFieldRef() =
56 scalar minRDeltaT =
gMin(rDeltaT.primitiveField());
57 if (pimpleDict.found(
"maxDeltaT") || minRDeltaT < rootVSmall)
59 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"maxDeltaT");
60 rDeltaT.max(clipRDeltaT);
61 minRDeltaT =
max(minRDeltaT, clipRDeltaT);
63 if (pimpleDict.found(
"minDeltaT"))
65 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"minDeltaT");
66 rDeltaT.min(clipRDeltaT);
67 minRDeltaT =
min(minRDeltaT, clipRDeltaT);
70 Info<<
"Flow time scale min/max = "
71 <<
gMin(1/rDeltaT.primitiveField()) <<
", " << 1/minRDeltaT <<
endl;
74 rDeltaT.correctBoundaryConditions();
78 Info<<
"Smoothed flow time scale min/max = "
79 <<
gMin(1/rDeltaT.primitiveField())
80 <<
", " <<
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...
tmp< VolField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
void smooth(volScalarField &field, const scalar coeff)
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)