potential.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 | Copyright (C) 2011 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::potential
26 
27 Description
28 
29 SourceFiles
30  potentialI.H
31  potential.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef potential_H
36 #define potential_H
37 
38 #include "polyMesh.H"
39 #include "IOdictionary.H"
40 #include "Time.H"
41 #include "pairPotentialList.H"
42 #include "electrostaticPotential.H"
43 #include "tetherPotentialList.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class potential Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class potential
55 {
56  // Private data
57 
58  const polyMesh& mesh_;
59 
61 
63 
65 
66  scalar potentialEnergyLimit_;
67 
69 
71 
73 
75 
76 
77  // Private Member Functions
78 
79  void setSiteIdList(const dictionary& moleculePropertiesDict);
80 
81  void readPotentialDict();
82 
84  (
85  const IOdictionary& mdInitialiseDict,
86  IOdictionary& idListDict
87  );
88 
89  //- Disallow default bitwise copy construct
90  potential(const potential&);
91 
92  //- Disallow default bitwise assignment
93  void operator=(const potential&);
94 
95 
96 public:
97 
98  // Constructors
99 
100  //- Construct from mesh reference
101  potential(const polyMesh& mesh);
102 
103  //- Construct from mdInitialiseDict
104  potential
105  (
106  const polyMesh& mesh,
107  const IOdictionary& mdInitialiseDict,
108  IOdictionary& idListDict
109  );
110 
111 
112  //- Destructor
113  ~potential();
114 
115 
116  // Member Functions
117 
118  // Access
119 
120  inline label nIds() const;
121 
122  inline const List<word>& idList() const;
123 
124  inline const List<word>& siteIdList() const;
125 
126  inline scalar potentialEnergyLimit() const;
127 
128  inline label nPairPotentials() const;
129 
130  inline const labelList& removalOrder() const;
131 
132  inline const pairPotentialList& pairPotentials() const;
133 
134  inline const tetherPotentialList& tetherPotentials() const;
135 
136  inline const vector& gravity() const;
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #include "potentialI.H"
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 #endif
151 
152 // ************************************************************************* //
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:53
Foam::potential::operator=
void operator=(const potential &)
Disallow default bitwise assignment.
Foam::potential::gravity_
vector gravity_
Definition: potential.H:73
Foam::pairPotentialList
Definition: pairPotentialList.H:51
Foam::potential::gravity
const vector & gravity() const
Definition: potentialI.H:77
Foam::potential::potentialEnergyLimit_
scalar potentialEnergyLimit_
Definition: potential.H:65
Foam::potential::removalOrder_
labelList removalOrder_
Definition: potential.H:67
Foam::potential::setSiteIdList
void setSiteIdList(const dictionary &moleculePropertiesDict)
Definition: potential.C:30
Foam::potential::pairPotentials
const pairPotentialList & pairPotentials() const
Definition: potentialI.H:64
Foam::potential::siteIdList
const List< word > & siteIdList() const
Definition: potentialI.H:40
Foam::potential::idList_
List< word > idList_
Definition: potential.H:59
polyMesh.H
Foam::potential::nPairPotIds_
label nPairPotIds_
Definition: potential.H:63
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Foam::potential::tetherPotentials
const tetherPotentialList & tetherPotentials() const
Definition: potentialI.H:71
Foam::potential::pairPotentials_
pairPotentialList pairPotentials_
Definition: potential.H:69
Foam::potential::mesh_
const polyMesh & mesh_
Definition: potential.H:57
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::potential::tetherPotentials_
tetherPotentialList tetherPotentials_
Definition: potential.H:71
potentialI.H
pairPotentialList.H
Foam::potential::potential
potential(const potential &)
Disallow default bitwise copy construct.
electrostaticPotential.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::potential
Definition: potential.H:53
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::potential::nIds
label nIds() const
Definition: potentialI.H:28
IOdictionary.H
Foam::potential::readMdInitialiseDict
void readMdInitialiseDict(const IOdictionary &mdInitialiseDict, IOdictionary &idListDict)
Foam::potential::nPairPotentials
label nPairPotentials() const
Definition: potentialI.H:52
Foam::potential::siteIdList_
List< word > siteIdList_
Definition: potential.H:61
Foam::potential::removalOrder
const labelList & removalOrder() const
Definition: potentialI.H:58
Foam::tetherPotentialList
Definition: tetherPotentialList.H:50
Foam::Vector< scalar >
Foam::List< word >
Foam::potential::potentialEnergyLimit
scalar potentialEnergyLimit() const
Definition: potentialI.H:46
Foam::potential::~potential
~potential()
Destructor.
Definition: potential.C:376
Foam::potential::idList
const List< word > & idList() const
Definition: potentialI.H:34
tetherPotentialList.H
Foam::potential::readPotentialDict
void readPotentialDict()