porosityModelList.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2012-2024 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::porosityModelList
26 
27 Description
28  List container for porosity models
29 
30 SourceFiles
31  porosityModelList.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef porosityModelList_H
36 #define porosityModelList_H
37 
38 #include "fvMesh.H"
39 #include "dictionary.H"
40 #include "fvMatricesFwd.H"
41 #include "porosityModel.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class porosityModelList Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public PtrList<porosityModel>
55 {
56 protected:
57 
58  // Protected data
59 
60  //- Reference to the mesh database
61  const fvMesh& mesh_;
62 
63 
64 public:
65 
66  // Constructors
67 
69 
70  //- Disallow default bitwise copy construction
71  porosityModelList(const porosityModelList&) = delete;
72 
73 
74  //- Destructor
76 
77 
78  // Member Functions
79 
80  //- Reset the source list
81  void reset(const dictionary& dict);
82 
83  //- Add resistance
85 
86  //- Add resistance
87  void addResistance
88  (
89  const fvVectorMatrix& UEqn,
90  volTensorField& AU,
91  bool correctAUprocBC = true
92  );
93 
94 
95  // Mesh changes
96 
97  //- Update for mesh motion
98  bool movePoints();
99 
100  //- Update topology using the given map
101  void topoChange(const polyTopoChangeMap&);
102 
103  //- Update from another mesh using the given map
104  void mapMesh(const polyMeshMap&);
105 
106  //- Redistribute or update using the given distribution map
107  void distribute(const polyDistributionMap&);
108 
109 
110  // I-O
111 
112  //- Read dictionary
113  bool read(const dictionary& dict);
114 
115 
116  // Member Operators
117 
118  //- Disallow default bitwise assignment
119  void operator=(const porosityModelList&) = delete;
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: PtrList.H:75
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvMatrix.H:118
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:51
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
List container for porosity models.
void addResistance(fvVectorMatrix &UEqn)
Add resistance.
bool movePoints()
Update for mesh motion.
void reset(const dictionary &dict)
Reset the source list.
porosityModelList(const fvMesh &mesh, const dictionary &dict)
void operator=(const porosityModelList &)=delete
Disallow default bitwise assignment.
const fvMesh & mesh_
Reference to the mesh database.
void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
bool read(const dictionary &dict)
Read dictionary.
void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
fvVectorMatrix & UEqn
Definition: UEqn.H:11
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Forward declarations of fvMatrix specialisations.
Namespace for OpenFOAM.
dictionary dict