Go to the documentation of this file.
56 const label nElem =
values.size();
66 while ((i2 < nElem) && (
values[i2] < xIn))
119 AOA_.setSize(
data.size());
120 Cd_.setSize(
data.size());
121 Cl_.setSize(
data.size());
133 <<
"No profile data specified"
145 scalar invAlpha = -1.0;
148 Cd = invAlpha*(
Cd_[i2] -
Cd_[i1]) +
Cd_[i1];
149 Cl = invAlpha*(
Cl_[i2] -
Cl_[i1]) +
Cl_[i1];
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
void interpolateWeights(const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
Return the interpolation indices and gradient.
A class for handling words, derived from Foam::string.
lookupProfile(const dictionary &dict, const word &modelName)
Constructor from dictionary and model name.
Input from file stream, using an ISstream.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Unit conversion functions.
List< scalar > Cd_
List of drag coefficient values.
#define forAll(list, i)
Loop across all elements in list.
List< scalar > AOA_
List of angle-of-attack values [deg] on input, converted to [rad].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void Cdl(const scalar alpha, scalar &Cd, scalar &Cl) const
Return the Cd and Cl for a given angle-of-attack.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(combustionModel, 0)
Database for solution data, solver performance and other reduced data.
Base class for profile models for handling aerofoil lift and drag polar diagrams.
List< scalar > Cl_
List of lift coefficient values.