Go to the documentation of this file.
66 interpolationScheme_(
dict.
lookup(
"interpolationScheme"))
77 for (
const instant& inst : allTimes)
91 values.append(inst.value());
94 timeNames_.transfer(
names);
95 timeVals_.transfer(
values);
97 Info<<
type() <<
" : found " << fieldName_ <<
" for times "
98 << timeNames_ <<
endl;
100 if (timeNames_.size() < 1)
103 <<
"Did not find any times with " << fieldName_
125 fieldName_(ptf.fieldName_),
126 interpolationScheme_(ptf.interpolationScheme_),
127 timeNames_(ptf.timeNames_),
128 timeVals_(ptf.timeVals_),
129 interpolatorPtr_(ptf.interpolatorPtr_)
141 fieldName_(ptf.fieldName_),
142 interpolationScheme_(ptf.interpolationScheme_),
143 timeNames_(ptf.timeNames_),
144 timeVals_(ptf.timeVals_),
145 interpolatorPtr_(ptf.interpolatorPtr_)
158 if (!interpolatorPtr_)
162 interpolationScheme_,
171 bool timesChanged = interpolatorPtr_->valueWeights
195 ReadFields<pointVectorField>
204 if (!oldTimes.found(fieldsCacheIter.key()))
214 >(*fieldsCacheIter());
229 uniformInterpolate<pointVectorField>
233 word(
"uniformInterpolate(")
262 os.writeEntry(
"field", fieldName_);
263 os.writeEntry(
"interpolationScheme", interpolationScheme_);
static instantList findTimes(const fileName &directory, const word &constantName="constant")
Search a given directory for valid time directories.
scalar timeOutputValue() const
Return current time value.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
List< Key > toc() const
The table of contents (the keys) in unsorted order.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
static word timeName(const scalar t, const int precision=precision_)
void append(const T &val)
Append an element at the end of the list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return Time from polyMesh.
Basic pointPatch represents a set of points from the mesh.
Abstract base class for point-mesh patch fields.
Foam::pointPatchFieldMapper.
Registry of regIOobjects.
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const DimensionedField< vector, pointMesh > & internalField() const
Return dimensioned internal field reference.
const Mesh & mesh() const
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void write(Ostream &) const
Write.
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Mesh representing a set of points created from polyMesh.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool updated() const
Return true if the boundary condition has already been updated.
void correctBoundaryConditions()
Correct boundary field.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Type & lookupObjectRef(const word &name, const bool recursive=false) const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Field reading functions for post-processing utilities.
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
forAllConstIters(mixture.phases(), phase)
const objectRegistry & subRegistry(const word &name, const bool forceCreate=false, const bool recursive=false) const
Lookup and return a const sub-objectRegistry.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
tmp< Field< vector > > patchInternalField() const
Return field created from appropriate internal field values.
A List with indirect addressing.
An instant of time. Contains the time value and name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...