43 fixedValueFvPatchVectorField(
p, iF),
58 refValue_(
"refValue",
dict,
p.size()),
65 tvalues.ref() *= ramp_->value(this->db().time().timeOutputValue());
75 const surfaceNormalFixedValueFvPatchVectorField& ptf,
77 const DimensionedField<vector, volMesh>& iF,
78 const fvPatchFieldMapper& mapper
81 fixedValueFvPatchVectorField(
p, iF),
82 refValue_(ptf.refValue_, mapper, pTraits<scalar>::zero),
83 ramp_(ptf.ramp_.clone())
90 tmp<vectorField> tvalues(refValue_*patch().nf());
94 tvalues.ref() *= ramp_->value(this->db().time().timeOutputValue());
104 const surfaceNormalFixedValueFvPatchVectorField& ptf
107 fixedValueFvPatchVectorField(ptf),
108 refValue_(ptf.refValue_),
109 ramp_(ptf.ramp_.
clone())
120 fixedValueFvPatchVectorField(ptf, iF),
121 refValue_(ptf.refValue_),
122 ramp_(ptf.ramp_.
clone())
133 fixedValueFvPatchVectorField::autoMap(mapper);
134 refValue_.autoMap(mapper);
144 fixedValueFvPatchVectorField::rmap(ptf, addr);
149 refValue_.rmap(tiptf.refValue_, addr);
160 tmp<vectorField> tvalues(refValue_*patch().nf());
164 tvalues.ref() *= ramp_->value(this->db().time().timeOutputValue());
175 refValue_.writeEntry(
"refValue",
os);
178 ramp_->writeData(
os);
190 surfaceNormalFixedValueFvPatchVectorField
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...
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,...
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.
virtual void operator=(const UList< vector > &)
virtual void updateCoeffs()
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A traits class, which is primarily used for primitives and vector-space.
This boundary condition provides a surface-normal vector boundary condition by its magnitude.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
surfaceNormalFixedValueFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
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.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
List< label > labelList
A List of labels.
fvPatchField< vector > fvPatchVectorField