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-------------------------------------------------------------------------------
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::regionModels::regionModelFunctionObjectList
28
29Description
30 List of cloud function objects
31
32SourceFiles
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
46namespace Foam
47{
48namespace regionModels
49{
50
51class regionModel;
52
53/*---------------------------------------------------------------------------*\
54 Class regionModelFunctionObjectList Declaration
55\*---------------------------------------------------------------------------*/
58:
59 public PtrList<regionModelFunctionObject>
60{
61protected:
62
63 // Protected Data
64
65 //- Reference to the region region model
67
68 //- Dictionary
69 const dictionary dict_;
70
71
72public:
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// ************************************************************************* //
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
regionModel & regionModel_
Reference to the region region model.
const regionModel & region() const
Return const access to the cloud region.
const dictionary & dict() const
Return the forces dictionary.
Base class for region models.
Definition: regionModel.H:63
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.