41 fieldName_(dict.
lookup(
"field")),
42 interpolationScheme_(dict.
lookup(
"interpolationScheme"))
47 instantList allTimes = Time::findTimes(pMesh().time().path());
67 names.append(allTimes[i].
name());
68 values.append(allTimes[i].value());
71 timeNames_.transfer(names);
72 timeVals_.transfer(values);
74 Info<< mesh_.type() <<
" : found " << fieldName_ <<
" for times " 75 << timeNames_ <<
endl;
77 if (timeNames_.size() < 1)
80 <<
"Did not find any times with " << fieldName_
97 if (!interpolatorPtr_.valid())
101 interpolationScheme_,
113 interpolatorPtr_->valueWeights
139 ReadFields<pointVectorField>
148 if (!oldTimes.found(fieldsCacheIter.key()))
158 >(*fieldsCacheIter());
170 uniformInterpolate<pointVectorField>
174 word(
"uniformInterpolate(") + fieldName_ +
')',
191 writeEntry(os,
"interpolationScheme", interpolationScheme_);
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
rDeltaT correctBoundaryConditions()
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Templated form of IOobject providing type information for file reading and header type checking...
void size(const label)
Override size to be inconsistent with allocated storage.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Field reading functions for post-processing utilities.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
scalar userTimeValue() const
Return current user time value.
Mesh representing a set of points created from polyMesh.
dynamicMeshPointInterpolator(const polyMesh &mesh, const dictionary &dict)
Construct from mesh and dictionary.
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
A class for handling words, derived from string.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
~dynamicMeshPointInterpolator()
Destructor.
static pointMesh & New(polyMesh &mesh)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
const Time & time() const
Return time.
A List with indirect addressing.
void write(Ostream &) const
Write.
const objectRegistry & subRegistry(const word &name, const bool forceCreate=false) const
Lookup and return a const sub-objectRegistry. Optionally create.
Mesh consisting of general polyhedral cells.
List< Key > toc() const
Return the table of contents.
tmp< pointVectorField > curPointField() const
Return interpolated pointField for the currentTime.
A class for managing temporary objects.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.