Go to the documentation of this file.
70 void Foam::probes::sampleAndWrite
72 const GeometricField<Type, fvPatchField, volMesh>& vField
82 os <<
setw(w) << vField.time().timeOutputValue();
97 void Foam::probes::sampleAndWrite
99 const GeometricField<Type, fvsPatchField, surfaceMesh>& sField
107 OFstream&
os = *probeFilePtrs_[sField.name()];
109 os <<
setw(w) << sField.time().timeOutputValue();
113 if (includeOutOfBounds_ || processor_[probei] != -1)
124 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
132 GeometricField<Type, fvPatchField, volMesh>
137 mesh_.time().timeName(),
149 objectRegistry::const_iterator iter = mesh_.find(
fields[fieldi]);
155 == GeometricField<Type, fvPatchField, volMesh>::typeName
161 <GeometricField<Type, fvPatchField, volMesh>>
173 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>&
fields)
181 GeometricField<Type, fvsPatchField, surfaceMesh>
186 mesh_.time().timeName(),
198 objectRegistry::const_iterator iter = mesh_.find(
fields[fieldi]);
204 == GeometricField<Type, fvsPatchField, surfaceMesh>::typeName
210 <GeometricField<Type, fvsPatchField, surfaceMesh>>
247 if (elementList_[probei] >= 0)
249 const vector& position = operator[](probei);
251 values[probei] = interpolator().interpolate
254 elementList_[probei],
264 if (elementList_[probei] >= 0)
266 values[probei] = vField[elementList_[probei]];
310 if (faceList_[probei] >= 0)
312 values[probei] = sField[faceList_[probei]];
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
static bool master(const label communicator=worldComm)
Am I the master process.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void operator()(T &x, const T &y) const
#define forAll(list, i)
Loop across all elements in list.
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
Sample a volume field at all locations.
Generic templated field type.
HashPtrTable< OFstream > probeFilePtrs_
Current open files.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool includeOutOfBounds_
Include probes that were not found.
Istream and Ostream manipulators taking arguments.
Abstract base class for interpolation.
tmp< Field< Type > > sampleSurfaceFields(const word &fieldName) const
Sample a single scalar field on all sample locations.
OBJstream os(runTime.globalPath()/outputName)
Omanip< int > setw(const int i)
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
static unsigned int defaultPrecision() noexcept
Return the default precision.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A traits class, which is primarily used for primitives.
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Minimal example by using system/controlDict.functions:
labelList processor_
Processor holding the cell or face (-1 if point not found.