62 axialVelocity_(ptf.axialVelocity_.
clone()),
63 radialVelocity_(ptf.radialVelocity_.
clone()),
64 tangentialVelocity_(ptf.tangentialVelocity_.
clone())
100 axialVelocity_(ptf.axialVelocity_.
clone()),
101 radialVelocity_(ptf.radialVelocity_.
clone()),
102 tangentialVelocity_(ptf.tangentialVelocity_.
clone())
114 origin_(ptf.origin_),
116 axialVelocity_(ptf.axialVelocity_.clone()),
117 radialVelocity_(ptf.radialVelocity_.
clone()),
118 tangentialVelocity_(ptf.tangentialVelocity_.
clone())
135 r -= (axisHat & r)*axisHat;
139 const scalarField axialVelocity(axialVelocity_->value(magr));
140 const scalarField radialVelocity(radialVelocity_->value(magr));
141 const scalarField tangentialVelocity(tangentialVelocity_->value(magr));
145 axialVelocity*axisHat
146 + radialVelocity*rHat
147 + tangentialVelocity*(axisHat ^ rHat)
157 os.writeEntry(
"origin", origin_);
158 os.writeEntry(
"axis", axis_);
159 axialVelocity_->writeData(
os);
160 radialVelocity_->writeData(
os);
161 tangentialVelocity_->writeData(
os);
173 swirlInletVelocityFvPatchVectorField
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
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.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition describes an inlet vector boundary condition in swirl coordinates given a cen...
virtual void write(Ostream &) const
Write.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
swirlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
fvPatchField< vector > fvPatchVectorField