38Foam::cylindricalInletVelocityFvPatchVectorField::
39cylindricalInletVelocityFvPatchVectorField
54Foam::cylindricalInletVelocityFvPatchVectorField::
55cylindricalInletVelocityFvPatchVectorField
66 axialVelocity_(ptf.axialVelocity_.clone()),
67 radialVelocity_(ptf.radialVelocity_.clone()),
68 rpm_(ptf.rpm_.clone())
72Foam::cylindricalInletVelocityFvPatchVectorField::
73cylindricalInletVelocityFvPatchVectorField
81 origin_(
dict.getCompat<
vector>(
"origin", {{
"centre", 1712}})),
92Foam::cylindricalInletVelocityFvPatchVectorField::
93cylindricalInletVelocityFvPatchVectorField
101 axialVelocity_(ptf.axialVelocity_.clone()),
102 radialVelocity_(ptf.radialVelocity_.clone()),
103 rpm_(ptf.rpm_.clone())
107Foam::cylindricalInletVelocityFvPatchVectorField::
108cylindricalInletVelocityFvPatchVectorField
115 origin_(ptf.origin_),
117 axialVelocity_(ptf.axialVelocity_.clone()),
118 radialVelocity_(ptf.radialVelocity_.clone()),
119 rpm_(ptf.rpm_.clone())
132 const scalar t = this->db().time().timeOutputValue();
133 const scalar axialVelocity = axialVelocity_->value(t);
134 const scalar radialVelocity = radialVelocity_->value(t);
135 const scalar omega =
rpmToRads(rpm_->value(t));
144 (omega * axisHat) ^ d
147 operator==(tangVel + axisHat*axialVelocity + radialVelocity*d/
mag(d));
158 axialVelocity_->writeData(
os);
159 radialVelocity_->writeData(
os);
161 writeEntry(
"value",
os);
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
This boundary condition describes an inlet vector boundary condition in cylindrical coordinates given...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
constexpr scalar rpmToRads() noexcept
Multiplication factor for revolutions/minute to radians/sec.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Unit conversion functions.