62 fieldName_(dict.
lookup(
"fieldName")),
63 interpolationScheme_(dict.
lookup(
"interpolationScheme"))
87 names.append(allTimes[i].
name());
88 values.append(allTimes[i].value());
91 timeNames_.transfer(names);
92 timeVals_.transfer(values);
94 Info<<
type() <<
" : found " << fieldName_ <<
" for times " 95 << timeNames_ <<
endl;
97 if (timeNames_.size() < 1)
101 "uniformInterpolatedDisplacementPointPatchVectorField::\n" 102 "uniformInterpolatedDisplacementPointPatchVectorField\n" 104 " const pointPatch&,\n" 105 " const DimensionedField<vector, pointMesh>&,\n" 106 " const dictionary&\n" 108 ) <<
"Did not find any times with " << fieldName_
113 if (!dict.
found(
"value"))
130 fieldName_(ptf.fieldName_),
131 interpolationScheme_(ptf.interpolationScheme_),
132 timeNames_(ptf.timeNames_),
133 timeVals_(ptf.timeVals_),
134 interpolatorPtr_(ptf.interpolatorPtr_)
146 fieldName_(ptf.fieldName_),
147 interpolationScheme_(ptf.interpolationScheme_),
148 timeNames_(ptf.timeNames_),
149 timeVals_(ptf.timeVals_),
150 interpolatorPtr_(ptf.interpolatorPtr_)
163 if (!interpolatorPtr_.valid())
167 interpolationScheme_,
176 bool timesChanged = interpolatorPtr_->valueWeights
200 ReadFields<pointVectorField>
209 if (!oldTimes.found(fieldsCacheIter.key()))
219 >(*fieldsCacheIter());
238 uniformInterpolate<pointVectorField>
242 word(
"uniformInterpolate(")
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Basic pointPatch represents a set of points from the mesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
word name(const complex &)
Return a string representation of a complex.
const objectRegistry & subRegistry(const word &name, const bool forceCreate=false) const
Lookup and return a const sub-objectRegistry. Optionally create.
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
DimensionedInternalField & dimensionedInternalField()
Return dimensioned internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Mesh representing a set of points created from polyMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar timeOutputValue() const
Return current time value.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A List with indirect addressing.
const DimensionedField< vector, pointMesh > & dimensionedInternalField() const
Return dimensioned internal field reference.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Macros for easy insertion into run-time selection tables.
List< Key > toc() const
Return the table of contents.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Foam::pointPatchFieldMapper.
Helper routine to read fields.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
rDeltaT dimensionedInternalField()
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
tmp< Field< vector > > patchInternalField() const
Return field created from appropriate internal field values.
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
void correctBoundaryConditions()
Correct boundary field.
Registry of regIOobjects.
uniformInterpolatedDisplacementPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.
A HashTable with keys but without contents.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const Time & time() const
Return time.
Interpolates pre-specified motion.
bool headerOk()
Read and check header info.
bool updated() const
Return true if the boundary condition has already been updated.
static instantList findTimes(const fileName &, const word &constantName="constant")
Search a given directory for valid time directories.
virtual void write(Ostream &) const
Write.