Go to the documentation of this file.
180 #ifndef rotorDiskSource_H
181 #define rotorDiskSource_H
205 class rotorDiskSource
207 public fv::cellSetOption
287 autoPtr<tensorField>
Rcyl_;
293 autoPtr<trimModel>
trim_;
325 const bool writeNow =
false
341 const word& modelType,
362 inline scalar
rhoRef()
const;
366 inline scalar
omega()
const;
379 template<
class RhoFieldType>
386 const bool divideVolume =
true,
virtual void correct(volScalarField &field)
profileModelList profiles_
void calculate(const RhoFieldType &rho, const vectorField &U, const scalarField &thetag, vectorField &force, const bool divideVolume=true, const bool output=true) const
virtual bool read(const dictionary &dict)
void operator=(const rotorDiskSource &)=delete
const word & name() const noexcept
static Ostream & output(Ostream &os, const IntRange< T > &range)
const coordSystem::cylindrical & coordSys() const
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
void createCoordinateSystem()
void setFaceArea(vector &axis, const bool correct)
A class for managing temporary objects.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
autoPtr< tensorField > Rcyl_
Blade model class calculates:
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
const List< point > & x() const
Generic templated field type.
Base class for profile models.
rotorDiskSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Applies cell-based momentum sources on velocity (i.e. U) within a specified cylindrical region to app...
A cylindrical coordinate system (r-theta-z). The coordinate system angle theta is always in radians.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void writeField(const word &name, const List< Type > &values, const bool writeNow=false) const
Mesh data needed to do the Finite Volume discretisation.
Vector< scalar > vector
A scalar version of the templated Vector.
static const Enum< geometryModeType > geometryModeTypeNames_
static const Enum< inletFlowType > inletFlowTypeNames_
GeometricField< vector, fvPatchField, volMesh > volVectorField
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const fvMesh & mesh() const noexcept
coordSystem::cylindrical coordSys_
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
tmp< vectorField > inflowVelocity(const volVectorField &U) const
A special matrix type and solver, designed for finite volume solutions of scalar equations....
autoPtr< trimModel > trim_
virtual ~rotorDiskSource()=default
Generic GeometricField class.