regionModelFunctionObjectList.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) 2012-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::regionModels::regionModelFunctionObjectList
28 
29 Description
30  List of cloud function objects
31 
32 SourceFiles
33  regionModelFunctionObjectListI.H
34  regionModelFunctionObjectList.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef regionModelFunctionObjectList_H
39 #define regionModelFunctionObjectList_H
40 
41 #include "PtrList.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace regionModels
49 {
50 
51 class regionModel;
52 
53 /*---------------------------------------------------------------------------*\
54  Class regionModelFunctionObjectList Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public PtrList<regionModelFunctionObject>
60 {
61 protected:
62 
63  // Protected Data
64 
65  //- Reference to the region region model
67 
68  //- Dictionary
69  const dictionary dict_;
70 
71 
72 public:
73 
74  // Constructors
75 
76  //- Null constructor
78 
79  //- Construct from mesh
81  (
83  const dictionary& dict,
84  const bool readFields = true
85  );
86 
87  //- Construct copy
89  (
91  );
92 
93 
94  //- Destructor
96 
97 
98  // Member Functions
99 
100  // Access
101 
102  //- Return const access to the cloud region
103  inline const regionModel& region() const;
104 
105  //- Return reference to the cloud region
106  inline regionModel& region();
107 
108  //- Return the forces dictionary
109  inline const dictionary& dict() const;
110 
111 
112  // Evaluation
113 
114  //- Pre-evolve hook
115  virtual void preEvolveRegion();
116 
117  //- Post-evolve hook
118  virtual void postEvolveRegion();
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace regionModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
regionModelFunctionObject.H
Foam::regionModels::regionModel
Base class for region models.
Definition: regionModel.H:60
Foam::regionModels::regionModelFunctionObjectList::regionModelFunctionObjectList
regionModelFunctionObjectList(regionModel &region)
Null constructor.
Definition: regionModelFunctionObjectList.C:34
Foam::regionModels::regionModelFunctionObjectList
List of cloud function objects.
Definition: regionModelFunctionObjectList.H:56
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:59
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::regionModels::regionModelFunctionObjectList::~regionModelFunctionObjectList
virtual ~regionModelFunctionObjectList()
Destructor.
Definition: regionModelFunctionObjectList.C:103
Foam::regionModels::regionModelFunctionObjectList::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve hook.
Definition: regionModelFunctionObjectList.C:109
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::regionModels::regionModelFunctionObjectList::dict_
const dictionary dict_
Dictionary.
Definition: regionModelFunctionObjectList.H:68
Foam::readFields
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Definition: ReadFieldsTemplates.C:312
Foam::regionModels::regionModelFunctionObjectList::postEvolveRegion
virtual void postEvolveRegion()
Post-evolve hook.
Definition: regionModelFunctionObjectList.C:118
PtrList.H
Foam::regionModels::regionModelFunctionObjectList::region
const regionModel & region() const
Return const access to the cloud region.
Definition: regionModelFunctionObjectListI.H:29
Foam::regionModels::regionModelFunctionObjectList::dict
const dictionary & dict() const
Return the forces dictionary.
Definition: regionModelFunctionObjectListI.H:43
Foam::regionModels::regionModelFunctionObjectList::regionModel_
regionModel & regionModel_
Reference to the region region model.
Definition: regionModelFunctionObjectList.H:65
regionModelFunctionObjectListI.H