41#ifndef clippedLinear_H
42#define clippedLinear_H
63 const scalar cellSizeRatio_;
71 if (cellSizeRatio_ <= 0 || cellSizeRatio_ > 1)
74 <<
"Given cellSizeRatio of " << cellSizeRatio_
75 <<
" is not between 0 and 1"
79 wfLimit_ = cellSizeRatio_/(1.0 + cellSizeRatio_);
99 cellSizeRatio_(cellSizeRatio)
108 cellSizeRatio_(readScalar(is))
122 cellSizeRatio_(readScalar(is))
140 mesh.surfaceInterpolation::weights()
150 "clippedLinearWeights",
159 tclippedLinearWeights.
ref();
188 return tclippedLinearWeights;
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static word timeName(const scalar t, const int precision=precision_)
Central-differencing interpolation scheme using clipped-weights to improve stability on meshes with v...
clippedLinear(const fvMesh &mesh, Istream &is)
Construct from Istream.
clippedLinear(const fvMesh &mesh, const surfaceScalarField &, Istream &is)
Construct from faceFlux and Istream.
TypeName("clippedLinear")
Runtime type information.
clippedLinear(const fvMesh &mesh, const scalar cellSizeRatio)
Construct from mesh and cellSizeRatio.
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const Time & time() const
Return the top-level database.
Abstract base class for surface interpolation schemes.
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimless
Dimensionless.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.