profileModelList.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2013 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::profileModelList
28
29Description
30 Base class for profile models
31
32SourceFiles
33 profileModelList.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef profileModelList_H
38#define profileModelList_H
39
40#include "PtrList.H"
41#include "profileModel.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class profileModelList Declaration
50\*---------------------------------------------------------------------------*/
53:
54 public PtrList<profileModel>
55{
56protected:
57
58 // Protected Data
59
60 //- Dictionary
61 const dictionary dict_;
62
63
64public:
65
66 //- Constructor
67 profileModelList(const dictionary& dict, const bool readFields = true);
68
69 //- Destructor
70 ~profileModelList() = default;
71
72
73 // Member Functions
74
75 //- Set blade->profile addressing
76 void connectBlades
77 (
78 const List<word>& names,
79 List<label>& addr
80 ) const;
81};
82
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86} // End namespace Foam
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90#endif
91
92// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: PtrList.H:73
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Base class for profile models.
const dictionary dict_
Dictionary.
void connectBlades(const List< word > &names, List< label > &addr) const
Set blade->profile addressing.
~profileModelList()=default
Destructor.
Namespace for OpenFOAM.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
dictionary dict