42 fixedValueFvPatchVectorField(
p, iF),
43 refValueFunc_(nullptr),
60 if (!this->readValueEntry(
dict))
70 const uniformNormalFixedValueFvPatchVectorField& ptf,
72 const DimensionedField<vector, volMesh>& iF,
73 const fvPatchFieldMapper& mapper
76 fixedValueFvPatchVectorField(
p, iF),
77 refValueFunc_(ptf.refValueFunc_.clone(
p.patch())),
78 ramp_(ptf.ramp_.clone())
80 if (mapper.direct() && !mapper.hasUnmapped())
83 this->map(ptf, mapper);
99 fixedValueFvPatchVectorField(ptf),
100 refValueFunc_(ptf.refValueFunc_.
clone(this->patch().patch())),
101 ramp_(ptf.ramp_.
clone())
112 fixedValueFvPatchVectorField(ptf, iF),
113 refValueFunc_(ptf.refValueFunc_.
clone(this->patch().patch())),
114 ramp_(ptf.ramp_.
clone())
125 fixedValueFvPatchVectorField::autoMap(mapper);
126 refValueFunc_().autoMap(mapper);
142 fixedValueFvPatchVectorField::rmap(ptf, addr);
147 refValueFunc_().rmap(tiptf.refValueFunc_(), addr);
158 const scalar t = this->db().time().timeOutputValue();
160 tmp<vectorField> tvalues(refValueFunc_->value(t)*patch().nf());
164 tvalues.ref() *= ramp_->value(t);
175 refValueFunc_->writeData(
os);
178 ramp_->writeData(
os);
191 uniformNormalFixedValueFvPatchVectorField
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...
virtual bool direct() const =0
Is it a direct (non-interpolating) mapper?
virtual bool hasUnmapped() const =0
Any unmapped values?
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void operator=(const UList< vector > &)
virtual void updateCoeffs()
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Different types of constants.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
List< label > labelList
A List of labels.
fvPatchField< vector > fvPatchVectorField