Set of locations to sample.at patches. More...
#include <sampling/patchProbes.H>
Set of locations to sample.at patches.
Call write() to sample and write files.
Definition at line 57 of file patchProbes.H.
Public Member Functions | |
TypeName ("patchProbes") | |
Runtime type information. | |
patchProbes (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. | |
virtual | ~patchProbes () |
Destructor. | |
virtual void | write () |
Public members. | |
virtual void | read (const dictionary &) |
Read. | |
virtual void | findElements (const fvMesh &) |
Find elements containing patchProbes. | |
![]() | |
TypeName ("probes") | |
Runtime type information. | |
probes (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. | |
virtual | ~probes () |
Destructor. | |
virtual const word & | name () const |
Return name of the set of probes. | |
virtual const wordList & | fieldNames () const |
Return names of fields to probe. | |
virtual const vectorField & | probeLocations () const |
Return locations to probe. | |
const labelList & | elements () const |
Cells to be probed (obtained from the locations) | |
virtual void | execute () |
Execute, currently does nothing. | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. | |
virtual void | movePoints (const pointField &) |
Update for changes of mesh. | |
virtual void | readUpdate (const polyMesh::readUpdateState state) |
Update for changes of mesh due to readUpdate. |
Additional Inherited Members | |
![]() | |
bool | checkFieldTypes () |
classify field types, return true if nFields > 0 | |
template<class Type > | |
label | countFields (fieldGroup< Type > &fieldList, const wordList &fieldTypes) const |
Find the fields in the list of the given type, return count. | |
![]() | |
word | name_ |
Name of this set of probes,. | |
const objectRegistry & | obr_ |
Const reference to objectRegistry. | |
bool | loadFromFiles_ |
Load fields from files (not from objectRegistry) | |
wordList | fieldNames_ |
Names of fields to probe. | |
vectorField | probeLocations_ |
Locations to probe. | |
fieldGroup< scalar > | scalarFields_ |
Categorized scalar/vector/tensor fields. | |
fieldGroup< vector > | vectorFields_ |
fieldGroup< sphericalTensor > | sphericalTensorFields_ |
fieldGroup< symmTensor > | symmTensorFields_ |
fieldGroup< tensor > | tensorFields_ |
labelList | elementList_ |
HashPtrTable< OFstream > | probeFilePtrs_ |
Current open files. |
patchProbes | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 204 of file patchProbes.C.
|
virtual |
Destructor.
Definition at line 219 of file patchProbes.C.
TypeName | ( | "patchProbes" | ) |
Runtime type information.
|
virtual |
Public members.
Sample and write
Reimplemented from probes.
Definition at line 223 of file patchProbes.C.
|
virtual |
Read.
Reimplemented from probes.
Definition at line 235 of file patchProbes.C.
References dictionary::lookup(), and probes::read().
|
virtual |
Find elements containing patchProbes.
Reimplemented from probes.
Definition at line 44 of file patchProbes.C.
References indexedOctree< Type >::bb(), polyMesh::boundaryMesh(), E(), probes::elementList_, UList< T >::empty(), Foam::endl(), Foam::exit(), primitiveMesh::faceCentres(), treeDataFace::faceLabels(), Foam::FatalError, FatalErrorIn, polyBoundaryMesh::findPatchID(), Tuple2< Type1, Type2 >::first(), forAll, PointIndexHit< Point >::hit(), PointIndexHit< Point >::index(), Foam::Info, Pstream::listCombineGather(), Pstream::listCombineScatter(), boundBox::mag(), Foam::magSqr(), Pstream::myProcNo(), patchi, probes::probeLocations_, Tuple2< Type1, Type2 >::second(), List< T >::setSize(), indexedOctree< Type >::shapes(), List< T >::size(), Foam::sqr(), WarningIn, and polyBoundaryMesh::whichPatch().