Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / lagrangian / molecularDynamics / potential / pairPotential / derived / maitlandSmith / maitlandSmith.H
blobc0107b6bf9c02c54453b5e048d07ffcb0de56a4c
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::pairPotentials::maitlandSmith
27 Description
28     Foam::pairPotentials::maitlandSmith
30     From:
31     @verbatim
32         @ARTICLE{MA_Maitland_Smith,
33         author = {{Maitland}, G.~C. and {Smith}, E.~B.},
34         title = {A simplified representation of intermolecular potential energy},
35         journal = {Chemical Physics Letters},
36         year = 1973,
37         month = oct,
38         volume = 22,
39         pages = {443-446},
40         adsurl = {http://adsabs.harvard.edu/abs/1973CPL....22..443M},
41         adsnote = {Provided by the SAO/NASA Astrophysics Data System}
42         }
43     @endverbatim
45     Parameters for other monoatomics from:
46     @verbatim
47         @BOOK{MD_Maitland_Rigby_Smith_Wakeham,
48         AUTHOR =       {Geoffrey C. Maitland and Maurice Rigby and E. Brian Smith and William A. Wakeham},
49         TITLE =        {Intermolecular Forces: Their Origin and Determination},
50         PUBLISHER =    {Oxford University Press},
51         YEAR =         {1981}
52         }
53     @endverbatim
55 SourceFiles
56     maitlandSmith.C
58 \*---------------------------------------------------------------------------*/
60 #ifndef maitlandSmith_H
61 #define maitlandSmith_H
63 #include "pairPotential.H"
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 namespace Foam
70 namespace pairPotentials
73 /*---------------------------------------------------------------------------*\
74                        Class maitlandSmith Declaration
75 \*---------------------------------------------------------------------------*/
77 class maitlandSmith
79     public pairPotential
81     // Private data
83         dictionary maitlandSmithCoeffs_;
85         scalar m_;
86         scalar gamma_;
87         scalar rm_;
88         scalar epsilon_;
91 public:
93     //- Runtime type information
94     TypeName("maitlandSmith");
97     // Constructors
99         //- Construct from components
100         maitlandSmith
101         (
102             const word& name,
103             const dictionary& pairPotentialProperties
104         );
107     // Destructor
109         ~maitlandSmith()
110         {}
113     // Member Functions
115         scalar unscaledEnergy(const scalar r) const;
117         //- Read dictionary
118         bool read(const dictionary& pairPotentialProperties);
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace pairPotentials
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 #endif
131 // ************************************************************************* //