4 const dictionary& pimpleDict =
pimple.dict();
8 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.8)
13 pimpleDict.lookupOrDefault<scalar>(
"rDeltaTSmoothingCoeff", 0.02)
18 pimpleDict.lookupOrDefault<scalar>(
"maxDeltaT", great)
23 pimpleDict.lookupOrDefault<scalar>(
"minDeltaT", small)
58 rDeltaT.correctBoundaryConditions();
60 Info<<
"Flow time scale min/max = " 61 <<
gMin(1/rDeltaT.primitiveField())
62 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
69 Info<<
"Smoothed flow time scale min/max = " 70 <<
gMin(1/rDeltaT.primitiveField())
71 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
78 pimpleDict.found(
"rDeltaTDampingCoeff")
79 && runTime.timeIndex() > runTime.startTimeIndex() + 1
85 pimpleDict.lookup<scalar>(
"rDeltaTDampingCoeff")
90 *
max(rDeltaT/
rDeltaT0, scalar(1) - rDeltaTDampingCoeff);
92 Info<<
"Damped flow time scale min/max = " 93 <<
gMin(1/rDeltaT.primitiveField())
94 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
const scalar minDeltaT(pimpleDict.lookupOrDefault< scalar >("minDeltaT", small))
pimpleNoLoopControl & pimple
Type gMin(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void smooth(volScalarField &field, const scalar coeff)
const volScalarField rDeltaT0("rDeltaT0", rDeltaT)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimTime
const volScalarField & psi
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const scalar maxCo(pimpleDict.lookupOrDefault< scalar >("maxCo", 0.9))
Type gMax(const FieldField< Field, Type > &f)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const scalar rDeltaTSmoothingCoeff(pimpleDict.lookupOrDefault< scalar >("rDeltaTSmoothingCoeff", 0.1))
dimensioned< scalar > mag(const dimensioned< Type > &)
const scalar rDeltaTDampingCoeff(pimpleDict.lookupOrDefault< scalar >("rDeltaTDampingCoeff", 1.0))
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< volScalarField > trDeltaT
const scalar maxDeltaT(pimpleDict.lookupOrDefault< scalar >("maxDeltaT", great))