41#ifndef clippedLinear_H
42#define clippedLinear_H
59 public surfaceInterpolationScheme<Type>
68 static scalar calcWfLimit(scalar cellSizeRatio)
70 if (cellSizeRatio <= 0 || cellSizeRatio > 1)
73 <<
"Given cellSizeRatio of " << cellSizeRatio
74 <<
" is not between 0 and 1"
78 return cellSizeRatio/(1.0 + cellSizeRatio);
97 surfaceInterpolationScheme<Type>(
mesh),
98 wfLimit_(calcWfLimit(cellSizeRatio))
105 wfLimit_(calcWfLimit(readScalar(is)))
116 surfaceInterpolationScheme<Type>(
mesh),
117 wfLimit_(calcWfLimit(readScalar(is)))
133 mesh.surfaceInterpolation::weights()
145 "clippedLinearWeights",
146 mesh.time().timeName(),
154 tclippedLinearWeights.ref();
175 return tclippedLinearWeights;
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
const Boundary & boundaryField() const noexcept
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)....
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.
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 to the contents of a non-null managed pointer.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Namespace for bounding specifications. At the moment, mostly for tables.
const dimensionSet dimless
Dimensionless.
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
MinMax< scalar > scalarMinMax
A scalar min/max range.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
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.