97 #ifndef rotorDiskSource_H 98 #define rotorDiskSource_H 238 const bool writeNow =
false 255 const word& modelType,
270 inline scalar
rhoRef()
const;
274 inline scalar
omega()
const;
287 template<
class RhoFieldType>
290 const RhoFieldType&
rho,
294 const bool divideVolume =
true,
295 const bool output =
true scalar tipEffect_
Tip effect [0-1].
List< scalar > area_
Area [m2].
Blade model class calculates: Linear interpolated blade twist and chord based on radial position Inte...
virtual void correct(volScalarField &field)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static const NamedEnum< inletFlowType, 3 > inletFlowTypeNames_
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const List< point > & x() const
Return the cell centre positions in local rotor frame.
virtual bool read(const dictionary &dict)
Read source dictionary.
const cylindricalCS & coordSys() const
Return the rotor co-ordinate system (r, theta, z)
virtual ~rotorDiskSource()
Destructor.
autoPtr< cylindrical > cylindrical_
Rotor transformation co-ordinate system.
const fvMesh & mesh() const
Return const access to the mesh database.
scalar rhoRef_
Reference density for incompressible case.
Base class for profile models.
scalar omega() const
Return the rotational speed [rad/s].
rotorDiskSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
void constructGeometry()
Construct geometry.
scalar omega_
Rotational speed [rad/s].
label nBlades_
Number of blades.
List< tensor > R_
Rotation tensor for flap angle.
Cylindrical coordinate system.
scalar rMax_
Maximum radius.
vector inletVelocity_
Inlet velocity for specified iinflow.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const word & name() const
Return const access to the source name.
scalar rhoRef() const
Return the reference density for incompressible case.
inletFlowType inletFlow_
Inlet flow type.
autoPtr< trimModel > trim_
Trim model.
static const NamedEnum< geometryModeType, 2 > geometryModeTypeNames_
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Source term to momentum equation.
void checkData()
Check data.
profileModelList profiles_
Profile data.
Mesh data needed to do the Finite Volume discretisation.
bladeModel blade_
Blade data.
flapData flap_
Blade flap coefficients [rad/s].
cylindricalCS coordSys_
Rotor local cylindrical co-ordinate system (r, theta, z)
Cell-set options abtract base class. Provides a base set of controls, e.g.:
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
List< point > x_
Cell centre positions in local rotor frame.
void writeField(const word &name, const List< Type > &values, const bool writeNow=false) const
Helper function to write rotor values.
void calculate(const RhoFieldType &rho, const vectorField &U, const scalarField &thetag, vectorField &force, const bool divideVolume=true, const bool output=true) const
Calculate forces.
void setFaceArea(vector &axis, const bool correct)
Set the face areas per cell, and optionally correct the rotor axis.
A class for managing temporary objects.
List< tensor > invR_
Inverse rotation tensor for flap angle.
void createCoordinateSystem()
Create the co-ordinate system.
tmp< vectorField > inflowVelocity(const volVectorField &U) const
Return the inlet flow field.
TypeName("rotorDisk")
Runtime type information.