34 void Foam::patchProbes::sampleAndWrite
36 const VolField<Type>& vField
39 Field<Type> values(sample(vField));
48 << vField.time().userTimeValue();
52 probeStream <<
' ' <<
setw(w) << values[probei];
60 void Foam::patchProbes::sampleAndWrite
62 const SurfaceField<Type>& sField
65 Field<Type> values(sample(sField));
70 OFstream& probeStream = *probeFilePtrs_[sField.name()];
74 << sField.time().userTimeValue();
78 probeStream <<
' ' <<
setw(w) << values[probei];
86 void Foam::patchProbes::sampleAndWrite
88 const fieldGroup<Type>&
fields
116 void Foam::patchProbes::sampleAndWriteSurfaceFields
118 const fieldGroup<Type>&
fields
149 Foam::patchProbes::sample
167 label facei = elementList_[probei];
186 Foam::patchProbes::sample(
const word& fieldName)
const
200 Foam::patchProbes::sample
218 label facei = elementList_[probei];
Istream and Ostream manipulators taking arguments.
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
static const char *const typeName
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
friend class const_iterator
Declare friendship with the const_iterator.
static unsigned int defaultPrecision()
Return the default precision.
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.
static bool master(const label communicator=0)
Am I the master process.
Traits class for primitives.
HashPtrTable< OFstream > probeFilePtrs_
Current open files.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
const fvPatchList & patches
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Omanip< int > setw(const int i)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable