setRDeltaT.H
Go to the documentation of this file.
1 {
2  volScalarField& rDeltaT = trDeltaT();
3 
5  (
6  runTime.controlDict().lookupOrDefault<scalar>
7  (
8  "rDeltaTSmoothingCoeff",
9  0.02
10  )
11  );
12 
13  // Set the reciprocal time-step from the local Courant number
14  rDeltaT.dimensionedInternalField() = max
15  (
16  1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
18  /((2*maxCo)*mesh.V())
19  );
20 
21  // Update tho boundary values of the reciprocal time-step
22  rDeltaT.correctBoundaryConditions();
23 
25 
26  Info<< "Flow time scale min/max = "
27  << gMin(1/rDeltaT.internalField())
28  << ", " << gMax(1/rDeltaT.internalField()) << endl;
29 }
scalar maxCo(readScalar(pimpleDict.lookup("maxCo")))
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
messageStream Info
dynamicFvMesh & mesh
scalar rDeltaTSmoothingCoeff(pimpleDict.lookupOrDefault< scalar >("rDeltaTSmoothingCoeff", 0.1))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Type gMin(const FieldField< Field, Type > &f)
rDeltaT dimensionedInternalField()
tmp< volScalarField > trDeltaT
Definition: createRDeltaT.H:3
scalar maxDeltaT(pimpleDict.lookupOrDefault< scalar >("maxDeltaT", GREAT))
Type gMax(const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void smooth(volScalarField &field, const scalar coeff)
Definition: fvcSmooth.C:35