34 void Foam::patchProbes::sampleAndWrite
36 const GeometricField<Type, fvPatchField, volMesh>& vField
39 Field<Type> values(sample(vField));
48 << vField.time().userTimeValue();
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().userTimeValue();
78 probeStream <<
' ' <<
setw(w) << values[probei];
86 void Foam::patchProbes::sampleAndWrite
88 const fieldGroup<Type>& fields
105 <GeometricField<Type, fvPatchField, volMesh>>
116 void Foam::patchProbes::sampleAndWriteSurfaceFields
118 const fieldGroup<Type>& fields
135 <GeometricField<Type, fvsPatchField, surfaceMesh>>
149 Foam::patchProbes::sample
172 label localFacei = patches[
patchi].whichFace(facei);
186 Foam::patchProbes::sample(
const word& fieldName)
const 200 Foam::patchProbes::sample
223 label localFacei = patches[
patchi].whichFace(facei);
const fvPatchList & patches
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.
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.
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.
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.