67 void Foam::probes::sampleAndWrite
79 os <<
setw(w) << vField.
time().userTimeValue();
84 buf << values[probei];
85 os <<
' ' <<
setw(w) << buf.
str().c_str();
93 void Foam::probes::sampleAndWrite
105 os << sField.
time().userTimeValue();
110 buf << values[probei];
111 os <<
' ' <<
setw(w) << buf.
str().c_str();
119 void Foam::probes::sampleAndWrite(
const fieldGroup<Type>&
fields)
146 void Foam::probes::sampleAndWriteSurfaceFields(
const fieldGroup<Type>& fields)
199 if (elementList_[probei] >= 0)
201 const vector& position = operator[](probei);
203 values[probei] = interpolator().interpolate
206 elementList_[probei],
216 if (elementList_[probei] >= 0)
218 values[probei] = vField[elementList_[probei]];
262 if (faceList_[probei] >= 0)
264 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)
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)
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
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.
Output to memory buffer stream.