33 void Foam::patchProbes::sampleAndWrite(
const VolField<Type>& vField)
35 Field<Type> values(sample(vField));
44 << vField.time().userTimeValue();
48 probeStream <<
' ' <<
setw(w) << values[probei];
56 void Foam::patchProbes::sampleAndWrite(
const SurfaceField<Type>& sField)
58 Field<Type> values(sample(sField));
63 OFstream& probeStream = probeFilePtrs_[sField.name()];
67 << sField.time().userTimeValue();
71 probeStream <<
' ' <<
setw(w) << values[probei];
79 void Foam::patchProbes::sampleAndWrite(
const fieldGroup<Type>&
fields)
93 mesh_.lookupObject<VolField<Type>>
104 void Foam::patchProbes::sampleAndWriteSurfaceFields
106 const fieldGroup<Type>&
fields
121 mesh_.lookupObject<SurfaceField<Type>>
146 forAll(locations_, probei)
148 label facei = faceList_[probei];
180 forAll(locations_, probei)
182 label facei = faceList_[probei];
201 Foam::patchProbes::sample(
const word& fieldName)
const
Istream and Ostream manipulators taking arguments.
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
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)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
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