36 #ifndef clippedLinear_H
37 #define clippedLinear_H
58 const scalar cellSizeRatio_;
66 if (cellSizeRatio_ <= 0 || cellSizeRatio_ > 1)
69 <<
"Given cellSizeRatio of " << cellSizeRatio_
70 <<
" is not between 0 and 1"
74 wfLimit_ = cellSizeRatio_/(1.0 + cellSizeRatio_);
90 cellSizeRatio_(cellSizeRatio)
131 mesh.surfaceInterpolation::weights()
139 "clippedLinearWeights",
145 tclippedLinearWeights.
ref();
155 if (clwbf[
patchi].coupled())
174 return tclippedLinearWeights;
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricBoundaryField class.
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef()
Return a reference to the primitive field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Centred interpolation interpolation scheme using clipped-weights to improve stability on meshes with ...
tmp< surfaceScalarField > weights(const VolField< Type > &) const
Return the interpolation weighting factors.
TypeName("clippedLinear")
Runtime type information.
clippedLinear(const fvMesh &mesh, const scalar cellSizeRatio)
Construct from mesh and cellSizeRatio.
void operator=(const clippedLinear &)=delete
Disallow default bitwise assignment.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Abstract base class for surface interpolation schemes.
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimless
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)