32 void Foam::solvers::multiphaseEuler::setRDeltaT()
40 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.2)
43 const scalar rDeltaTSmoothingCoeff
45 pimpleDict.lookupOrDefault<scalar>(
"rDeltaTSmoothingCoeff", 0.02)
58 if (pimpleDict.found(
"maxDeltaT"))
60 rDeltaT.max(1/pimpleDict.lookup<scalar>(
"maxDeltaT"));
62 if (pimpleDict.found(
"minDeltaT"))
64 rDeltaT.min(1/pimpleDict.lookup<scalar>(
"minDeltaT"));
68 rDeltaT.correctBoundaryConditions();
72 Info<<
"Flow time scale min/max = "
73 <<
gMin(1/rDeltaT.primitiveField())
74 <<
", " <<
gMax(1/rDeltaT.primitiveField()) <<
endl;
#define forAll(list, i)
Loop across all elements in list.
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.
const surfaceScalarField & phi
Reference to the mass-flux field.
tmp< volScalarField > trDeltaT
Optional LTS reciprocal time-step field.
Switch faceMomentum
Cell/face momentum equation switch.
tmp< surfaceScalarField > trDeltaTf
Optional LTS reciprocal face time-step field.
const phaseSystem::phaseModelList & phases
Reference to the phases.
Provides functions smooth spread and sweep which use the FvFaceCellWave algorithm to smooth and redis...
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField.
tmp< VolField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
void smooth(volScalarField &field, const scalar coeff)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SurfaceField< scalar > surfaceScalarField
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)