52 thetag_(rotor.
set().cells().size(), 0.0)
70 scalar theta0 =
degToRad(coeffs_.lookup<scalar>(
"theta0"));
71 scalar theta1c =
degToRad(coeffs_.lookup<scalar>(
"theta1c"));
72 scalar theta1s =
degToRad(coeffs_.lookup<scalar>(
"theta1s"));
77 scalar
psi = x[i].y();
78 thetag_[i] = theta0 + theta1c*
cos(psi) + theta1s*
sin(psi);
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void correct(const vectorField &U, vectorField &force) const
Correct the model.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void read(const dictionary &dict)
Read.
Unit conversion functions.
const fvCellSet & set() const
Macros for easy insertion into run-time selection tables.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
Cell based momentum source which approximates the mean effects of rotor forces on a cylindrical regio...
bool read(const char *, int32_t &)
dimensionedScalar cos(const dimensionedScalar &ds)
fixedTrim(const fv::rotorDiskSource &rotor, const dictionary &dict)
Constructor.
dimensionedScalar sin(const dimensionedScalar &ds)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
void read(const dictionary &dict)
Read.
virtual tmp< scalarField > thetag() const
Return the geometric angle of attack [rad].
defineTypeNameAndDebug(combustionModel, 0)
const volScalarField & psi
A class for managing temporary objects.
virtual ~fixedTrim()
Destructor.