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);
static const char *const typeName
HashPtrTable< OFstream > probeFilePtrs_
Current open files.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
A class for handling words, derived from string.
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 word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
friend class const_iterator
Declare friendship with the const_iterator.
const Time & time() const
Return the top-level database.
bool loadFromFiles_
Load fields from files (not from objectRegistry)
Comparison operator for probes class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & mesh_
Const reference to fvMesh.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Omanip< int > setw(const int i)
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
Pre-declare SubField and related Field type.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Istream and Ostream manipulators taking arguments.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Generic GeometricField class.
Traits class for primitives.
label size() const
Return the number of elements in the UList.
static bool master(const label communicator=0)
Am I the master process.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
static unsigned int defaultPrecision()
Return the default precision.
A class for managing temporary objects.