73 return correctedScheme_->deltaCoeffs(vf);
91 vf.
db().template lookupObject<volScalarField>
105 <<
"limiter min: " <<
min(limiter.primitiveField())
106 <<
" max: "<<
max(limiter.primitiveField())
107 <<
" avg: " <<
average(limiter.primitiveField()) <<
endl;
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
static word group(const word &name)
Return group (extension part of name)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
dimensionedScalar pos(const dimensionedScalar &ds)
static word groupName(Name name, const word &group)
phaseStabilisedSnGrad(const fvMesh &mesh, Istream &schemeData)
Construct from mesh and data stream.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the explicit correction to the phaseStabilisedSnGrad.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
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)
const Mesh & mesh() const
Return mesh.
Abstract base class for snGrad schemes.
virtual ~phaseStabilisedSnGrad()
Destructor.
virtual tmp< surfaceScalarField > deltaCoeffs(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the interpolation weighting factors for the given field.
Mesh data needed to do the Finite Volume discretisation.
const doubleScalar e
Elementary charge.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
Local minimum interpolation scheme in which the face value is set to the minimum of the two neighbour...
#define InfoInFunction
Report an information message using Foam::Info.