66 interpolationScheme_(
dict.
lookup(
"interpolationScheme"))
85 fieldName_(ptf.fieldName_),
86 interpolationScheme_(ptf.interpolationScheme_),
87 timeNames_(ptf.timeNames_),
88 timeVals_(ptf.timeVals_),
89 interpolatorPtr_(ptf.interpolatorPtr_)
101 fieldName_(ptf.fieldName_),
102 interpolationScheme_(ptf.interpolationScheme_),
103 timeNames_(ptf.timeNames_),
104 timeVals_(ptf.timeVals_),
105 interpolatorPtr_(ptf.interpolatorPtr_)
118 if (!interpolatorPtr_)
126 DynamicList<word>
names(allTimes.size());
127 DynamicList<scalar> values(allTimes.size());
129 for (
const instant& inst : allTimes)
142 names.append(inst.name());
143 values.append(inst.value());
146 timeNames_.transfer(
names);
147 timeVals_.transfer(values);
149 Info<<
type() <<
" : found " << fieldName_ <<
" for times "
150 << timeNames_ <<
endl;
152 if (timeNames_.size() < 1)
155 <<
"Did not find any times with " << fieldName_
162 interpolationScheme_,
168 const Time& t = pMesh().
time();
171 bool timesChanged = interpolatorPtr_->valueWeights
180 UIndirectList<word>(timeNames_, currentIndices_)
187 objectRegistry& fieldsCache =
const_cast<objectRegistry&
>
189 pMesh.thisDb().subRegistry(
"fieldsCache",
true)
204 if (!oldTimes.found(fieldsCacheIter.key()))
211 const objectRegistry& timeCache = dynamic_cast
213 const objectRegistry&
214 >(*fieldsCacheIter());
233 word(
"uniformInterpolate(")
262 os.writeEntry(
"field", fieldName_);
263 os.writeEntry(
"interpolationScheme", interpolationScheme_);
273 uniformInterpolatedDisplacementPointPatchVectorField
Field reading functions for post-processing utilities.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Mesh & mesh() const noexcept
Return const reference to mesh.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void correctBoundaryConditions()
Correct boundary field.
List< Key > toc() const
The table of contents (the keys) in unsorted order.
bool found(const Key &key) const
Same as contains().
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion).
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
A List with indirect addressing. Like IndirectList but does not store addressing.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FixedValue boundary condition for pointField.
fixedValuePointPatchField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
Registry of regIOobjects.
Type & lookupObjectRef(const word &name, const bool recursive=false) const
Lookup and return non-const reference to the object of the given Type. Fatal if not found or the wron...
Mesh representing a set of points created from polyMesh.
const Time & time() const
Return Time from polyMesh.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
bool updated() const noexcept
True if the boundary condition has already been updated.
Foam::pointPatchFieldMapper.
tmp< Field< vector > > patchInternalField() const
virtual void write(Ostream &os) const
Write.
const DimensionedField< vector, pointMesh > & internalField() const noexcept
Basic pointPatch represents a set of points from the mesh.
Lookup type of boundary radiation properties.
void writeValueEntry(Ostream &os) const
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from Foam::string.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, const bool syncPar=true, const bool readOldTime=false)
Read Geometric fields of templated type.
List< word > wordList
List of word.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
messageStream Info
Information stream (stdout output on master, null elsewhere).
GeometricField< vector, pointPatchField, pointMesh > pointVectorField
List< instant > instantList
List of instants.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
tmp< GeoField > uniformInterpolate(const HashPtrTable< GeoField, label, Hash< label > > &fields, const labelList &indices, const scalarField &weights)
Interpolate selected fields (given by indices and corresponding weights).
Ostream & endl(Ostream &os)
Add newline and flush stream.
pointPatchField< vector > pointPatchVectorField
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define makePointPatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete pointPatchField type and add to run-time tables Example, (pointPatchScalarField,...
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.