35 #ifndef profileModel_H
36 #define profileModel_H
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling file names.
Base class for profile models.
virtual ~profileModel()
Destructor.
virtual void Cdl(const scalar alpha, scalar &Cd, scalar &Cl) const =0
Return the Cd and Cl for a given angle-of-attack.
bool readFromFile() const
Return true if file name is set.
const dictionary dict_
Coefficients dictionary.
fileName fName_
File name (optional)
profileModel(const dictionary &dict, const word &modelName)
Constructor.
declareRunTimeSelectionTable(autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName))
const word & name() const
Return const access to the source name.
static autoPtr< profileModel > New(const dictionary &dict)
Return a reference to the selected fvModel model.
TypeName("profileModel")
Runtime type information.
const word name_
Name of profile model.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Macros to ease declaration of run-time selection tables.