55 correctedScheme_(lookupCorrectedScheme(schemeData))
57 if (limitCoeff_ < 0 || limitCoeff_ > 1)
62 ) <<
"limitCoeff is specified as " << limitCoeff_
63 <<
" but should be >= 0 && <= 1" 84 return correctedScheme_->deltaCoeffs(vf);
107 (1 - limitCoeff_)*
mag(corr)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
errorManipArg< error, int > exit(error &err, const int errNo=1)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Generic GeometricField class.
const dimensionSet dimless
limitedSnGrad(const fvMesh &mesh)
Construct from mesh.
const dimensionSet & dimensions() const
Return dimensions.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the limitedSnGrad.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors for the given field.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
Simple central-difference snGrad scheme with non-orthogonal correction.
void limiter(surfaceScalarField &lambda, const RdeltaTType &rDeltaT, const RhoType &rho, const volScalarField &psi, const surfaceScalarField &phiBD, const surfaceScalarField &phiCorr, const SpType &Sp, const SuType &Su, const PsiMaxType &psiMax, const PsiMinType &psiMin)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
Abstract base class for snGrad schemes.
const fvMesh & mesh() const
Return mesh reference.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
virtual ~limitedSnGrad()
Destructor.
#define InfoInFunction
Report an information message using Foam::Info.