62 <<
" Unknown patch name " 77 bndFaces[i] = pp.
start() + i;
81 overallBb = overallBb.
extend(1
e-4);
98 forAll(probeLocations(), probei)
100 const point sample = probeLocations()[probei];
102 scalar span = boundaryTree.
bb().
mag();
112 info = boundaryTree.findNearest
123 if (isA<emptyPolyPatch>(bm[patchi]))
126 <<
" The sample point: " << sample
127 <<
" belongs to " << patchi
128 <<
" which is an empty patch. This is not permitted. " 129 <<
" This sample will not be included " 148 nearest[probei]= sampleInfo;
163 label proci = nearest[sampleI].second().second();
164 label localI = nearest[sampleI].
first().index();
166 Info<<
" " << sampleI <<
" coord:"<< operator[](sampleI)
167 <<
" found on processor:" << proci
168 <<
" in local cell/face:" << localI
169 <<
" with fc:" << nearest[sampleI].
first().rawPoint() <<
endl;
175 elementList_.setSize(nearest.
size(), -1);
182 elementList_[sampleI] = nearest[sampleI].
first().index();
203 elementList_.
clear();
218 if (this->size() && prepare())
220 sampleAndWrite(scalarFields_);
221 sampleAndWrite(vectorFields_);
222 sampleAndWrite(sphericalTensorFields_);
223 sampleAndWrite(symmTensorFields_);
224 sampleAndWrite(tensorFields_);
226 sampleAndWriteSurfaceFields(surfaceScalarFields_);
227 sampleAndWriteSurfaceFields(surfaceVectorFields_);
228 sampleAndWriteSurfaceFields(surfaceSphericalTensorFields_);
229 sampleAndWriteSurfaceFields(surfaceSymmTensorFields_);
230 sampleAndWriteSurfaceFields(surfaceTensorFields_);
239 dict.
lookup(
"patchName") >> patchName_;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 2-tuple for storing two objects of different types.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
Encapsulation of data needed to search for faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const Type1 & first() const
Return first.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual ~patchProbes()
Destructor.
void size(const label)
Override size to be inconsistent with allocated storage.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
Set of locations to sample.
virtual bool read(const dictionary &)
Read.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label findPatchID(const word &patchName) const
Find patch index given a name.
patchProbes(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
PointIndexHit< point > pointIndexHit
T & first()
Return the first element of the list.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
void clear()
Clear the list, i.e. set size to zero.
A class for handling words, derived from string.
scalar mag() const
The magnitude of the bounding box span.
bool hit() const
Is there a hit.
const Field< PointType > & points() const
Return reference to global points.
const Type & shapes() const
Reference to shape.
const treeBoundBox & bb() const
Top bounding box.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Istream and Ostream manipulators taking arguments.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
labelList second(const UList< labelPair > &p)
const vectorField & faceCentres() const
virtual void findElements(const fvMesh &)
Find elements containing patchProbes.
Non-pointer based hierarchical recursive searching.
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
label start() const
Return start label of this patch in the polyMesh face list.
virtual bool write()
Sample and write.
virtual bool read(const dictionary &)
Read the probes.
Standard boundBox + extra functionality for use in octree.
const Type2 & second() const
Return second.
const doubleScalar e
Elementary charge.
A patch is a list of labels that address the faces in the global face list.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
label index() const
Return index.
const labelList & faceLabels() const
treeBoundBox extend(const scalar s) const
Return asymetrically extended bounding box, with guaranteed.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.