54 field.boundaryField()[patchI];
65 adaptPatchIDs.
append(patchI);
101 label meshFaceI =
pp.start();
105 addressing[nFaces++] = meshFaceI++;
111 IndirectList<face>(
mesh.
faces(), addressing),
119 Foam::externalDisplacementMeshMover::externalDisplacementMeshMover
128 pointDisplacement_(pointDisplacement),
145 Info<<
"Selecting externalDisplacementMeshMover " <<
type <<
endl;
147 auto* ctorPtr = dictionaryConstructorTable(
type);
154 "externalDisplacementMeshMover",
156 *dictionaryConstructorTablePtr_
160 return autoPtr<externalDisplacementMeshMover>
162 ctorPtr(
dict, baffles, pointDisplacement, dryRun)
190 if (f0 >= 0 && f1 >= 0)
196 baffles_.transfer(newBaffles);
const labelList patchIDs(pbm.indices(polyPatchNames, true))
virtual void movePoints(const pointField &)
Update local data for geometry changes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void append(const T &val)
Append an element at the end of the list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
const labelList & reverseFaceMap() const noexcept
Reverse face map.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Enables the specification of a zero fixed value boundary condition.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
void append(const T &val)
Copy append an element to the end of this list.
virtual const faceList & faces() const
Return raw faces.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Pair< label > labelPair
A pair of labels.
defineTypeNameAndDebug(combustionModel, 0)
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
Virtual base class for mesh movers with externally provided displacement field giving the boundary co...
const polyBoundaryMesh & patches
static autoPtr< externalDisplacementMeshMover > New(const word &type, const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement, const bool dryRun=false)
Return a reference to the selected meshMover model.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
List< label > labelList
A List of labels.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
A patch is a list of labels that address the faces in the global face list.
static autoPtr< indirectPrimitivePatch > getPatch(const polyMesh &, const labelList &)
Construct patch on selected patches.
virtual ~externalDisplacementMeshMover()
Destructor.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
static labelList getFixedValueBCs(const pointVectorField &)
Extract fixed-value patchfields.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...