57 cs[i].applyConstraint(normals[i]);
70 Foam::meshPointPatch::meshPointPatch
81 meshPoints_(meshPoints),
82 constraints_(constraints)
88 <<
" differs from size of constraints " <<
constraints_.size()
94 Foam::meshPointPatch::meshPointPatch
100 const pointBoundaryMesh& bm,
101 const word& patchType
105 meshPoints_(meshPoints),
118 Foam::meshPointPatch::meshPointPatch
121 const dictionary&
dict,
123 const pointBoundaryMesh& bm,
124 const word& patchType
133 Foam::meshPointPatch::meshPointPatch
158 localPointsPtr_.reset(
nullptr);
181 localPointsPtr_.reset(
nullptr);
182 pointNormalsPtr_.reset(
nullptr);
189 if (!localPointsPtr_)
191 localPointsPtr_.reset
200 return localPointsPtr_();
206 if (!pointNormalsPtr_)
212 pointNormals[i] = constraints_[i].second();
215 return pointNormalsPtr_();
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
pointPatch with explicitly provided points instead of using the points of a polyPatch.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A pointBoundaryMesh is a pointPatch list with registered IO, a reference to the associated pointMesh...
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
Macros for easy insertion into run-time selection tables.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static List< pointConstraint > makeConstraints(const vectorField &normals)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual const pointField & localPoints() const
Return pointField of points in patch.
A class for handling words, derived from Foam::string.
virtual const vectorField & pointNormals() const
Return point unit normals. Assumes single constraint.
virtual void write(Ostream &) const
Write the pointPatch data as a dictionary.
Accumulates point constraints through successive applications of the applyConstraint function...
const word & name() const noexcept
The patch name.
virtual void write(Ostream &) const
Write the pointPatch data as a dictionary.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
List< word > wordList
List of word.
Basic pointPatch represents a set of points from the mesh.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
const labelList meshPoints_
Explicit mesh points.
void writeEntry(Ostream &os) const
Write the UList with its compound type.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< label > labelList
A List of labels.
const List< pointConstraint > constraints_
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)