potentialI.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) 2011 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 \*---------------------------------------------------------------------------*/
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
30 inline Foam::label Foam::potential::nIds() const
31 {
32  return idList_.size();
33 }
34 
35 
37 {
38  return idList_;
39 }
40 
41 
43 {
44  return siteIdList_;
45 }
46 
47 
48 inline Foam::scalar Foam::potential::potentialEnergyLimit() const
49 {
50  return potentialEnergyLimit_;
51 }
52 
53 
54 inline Foam::label Foam::potential::nPairPotentials() const
55 {
56  return pairPotentials_.size();
57 }
58 
59 
61 {
62  return removalOrder_;
63 }
64 
65 
67 {
68  return pairPotentials_;
69 }
70 
71 
74 {
75  return tetherPotentials_;
76 }
77 
78 
79 inline const Foam::vector& Foam::potential::gravity() const
80 {
81  return gravity_;
82 }
83 
84 
85 // ************************************************************************* //
void size(const label n)
Older name for setAddressableSize.
Definition: UList.H:116
scalar potentialEnergyLimit() const
Definition: potentialI.H:41
label nIds() const
Definition: potentialI.H:23
const tetherPotentialList & tetherPotentials() const
Definition: potentialI.H:66
const pairPotentialList & pairPotentials() const
Definition: potentialI.H:59
const List< word > & idList() const
Definition: potentialI.H:29
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
label nPairPotentials() const
Definition: potentialI.H:47
const labelList & removalOrder() const
Definition: potentialI.H:53
const vector & gravity() const
Definition: potentialI.H:72
const List< word > & siteIdList() const
Definition: potentialI.H:35