Go to the documentation of this file.
65 axialVelocity_(ptf.axialVelocity_.clone()),
66 radialVelocity_(ptf.radialVelocity_.clone()),
67 rpm_(ptf.rpm_.clone())
80 origin_(
dict.getCompat<
vector>(
"origin", {{
"centre", 1712}})),
81 axis_(
dict.lookup(
"axis")),
97 axialVelocity_(ptf.axialVelocity_.clone()),
98 radialVelocity_(ptf.radialVelocity_.clone()),
99 rpm_(ptf.rpm_.clone())
111 origin_(ptf.origin_),
113 axialVelocity_(ptf.axialVelocity_.clone()),
114 radialVelocity_(ptf.radialVelocity_.clone()),
115 rpm_(ptf.rpm_.clone())
128 const scalar t = this->db().time().timeOutputValue();
129 const scalar axialVelocity = axialVelocity_->value(t);
130 const scalar radialVelocity = radialVelocity_->value(t);
131 const scalar omega =
rpmToRads(rpm_->value(t));
140 (omega * axisHat) ^ d
143 operator==(tangVel + axisHat*axialVelocity + radialVelocity*d/
mag(d));
154 axialVelocity_->writeData(os);
155 radialVelocity_->writeData(os);
157 writeEntry(
"value", os);
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
Unit conversion functions.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
cylindricalInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition describes an inlet vector boundary condition in cylindrical coordinates given...
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
constexpr scalar rpmToRads(const scalar rpm) noexcept
Conversion from revolutions/minute to radians/sec.
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...