42 fixedValueFvPatchVectorField(
p, iF),
43 uniformValue_(nullptr),
56 fixedValueFvPatchVectorField(
p, iF,
dict, false),
60 if (
dict.found(
"value"))
77 const uniformNormalFixedValueFvPatchVectorField& ptf,
79 const DimensionedField<vector, volMesh>& iF,
80 const fvPatchFieldMapper& mapper
83 fixedValueFvPatchVectorField(
p, iF),
84 uniformValue_(ptf.uniformValue_.clone(
p.
patch())),
85 ramp_(ptf.ramp_.clone())
87 if (mapper.direct() && !mapper.hasUnmapped())
90 this->map(ptf, mapper);
103 const uniformNormalFixedValueFvPatchVectorField& ptf
106 fixedValueFvPatchVectorField(ptf),
107 uniformValue_(ptf.uniformValue_.clone(this->
patch().
patch())),
108 ramp_(ptf.ramp_.clone())
119 fixedValueFvPatchVectorField(ptf, iF),
120 uniformValue_(ptf.uniformValue_.clone(this->
patch().
patch())),
121 ramp_(ptf.ramp_.clone())
132 fixedValueFvPatchVectorField::autoMap(mapper);
133 uniformValue_().autoMap(mapper);
135 if (uniformValue_().constant())
149 fixedValueFvPatchVectorField::rmap(ptf, addr);
152 refCast<const uniformNormalFixedValueFvPatchVectorField>(ptf);
154 uniformValue_().
rmap(tiptf.uniformValue_(), addr);
165 const scalar t = this->db().time().timeOutputValue();
167 tmp<vectorField> tvalues(uniformValue_->value(t)*
patch().nf());
171 tvalues.ref() *= ramp_->value(t);
182 uniformValue_->writeData(
os);
185 ramp_->writeData(
os);
187 this->writeEntry(
"value",
os);
198 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...
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
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< Type > &)
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.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< label > labelList
A List of labels.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)