51 result += values[i]*
cos(i*xIn);
70 result += values[i]*
sin(i*xIn);
118 Cd = evaluateDrag(
alpha, CdCoeffs_);
119 Cl = evaluateLift(
alpha, ClCoeffs_);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Base class for profile models.
bool readFromFile() const
Return true if file name is set.
fileName fName_
File name (optional)
Series-up based profile data - drag and lift coefficients computed as sum of cosine series.
scalar evaluateDrag(const scalar &xIn, const List< scalar > &values) const
Drag.
seriesProfile(const dictionary &dict, const word &modelName)
Constructor.
List< scalar > ClCoeffs_
List of lift coefficient values.
List< scalar > CdCoeffs_
List of drag coefficient values.
virtual void Cdl(const scalar alpha, scalar &Cd, scalar &Cl) const
Return the Cd and Cl for a given angle-of-attack.
scalar evaluateLift(const scalar &xIn, const List< scalar > &values) const
Lift.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
errorManipArg< error, int > exit(error &err, const int errNo=1)
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
dimensionedScalar sin(const dimensionedScalar &ds)
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar cos(const dimensionedScalar &ds)