solidParticleCloud.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) 2011-2019 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::solidParticleCloud
26 
27 Description
28  A Cloud of solid particles
29 
30 SourceFiles
31  solidParticleCloudI.H
32  solidParticleCloud.C
33  solidParticleCloudIO.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef solidParticleCloud_H
38 #define solidParticleCloud_H
39 
40 #include "Cloud.H"
41 #include "solidParticle.H"
42 #include "IOdictionary.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 // Forward declaration of classes
50 class fvMesh;
51 
52 /*---------------------------------------------------------------------------*\
53  Class solidParticleCloud Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public Cloud<solidParticle>
59 {
60  // Private Data
61 
62  const fvMesh& mesh_;
63 
64  IOdictionary particleProperties_;
65 
66  scalar rhop_;
67  scalar e_;
68  scalar mu_;
69 
70 
71 public:
72 
73  // Constructors
74 
75  //- Construct given mesh
77  (
78  const fvMesh&,
79  const word& cloudName = "defaultCloud",
80  bool readFields = true
81  );
82 
83  //- Disallow default bitwise copy construction
84  solidParticleCloud(const solidParticleCloud&) = delete;
85 
86 
87  // Member Functions
88 
89  // Access
90 
91  inline const fvMesh& mesh() const;
92 
93  inline scalar rhop() const;
94  inline scalar e() const;
95  inline scalar mu() const;
96 
97 
98  // Edit
99 
100  //- Move the particles under the influence of the given
101  // gravitational acceleration
102  void move(const dimensionedVector& g);
103 
104 
105  // Member Operators
106 
107  //- Disallow default bitwise assignment
108  void operator=(const solidParticleCloud&) = delete;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #include "solidParticleCloudI.H"
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the specified type.
Definition: ReadFields.C:244
void operator=(const solidParticleCloud &)=delete
Disallow default bitwise assignment.
void move(const dimensionedVector &g)
Move the particles under the influence of the given.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:52
A class for handling words, derived from string.
Definition: word.H:59
solidParticleCloud(const fvMesh &, const word &cloudName="defaultCloud", bool readFields=true)
Construct given mesh.
A Cloud of solid particles.
Base cloud calls templated on particle type.
Definition: Cloud.H:52
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
const fvMesh & mesh() const
const word cloudName(propsDict.lookup("cloudName"))
const dimensionedVector & g
Namespace for OpenFOAM.