45 const scalar maxAlphaCo
50 const scalar rDeltaTSmoothingCoeff
55 const label nAlphaSpreadIter
60 const scalar alphaSpreadDiff
65 const scalar alphaSpreadMax
70 const scalar alphaSpreadMin
75 const label nAlphaSweepIter
80 if (maxAlphaCo <
maxCo)
91 pos0(alpha1Bar() - alphaSpreadMin)
92 *
pos0(alphaSpreadMax - alpha1Bar())
94 /((2*maxAlphaCo)*
mesh.
V())
101 Info<<
"Flow and interface time scale min/max = "
105 if (rDeltaTSmoothingCoeff < 1.0)
110 if (nAlphaSpreadIter > 0)
123 if (nAlphaSweepIter > 0)
128 Info<<
"Smoothed flow time scale min/max = "
Generic GeometricField class.
Internal & internalFieldRef()
Return a reference to the dimensioned internal field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
void correctBoundaryConditions()
Correct boundary field.
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
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.
volScalarField & alpha1
Reference to the phase1-fraction.
virtual void setInterfaceRDeltaT(volScalarField &rDeltaT)
Adjust the rDeltaT in the vicinity of the interface.
Area-weighted average a surfaceField creating a volField.
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)
void sweep(volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2)
tmp< VolField< Type > > average(const SurfaceField< Type > &ssf)
Area-weighted average a surfaceField creating a volField.
void smooth(volScalarField &field, const scalar coeff)
void spread(volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2, const scalar alphaMax=0.99, const scalar alphaMin=0.01)
dimensionedScalar pos0(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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)