29 const dictionary& pimpleDict =
pimple.dict();
31 Info<<
"Time scales min/max:" <<
endl;
39 const scalar
maxCo(pimpleDict.lookup<scalar>(
"maxCo"));
48 if (pimpleDict.found(
"maxDeltaT"))
50 rDeltaT.max(1/pimpleDict.lookup<scalar>(
"maxDeltaT"));
54 if (pimpleDict.found(
"minDeltaT"))
56 rDeltaT.min(1/pimpleDict.lookup<scalar>(
"minDeltaT"));
60 << 1/
gMax(rDeltaT.primitiveField()) <<
", " 61 << 1/
gMin(rDeltaT.primitiveField()) << endl;
66 const scalar alphaTemp(pimpleDict.lookupOrDefault(
"alphaTemp", 0.05));
71 volScalarField::Internal rDeltaTT
76 Info<<
" Temperature = " 77 << 1/(
gMax(rDeltaTT.field()) + vSmall) <<
", " 78 << 1/(
gMin(rDeltaTT.field()) + vSmall) <<
endl;
80 rDeltaT.ref() =
max(rDeltaT(), rDeltaTT);
84 if (pimpleDict.found(
"alphaY"))
88 const scalar alphaY(pimpleDict.lookup<scalar>(
"alphaY"));
90 const dictionary Yref(pimpleDict.subDict(
"Yref"));
92 volScalarField::Internal rDeltaTY
112 if (Yref.found(Yi.name()))
115 scalar Yrefi = Yref.lookup<scalar>(Yi.name());
117 rDeltaTY.field() =
max 122 /((Yrefi*alphaY)*(
rho*
mesh.V()))
132 Info<<
" Composition = " 133 << 1/(
gMax(rDeltaTY.field()) + vSmall) <<
", " 134 << 1/(
gMin(rDeltaTY.field()) + vSmall) <<
endl;
136 rDeltaT.ref() =
max(rDeltaT(), rDeltaTY);
141 <<
"Cannot find any active species in Yref " << Yref
147 rDeltaT.correctBoundaryConditions();
152 pimpleDict.lookupOrDefault<scalar>(
"rDeltaTSmoothingCoeff", 0.1)
156 if (rDeltaTSmoothingCoeff < 1)
166 pimpleDict.found(
"rDeltaTDampingCoeff")
167 && runTime.timeIndex() > runTime.startTimeIndex() + 1
173 pimpleDict.lookup<scalar>(
"rDeltaTDampingCoeff")
179 (scalar(1) - rDeltaTDampingCoeff)*
rDeltaT0 184 rDeltaT.correctBoundaryConditions();
187 << 1/
gMax(rDeltaT.primitiveField())
188 <<
", " << 1/
gMin(rDeltaT.primitiveField()) << endl;
const word & executable() const
Name of executable without the path.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fluidReactionThermo & thermo
pimpleNoLoopControl & pimple
Type gMin(const FieldField< Field, Type > &f)
basicSpecieMixture & composition
combustionModel & reaction
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
#define IOWarningIn(functionName, ios)
Report an IO warning using Foam::Warning.
const scalar maxCo(pimpleDict.lookupOrDefault< scalar >("maxCo", 0.9))
Type gMax(const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
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< volScalarField > trDeltaT
Foam::argList args(argc, argv)