72 const word& modelName =
dict.dictName();
76 Info<<
" - creating " << modelType <<
" profile " << modelName <<
endl;
78 auto* ctorPtr = dictionaryConstructorTable(modelType);
87 *dictionaryConstructorTablePtr_
91 return autoPtr<profileModel>(ctorPtr(
dict, modelName));
Macros for easy insertion into run-time selection tables.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Base class for profile models for handling aerofoil lift and drag polar diagrams.
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.
const word & name() const
Return const access to the source name.
static autoPtr< profileModel > New(const dictionary &dict)
Return a reference to the selected fvOption model.
const word name_
Name of profile model.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.