47 ?
gSum(patch().Cf()*patch().magSf())/
gSum(patch().magSf())
58 ? -
gSum(patch().Sf())/
gSum(patch().magSf())
67 db().time().userUnits(),
78 db().time().userUnits(),
85 tangentialVelocity_(nullptr)
87 if (
dict.found(
"omega") ||
dict.found(
"rpm"))
91 else if (
dict.found(
"tangentialVelocity"))
97 db().time().userUnits(),
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->db().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)
212 db().time().userUnits(),
220 db().time().userUnits(),
234 db().time().userUnits(),
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::unitConversions &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 keyword definitions, which are a keyword followed by any number of values (e....
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.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
swirlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gSum(const FieldField< Field, Type > &f)
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 dimless
const dimensionSet dimLength
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
dimensionSet normalised(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
const dimensionSet dimVelocity
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)