67 void Foam::probes::sampleAndWrite
79 os <<
setw(w) << vField.
time().timeToUserTime(vField.
time().value());
84 buf << values[probei];
85 os <<
' ' <<
setw(w) << buf.
str().c_str();
93 void Foam::probes::sampleAndWrite
105 os << sField.
time().timeToUserTime(sField.
time().value());
110 buf << values[probei];
111 os <<
' ' <<
setw(w) << buf.
str().c_str();
119 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
132 mesh_.time().timeName(),
168 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>& fields)
181 mesh_.time().timeName(),
242 if (elementList_[probei] >= 0)
244 const vector& position = operator[](probei);
246 values[probei] = interpolator().interpolate
249 elementList_[probei],
259 if (elementList_[probei] >= 0)
261 values[probei] = vField[elementList_[probei]];
305 if (faceList_[probei] >= 0)
307 values[probei] = sField[faceList_[probei]];
void operator()(T &x, const T &y) const
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.
const word & name() const
Return name.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
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.
tmp< Field< Type > > sampleSurfaceFields(const word &fieldName) const
Sample a single scalar field on all sample locations.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
Sample a volume field at all locations.
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.
Istream and Ostream manipulators taking arguments.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const Time & time() const
Return time.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
string str() const
Return the string.
Abstract base class for interpolation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Omanip< int > setw(const int i)
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Output to memory buffer stream.