107 <<
"CdCoeffs must be specified" 113 <<
"ClCoeffs must be specified" 123 Cd = evaluateDrag(
alpha, CdCoeffs_);
124 Cl = evaluateLift(
alpha, ClCoeffs_);
virtual void Cdl(const scalar alpha, scalar &Cd, scalar &Cl) const
Return the Cd and Cl for a given angle-of-attack.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< scalar > ClCoeffs_
List of lift coefficient values.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar evaluateLift(const scalar &xIn, const List< scalar > &values) const
Lift.
seriesProfile(const dictionary &dict, const word &modelName)
Constructor from dictionary and model name.
bool empty() const noexcept
True if List is empty (ie, size() is zero)
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Profile model where polar lift and drag coefficients are computed as sum of trigonometric series by u...
dimensionedScalar cos(const dimensionedScalar &ds)
fileName fName_
File name (optional)
A class for handling words, derived from Foam::string.
Base class for profile models for handling aerofoil lift and drag polar diagrams. ...
dimensionedScalar sin(const dimensionedScalar &ds)
defineTypeNameAndDebug(combustionModel, 0)
Input from file stream as an ISstream, normally using std::ifstream for the actual input...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
List< scalar > CdCoeffs_
List of drag coefficient values.
bool readFromFile() const
Return true if file name is set.
scalar evaluateDrag(const scalar &xIn, const List< scalar > &values) const
Drag.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...