32 void Foam::solvers::multiphaseEuler::setRDeltaT()
40 pimpleDict.lookupOrDefault<scalar>(
"maxCo", 0.2)
43 const scalar rDeltaTSmoothingCoeff
45 pimpleDict.lookupOrDefault<scalar>(
"rDeltaTSmoothingCoeff", 0.02)
59 scalar minRDeltaT =
gMin(rDeltaT.primitiveField());
60 if (pimpleDict.found(
"maxDeltaT") || minRDeltaT < rootVSmall)
62 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"maxDeltaT");
63 rDeltaT.max(clipRDeltaT);
64 minRDeltaT =
max(minRDeltaT, clipRDeltaT);
66 if (pimpleDict.found(
"minDeltaT"))
68 const scalar clipRDeltaT = 1/pimpleDict.lookup<scalar>(
"minDeltaT");
69 rDeltaT.min(clipRDeltaT);
70 minRDeltaT =
min(minRDeltaT, clipRDeltaT);
73 Info<<
"Flow time scale min/max = "
74 <<
gMin(1/rDeltaT.primitiveField()) <<
", " << 1/minRDeltaT <<
endl;
77 rDeltaT.correctBoundaryConditions();
81 Info<<
"Smoothed flow time scale min/max = "
82 <<
gMin(1/rDeltaT.primitiveField())
83 <<
", " <<
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.
const phaseSystem::phaseModelPartialList & movingPhases
Reference to the moving phases.
Switch faceMomentum
Cell/face momentum equation switch.
tmp< surfaceScalarField > trDeltaTf
Optional LTS reciprocal face time-step field.
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.
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)
tmp< VolInternalField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SurfaceField< scalar > surfaceScalarField
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
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)