45 Info<<
" Constructing blade profiles:" <<
endl;
47 if (modelNames.size())
49 this->
setSize(modelNames.size());
53 const word& modelName = modelNames[i];
74 const List<word>&
names,
82 const word& profileName =
names[bI];
86 const profileModel& pm = this->operator[](pI);
88 if (pm.name() == profileName)
97 List<word> profileNames(size());
100 const profileModel& pm = this->operator[](i);
101 profileNames[i] = pm.name();
105 <<
"Profile " << profileName <<
" could not be found " 106 <<
"in profile list. Available profiles are"
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void connectBlades(const List< word > &names, List< label > &addr) const
Set blade->profile addressing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
profileModelList(const dictionary &dict, const bool readFields=true)
Constructor.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
A class for handling words, derived from Foam::string.
Base class for profile models for handling aerofoil lift and drag polar diagrams. ...
void setSize(const label newLen)
Same as resize()
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
messageStream Info
Information stream (stdout output on master, null elsewhere)
static autoPtr< profileModel > New(const dictionary &dict)
Return a reference to the selected fvOption model.