34 void Foam::patchProbes::sampleAndWrite
36 const GeometricField<Type, fvPatchField, volMesh>& vField
39 Field<Type> values(sample(vField));
48 << vField.time().timeToUserTime(vField.time().value());
52 probeStream <<
' ' <<
setw(w) << values[probei];
60 void Foam::patchProbes::sampleAndWrite
62 const GeometricField<Type, fvsPatchField, surfaceMesh>& sField
65 Field<Type> values(sample(sField));
74 << sField.time().timeToUserTime(sField.time().value());
78 probeStream <<
' ' <<
setw(w) << values[probei];
86 void Foam::patchProbes::sampleAndWrite
88 const fieldGroup<Type>& fields
97 GeometricField<Type, fvPatchField, volMesh>
126 <GeometricField<Type, fvPatchField, volMesh>>
138 void Foam::patchProbes::sampleAndWriteSurfaceFields
140 const fieldGroup<Type>& fields
149 GeometricField<Type, fvsPatchField, surfaceMesh>
178 <GeometricField<Type, fvsPatchField, surfaceMesh>>
193 Foam::patchProbes::sample
216 label localFacei = patches[
patchi].whichFace(facei);
230 Foam::patchProbes::sample(
const word& fieldName)
const 244 Foam::patchProbes::sample
267 label localFacei = patches[
patchi].whichFace(facei);
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
static const char *const typeName
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
static unsigned int defaultPrecision()
Return the default precision.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
static bool master(const label communicator=0)
Am I the master process.
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the top-level database.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
friend class const_iterator
Declare friendship with the const_iterator.
virtual const word & type() const =0
Runtime type information.
const fvMesh & mesh_
Const reference to fvMesh.
Istream and Ostream manipulators taking arguments.
HashPtrTable< OFstream > probeFilePtrs_
Current open files.
bool loadFromFiles_
Load fields from files (not from objectRegistry)
Omanip< int > setw(const int i)
A class for managing temporary objects.
label size() const
Return the number of elements in the UList.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.