66 axialVelocity_(ptf.axialVelocity_.clone()),
67 radialVelocity_(ptf.radialVelocity_.clone()),
68 rpm_(ptf.rpm_.clone())
81 origin_(
dict.getCompat<
vector>(
"origin", {{
"centre", 1712}})),
83 axialVelocity_(Function1<scalar>::New(
"axialVelocity",
dict, &db())),
86 Function1<scalar>::New(
"radialVelocity",
dict, &db())
101 axialVelocity_(ptf.axialVelocity_.clone()),
102 radialVelocity_(ptf.radialVelocity_.clone()),
103 rpm_(ptf.rpm_.clone())
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));
142 tmp<vectorField> tangVel
144 (omega * axisHat) ^ d
147 operator==(tangVel + axisHat*axialVelocity + radialVelocity*d/
mag(d));
158 axialVelocity_->writeData(
os);
159 radialVelocity_->writeData(
os);
172 cylindricalInletVelocityFvPatchVectorField
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return an entry data stream. FatalIOError if not found, or not a stream. ...
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...
This boundary condition describes an inlet vector boundary condition in cylindrical coordinates given...
fvPatchField< vector > fvPatchVectorField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
cylindricalInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
constexpr scalar rpmToRads(const scalar rpm) noexcept
Conversion from revolutions/minute to radians/sec.
Unit conversion functions.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)