Go to the documentation of this file.
75 if (Pstream::master())
77 unsigned int w = IOstream::defaultPrecision() + 7;
78 OFstream& os = *probeFilePtrs_[vField.name()];
80 os <<
setw(
w) << vField.time().timeToUserTime(vField.time().value());
84 os <<
' ' <<
setw(
w) << values[probeI];
99 if (Pstream::master())
101 unsigned int w = IOstream::defaultPrecision() + 7;
102 OFstream& os = *probeFilePtrs_[sField.name()];
104 os <<
setw(
w) << sField.time().timeToUserTime(sField.time().value());
108 os <<
' ' <<
setw(
w) << values[probeI];
145 iter != objectRegistry::end()
178 mesh_.time().timeName(),
194 iter != objectRegistry::end()
239 if (elementList_[probeI] >= 0)
241 const vector& position = operator[](probeI);
243 values[probeI] = interpolator().interpolate
246 elementList_[probeI],
256 if (elementList_[probeI] >= 0)
258 values[probeI] = vField[elementList_[probeI]];
302 if (faceList_[probeI] >= 0)
304 values[probeI] = sField[faceList_[probeI]];
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Comparison operator for probes class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void operator()(T &x, const T &y) const
Class used for grouping field types.
friend class const_iterator
Declare friendship with the const_iterator.
const fvMesh & mesh_
Const reference to fvMesh.
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
Sample a volume field at all locations.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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.
Omanip< int > setw(const int i)
const bool loadFromFiles_
Load fields from files (not from objectRegistry)
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void sampleAndWrite(const GeometricField< Type, fvPatchField, volMesh > &)
Sample and write a particular volume field.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Traits class for primitives.
void sampleAndWriteSurfaceFields(const fieldGroup< Type > &)
Sample and write all the surface fields of the given type.
const Time & time() const
Return the top-level database.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.