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