72 #ifndef targetCoeffTrim_H 73 #define targetCoeffTrim_H 128 template<
class RhoFieldType>
131 const RhoFieldType&
rho,
138 template<
class RhoFieldType>
141 const RhoFieldType&
rho,
scalar alpha_
Coefficient to allow for conversion between US and EU definitions.
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...
void correctTrim(const RhoFieldType &rho, const vectorField &U, vectorField &force) const
Correct the model.
scalar tol_
Convergence tolerance.
label nIter_
Maximum number of iterations in trim routine.
vector theta_
Pitch angles (collective, roll, pitch) [rad].
Cell based momentum source which approximates the mean effects of rotor forces on a cylindrical regio...
virtual ~targetCoeffTrim()
Destructor.
Target trim forces/coefficients.
vector target_
Target coefficient vector (thrust force, roll moment, pitch moment)
virtual void correct(const vectorField &U, vectorField &force) const
Correct the model.
label calcFrequency_
Number of iterations between calls to 'correct'.
TypeName("targetCoeffTrim")
Run-time type information.
vector calcCoeffs(const RhoFieldType &rho, const vectorField &U, const scalarField &alphag, vectorField &force) const
Calculate the rotor force and moment coefficients vector.
virtual tmp< scalarField > thetag() const
Return the geometric angle of attack [rad].
scalar dTheta_
Perturbation angle used to determine jacobian.
targetCoeffTrim(const fv::rotorDiskSource &rotor, const dictionary &dict)
Constructor.
void read(const dictionary &dict)
Read.
scalar relax_
Under-relaxation coefficient.
A class for managing temporary objects.
bool useCoeffs_
Flag to indicate whether to solve coeffs (true) or forces (false)