maitlandSmith.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::pairPotentials::maitlandSmith
26 
27 Description
28  Foam::pairPotentials::maitlandSmith
29 
30  From:
31  \verbatim
32  @ARTICLE{MA_Maitland_Smith,
33  author = {{Maitland}, G.~C. and {Smith}, E.~B.},
34  title = {A simplified representation of
35  intermolecular potential energy},
36  journal = {Chemical Physics Letters},
37  year = 1973,
38  month = oct,
39  volume = 22,
40  pages = {443-446},
41  adsurl = {http://adsabs.harvard.edu/abs/1973CPL....22..443M},
42  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
43  }
44  \endverbatim
45 
46  Parameters for other monoatomics from:
47  \verbatim
48  @BOOK{MD_Maitland_Rigby_Smith_Wakeham,
49  AUTHOR = {Geoffrey C. Maitland and Maurice Rigby and
50  E. Brian Smith and William A. Wakeham},
51  TITLE = {Intermolecular Forces: Their Origin and Determination},
52  PUBLISHER = {Oxford University Press},
53  YEAR = {1981}
54  }
55  \endverbatim
56 
57 SourceFiles
58  maitlandSmith.C
59 
60 \*---------------------------------------------------------------------------*/
61 
62 #ifndef maitlandSmith_H
63 #define maitlandSmith_H
64 
65 #include "pairPotential.H"
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 namespace Foam
70 {
71 
72 namespace pairPotentials
73 {
74 
75 /*---------------------------------------------------------------------------*\
76  Class maitlandSmith Declaration
77 \*---------------------------------------------------------------------------*/
78 
79 class maitlandSmith
80 :
81  public pairPotential
82 {
83  // Private data
84 
86 
87  scalar m_;
88  scalar gamma_;
89  scalar rm_;
90  scalar epsilon_;
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("maitlandSmith");
97 
98 
99  // Constructors
100 
101  //- Construct from components
103  (
104  const word& name,
106  );
107 
108 
109  //- Destructor
111  {}
112 
113 
114  // Member Functions
115 
116  scalar unscaledEnergy(const scalar r) const;
117 
118  //- Read dictionary
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace pairPotentials
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
Foam::pairPotentials::maitlandSmith::rm_
scalar rm_
Definition: maitlandSmith.H:88
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::pairPotentials::maitlandSmith::TypeName
TypeName("maitlandSmith")
Runtime type information.
Foam::pairPotentials::maitlandSmith::maitlandSmith
maitlandSmith(const word &name, const dictionary &pairPotentialProperties)
Construct from components.
Definition: maitlandSmith.C:51
Foam::pairPotentials::maitlandSmith::epsilon_
scalar epsilon_
Definition: maitlandSmith.H:89
Foam::pairPotentials::maitlandSmith::unscaledEnergy
scalar unscaledEnergy(const scalar r) const
Definition: maitlandSmith.C:69
Foam::pairPotentials::maitlandSmith::read
bool read(const dictionary &pairPotentialProperties)
Read dictionary.
Definition: maitlandSmith.C:81
Foam::pairPotentials::maitlandSmith::m_
scalar m_
Definition: maitlandSmith.H:86
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::pairPotentials::maitlandSmith::maitlandSmithCoeffs_
dictionary maitlandSmithCoeffs_
Definition: maitlandSmith.H:84
Foam::pairPotential
Definition: pairPotential.H:57
Foam::pairPotentials::maitlandSmith
Foam::pairPotentials::maitlandSmith.
Definition: maitlandSmith.H:78
Foam::pairPotential::pairPotentialProperties
const dictionary & pairPotentialProperties() const
Definition: pairPotential.H:170
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::pairPotentials::maitlandSmith::gamma_
scalar gamma_
Definition: maitlandSmith.H:87
Foam::pairPotentials::maitlandSmith::~maitlandSmith
~maitlandSmith()
Destructor.
Definition: maitlandSmith.H:109
pairPotential.H
Foam::name
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47