49 samplePointScheme_(
"cell")
64 <<
"Empty 'probeLocations' list."
76 <<
"Only cell interpolation can be applied when "
77 <<
"not using fixedLocations. InterpolationScheme "
78 <<
"entry will be ignored"
91 if (&mpm.mesh() != &thisMesh_)
98 this->findElements(thisMesh_);
108 const labelList& reverseMap = mpm.reverseCellMap();
111 label celli = cellIds_[i];
114 label newCelli = reverseMap[celli];
119 else if (newCelli < -1)
122 elems.append(-newCelli - 2);
127 elems.append(newCelli);
137 cellIds_.transfer(elems);
144 const labelList& reverseMap = mpm.reverseFaceMap();
145 for (
const label facei : faceIds_)
149 label newFacei = reverseMap[facei];
154 else if (newFacei < -1)
157 elems.append(-newFacei - 2);
162 elems.append(newFacei);
182 if (fixedLocations_ && &
mesh == &thisMesh_)
184 this->findElements(thisMesh_);
Macros for easy insertion into run-time selection tables.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
bool empty() const noexcept
True if List is empty (ie, size() is zero).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reverseCellMap() const noexcept
Reverse cell map.
const labelList & reverseFaceMap() const noexcept
Reverse face map.
const polyMesh & mesh() const noexcept
Return polyMesh.
Mesh consisting of general polyhedral cells.
Base class for sampling fields at specified internal and boundary locations.
word samplePointScheme_
Interpolation/sample scheme to obtain values at the points.
bool includeOutOfBounds_
Include probes that were not found (default: true).
labelList cellIds_
Cells to be probed (obtained from the locations).
labelList faceIds_
Faces to be probed.
pointField probes_
Probe locations.
virtual void findElements(const fvMesh &mesh)=0
Find cells and faces containing probes.
const fvMesh & thisMesh_
Const reference to the mesh.
bool fixedLocations_
Fixed locations (default: true).
virtual void movePoints(const polyMesh &)
Update for changes of mesh.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
virtual bool read(const dictionary &)
Read the settings dictionary.
probeModel(const probeModel &)=delete
No copy construct.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define DebugInfo
Report an information message using Foam::Info.
#define WarningInFunction
Report a warning using Foam::Warning.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.