67 void Foam::probes::sampleAndWrite(
const VolField<Type>& vField)
69 Field<Type> values(sample(vField));
76 os <<
setw(w) << vField.time().userTimeValue();
81 buf << values[probei];
82 os <<
' ' <<
setw(w) << buf.str().c_str();
90 void Foam::probes::sampleAndWrite(
const SurfaceField<Type>& sField)
92 Field<Type> values(sample(sField));
97 OFstream& os = probeFilePtrs_[sField.name()];
99 os << sField.time().userTimeValue();
104 buf << values[probei];
105 os <<
' ' <<
setw(w) << buf.str().c_str();
113 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
127 mesh_.lookupObject<VolField<Type>>
138 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>&
fields)
152 mesh_.lookupObject<SurfaceField<Type>>
182 forAll(locations_, probei)
184 if (cellList_[probei] >= 0)
188 values[probei] = interpolator().interpolate
199 forAll(locations_, probei)
201 if (cellList_[probei] >= 0)
203 values[probei] = vField[cellList_[probei]];
228 forAll(locations_, probei)
230 if (faceList_[probei] >= 0)
232 values[probei] = sField[faceList_[probei]];
245 Foam::probes::sample(
const word& fieldName)
const
259 Foam::probes::sampleSurfaceFields(
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.
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.
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
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
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.
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
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