46 patchTransformedInterpolation,
90 patches_(getPatches(
entry))
135 for (
const label patchi : patches_)
143 const label cellI(
patch.faceCells()[pFaceI]);
148 const point xOrigin(
patch.faceCentres()[pFaceI]);
156 const label pointI(
f[fPointI]);
159 const vector u(pointDisplacement[pointI] - uMean);
161 pointRotation[pointI] = 2*(r ^ u)/
magSqr(r);
162 pointExpansion[pointI] = (r & u)/
magSqr(r);
167 const scalar divMean(
f.average(
points, pointExpansion));
172 const label pointI(cPoints[cPointI]);
176 pointDisplacementNSum[pointI] += 1;
177 pointDisplacementSum[pointI] +=
178 uMean + (omegaMean ^ r) + (divMean*r);
186 pointDisplacementNSum,
194 pointDisplacementSum,
201 if (pointDisplacementNSum[pointI])
203 pointDisplacement[pointI] =
204 pointDisplacementSum[pointI]/pointDisplacementNSum[pointI];
label findPatchID(const word &patchName, const bool allowNotFound=true) const
Find patch index given a name, return -1 if not found.
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Interpolate volField using inverse distance weighting.
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A face is a list of labels corresponding to mesh vertices.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const volPointInterpolation & New(const fvMesh &mesh, Args &&... args)
Get existing or create MeshObject registered with typeName.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const fvMesh & mesh() const
Return const-reference to the mesh.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
wordList patchNames(nPatches)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Base class for interpolation of cell displacement fields, generated by fvMotionSolvers, to the points. This base class implements the default method which applies volPointInterpolation only.
defineTypeNameAndDebug(combustionModel, 0)
List< word > wordList
List of word.
A cell is defined as a list of faces with extra functionality.
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar c
Speed of light in a vacuum.
const polyBoundaryMesh & patches
const std::string patch
OpenFOAM patch number as a std::string.
void correctBoundaryConditions()
Correct boundary field.
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
A keyword and a list of tokens is an 'entry'.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)