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);
96 const uniformNormalFixedValueFvPatchVectorField& ptf
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);
128 if (refValueFunc_().constant())
142 fixedValueFvPatchVectorField::rmap(ptf, addr);
145 refCast<const uniformNormalFixedValueFvPatchVectorField>(ptf);
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
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
fvPatchField< vector > fvPatchVectorField
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
OBJstream os(runTime.globalPath()/outputName)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator=(const UList< vector > &)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
List< label > labelList
A List of labels.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)