Go to the documentation of this file.
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();
161 clippedLinearWeights.primitiveFieldRef() =
162 max(
min(cdWeights.primitiveField(), 1 - wfLimit_), wfLimit_);
164 surfaceScalarField::Boundary& clwbf =
165 clippedLinearWeights.boundaryFieldRef();
176 cdWeights.boundaryField()[patchi],
184 clwbf[patchi] = cdWeights.boundaryField()[patchi];
188 return tclippedLinearWeights;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for managing temporary objects.
static word timeName(const scalar t, const int precision=precision_)
Central-differencing interpolation scheme using clipped-weights to improve stability on meshes with v...
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
clippedLinear(const fvMesh &mesh, Istream &is)
Construct from Istream.
Abstract base class for surface interpolation schemes.
const Time & time() const
Return the top-level database.
const fvMesh & mesh() const
Return mesh reference.
TypeName("clippedLinear")
Runtime type information.
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
clippedLinear(const fvMesh &mesh, const scalar cellSizeRatio)
Construct from mesh and cellSizeRatio.
const dimensionSet dimless
Dimensionless.