66 interpolationScheme_(
dict.
lookup(
"interpolationScheme"))
68 if (!
dict.found(
"value"))
78 const uniformInterpolatedDisplacementPointPatchVectorField& ptf,
80 const DimensionedField<vector, pointMesh>& iF,
81 const pointPatchFieldMapper& mapper
84 fixedValuePointPatchField<
vector>(ptf,
p, iF, mapper),
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)
143 values.append(inst.value());
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)
195 ReadFields<pointVectorField>
204 if (!oldTimes.found(fieldsCacheIter.key()))
211 const objectRegistry& timeCache = dynamic_cast
213 const objectRegistry&
214 >(*fieldsCacheIter());
229 uniformInterpolate<pointVectorField>
233 word(
"uniformInterpolate(")
236 pMesh.time().timeName(),
262 os.writeEntry(
"field", fieldName_);
263 os.writeEntry(
"interpolationScheme", interpolationScheme_);
273 uniformInterpolatedDisplacementPointPatchVectorField
void size(const label n)
Older name for setAddressableSize.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void append(const T &val)
Append an element at the end of the list.
A FixedValue boundary condition for pointField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< vector, pointPatchField, pointMesh > pointVectorField
virtual void write(Ostream &os) const
Write.
Field reading functions for post-processing utilities.
Ignore writing from objectRegistry::writeObject()
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Lookup type of boundary radiation properties.
Macros for easy insertion into run-time selection tables.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
bool updated() const noexcept
True if the boundary condition has already been updated.
tmp< Field< vector > > patchInternalField() const
Return field created from appropriate internal field values.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
pointPatchField< vector > pointPatchVectorField
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
List< word > wordList
List of word.
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...
Automatically write from objectRegistry::writeObject()
void correctBoundaryConditions()
Correct boundary field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
List< instant > instantList
List of instants.
Do not request registration (bool: false)
const DimensionedField< vector, pointMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
forAllConstIters(mixture.phases(), phase)