54 thetag_(rotor.
cells().size(), Zero)
66 const scalar theta0 =
degToRad(coeffs_.get<scalar>(
"theta0"));
67 const scalar theta1c =
degToRad(coeffs_.get<scalar>(
"theta1c"));
68 const scalar theta1s =
degToRad(coeffs_.get<scalar>(
"theta1s"));
73 scalar
psi =
x[i].y();
74 thetag_[i] = theta0 + theta1c*
cos(
psi) + theta1s*
sin(
psi);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Trim model where the operating characteristics of rotor (e.g. blade pitch angle) are fixed,...
virtual tmp< scalarField > thetag() const
Return the geometric angle of attack [rad].
void read(const dictionary &dict)
Read.
Applies cell-based momentum sources on velocity (i.e. U) within a specified cylindrical region to app...
A class for managing temporary objects.
Base class for trim models for handling blade characteristics and thrust-torque relations.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & psi
Different types of constants.
dimensionedScalar sin(const dimensionedScalar &ds)
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
dimensionedScalar cos(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.