68 void Foam::probes::sampleAndWrite
80 os <<
setw(w) << vField.
time().timeToUserTime(vField.
time().value());
84 os <<
' ' <<
setw(w) << values[probeI];
92 void Foam::probes::sampleAndWrite
104 os <<
setw(w) << sField.
time().timeToUserTime(sField.
time().value());
108 os <<
' ' <<
setw(w) << values[probeI];
116 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
129 mesh_.time().timeName(),
165 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>& fields)
178 mesh_.time().timeName(),
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]];
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
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A class for handling words, derived from string.
Abstract base class for interpolation.
friend class const_iterator
Declare friendship with the const_iterator.
Comparison operator for probes class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
Omanip< int > setw(const int i)
Pre-declare SubField and related Field type.
const word & name() const
Return name.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Istream and Ostream manipulators taking arguments.
Generic GeometricField class.
tmp< Field< Type > > sampleSurfaceFields(const word &fieldName) const
Sample a single scalar field on all sample locations.
Traits class for primitives.
tmp< Field< Type > > sample(const GeometricField< Type, fvPatchField, volMesh > &) const
Sample a volume field at all locations.
const Time & time() const
Return time.
void operator()(T &x, const T &y) const
static bool master(const label communicator=0)
Am I the master process.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
static unsigned int defaultPrecision()
Return the default precision.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.