67 void Foam::probes::sampleAndWrite
69 const VolField<Type>& vField
72 Field<Type> values(
sample(vField));
79 os <<
setw(w) << vField.time().userTimeValue();
84 buf << values[probei];
85 os <<
' ' <<
setw(w) << buf.str().c_str();
93 void Foam::probes::sampleAndWrite
95 const SurfaceField<Type>& sField
98 Field<Type> values(sample(sField));
103 OFstream& os = *probeFilePtrs_[sField.name()];
105 os << sField.time().userTimeValue();
110 buf << values[probei];
111 os <<
' ' <<
setw(w) << buf.str().c_str();
119 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
146 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>&
fields)
199 if (elementList_[probei] >= 0)
201 const vector& position = operator[](probei);
203 values[probei] = interpolator().interpolate
206 elementList_[probei],
216 if (elementList_[probei] >= 0)
218 values[probei] = vField[elementList_[probei]];
262 if (faceList_[probei] >= 0)
264 values[probei] = sField[faceList_[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.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Abstract base class for interpolation.
void operator()(T &x, const T &y) const
Traits class for primitives.
HashPtrTable< OFstream > probeFilePtrs_
Current open files.
tmp< Field< Type > > sample(const VolField< Type > &) const
Sample a volume field at all locations.
tmp< Field< Type > > sampleSurfaceFields(const word &fieldName) const
Sample a single scalar field on all sample locations.
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.
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
Ostream & endl(Ostream &os)
Add newline and flush stream.
Omanip< int > setw(const int i)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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