47 ?
gSum(patch().Cf()*patch().magSf())/
gSum(patch().magSf())
58 ? -
gSum(patch().Sf())/
gSum(patch().magSf())
85 tangentialVelocity_(nullptr)
87 if (
dict.found(
"omega") ||
dict.found(
"rpm"))
91 else if (
dict.found(
"tangentialVelocity"))
106 <<
"Please supply either 'omega' or 'rpm' or"
110 if (
dict.found(
"value"))
134 origin_(ptf.origin_),
136 axialVelocity_(ptf.axialVelocity_, false),
137 radialVelocity_(ptf.radialVelocity_, false),
138 omega_(ptf.omega_, false),
139 tangentialVelocity_(ptf.tangentialVelocity_, false)
151 origin_(ptf.origin_),
153 axialVelocity_(ptf.axialVelocity_, false),
154 radialVelocity_(ptf.radialVelocity_, false),
155 omega_(ptf.omega_, false),
156 tangentialVelocity_(ptf.tangentialVelocity_, false)
169 const scalar t = this->
time().value();
180 const scalarField axialVelocity(axialVelocity_->value(ts, magR));
181 const scalarField radialVelocity(radialVelocity_->value(ts, magR));
185 tangentialVelocity = omega_->value(t)*magR;
189 tangentialVelocity = tangentialVelocity_->value(ts, magR);
195 axialVelocity*axisHat
196 + radialVelocity*rHat
197 + tangentialVelocity*(axisHat ^ rHat)
237 tangentialVelocity_()
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...
const dimensionSet & dimensions() const
Return dimensions.
Run-time selectable function of two variables.
static autoPtr< Function2< Type > > New(const word &name, const Function2s::unitSets &units, const dictionary &dict)
Select from dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Velocity inlet boundary condition creating axial, radial and tangential velocity fields specified by ...
virtual void write(Ostream &) const
Write.
swirlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionSet dimless
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet & dimLength
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
Type gSum(const UList< Type > &f, const label comm)
const dimensionSet & dimVelocity
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
dimensionSet normalised(const dimensionSet &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)