42 fixedValueFvPatchVectorField(
p, iF),
44 inletValue_(
p.size(),
Zero)
56 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
57 relative_(ptf.relative_),
58 inletValue_(ptf.inletValue_, mapper)
69 fixedValueFvPatchVectorField(
p, iF,
dict),
71 inletValue_(
"inletValue",
dict,
p.size())
80 fixedValueFvPatchVectorField(srfvpvf),
81 relative_(srfvpvf.relative_),
82 inletValue_(srfvpvf.inletValue_)
92 fixedValueFvPatchVectorField(srfvpvf, iF),
93 relative_(srfvpvf.relative_),
94 inletValue_(srfvpvf.inletValue_)
106 inletValue_.autoMap(m);
116 fixedValueFvPatchVectorField::rmap(ptf, addr);
121 inletValue_.rmap(tiptf.inletValue_, addr);
136 const SRF::SRFModel& srf =
137 db().lookupObject<SRF::SRFModel>(
"SRFProperties");
140 const vectorField SRFVelocity(srf.velocity(patch().Cf()));
151 fixedValueFvPatchVectorField::updateCoeffs();
158 os.writeEntry(
"relative", relative_);
159 inletValue_.writeEntry(
"inletValue",
os);
171 SRFVelocityFvPatchVectorField
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...
void autoMap(const FieldMapper &map, const bool applyFlip=true)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFMode...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
SRFVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Top level model for single rotating frame.
vectorField velocity(const vectorField &positions) const
Return velocity vector from positions.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
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.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
fvPatchField< vector > fvPatchVectorField