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)
117 <<
"limiter min: " <<
min(
limiter.primitiveField())
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Volume discretisation.
Simple central-difference snGrad scheme with non-orthogonal correction.
virtual ~limitedSnGrad()
Destructor.
virtual tmp< SurfaceField< Type > > correction(const VolField< Type > &) const
Return the explicit correction to the limitedSnGrad.
virtual tmp< surfaceScalarField > deltaCoeffs(const VolField< Type > &) const
Return the interpolation weighting factors for the given field.
limitedSnGrad(const fvMesh &mesh)
Construct from mesh.
Abstract base class for snGrad schemes.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define InfoInFunction
Report an information message using Foam::Info.
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)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.