OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

maitlandSmith.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2008-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::pairPotentials::maitlandSmith
00027 
00028 Description
00029     Foam::pairPotentials::maitlandSmith
00030 
00031     From:
00032     @verbatim
00033         @ARTICLE{MA_Maitland_Smith,
00034         author = {{Maitland}, G.~C. and {Smith}, E.~B.},
00035         title = {A simplified representation of intermolecular potential energy},
00036         journal = {Chemical Physics Letters},
00037         year = 1973,
00038         month = oct,
00039         volume = 22,
00040         pages = {443-446},
00041         adsurl = {http://adsabs.harvard.edu/abs/1973CPL....22..443M},
00042         adsnote = {Provided by the SAO/NASA Astrophysics Data System}
00043         }
00044     @endverbatim
00045 
00046     Parameters for other monoatomics from:
00047     @verbatim
00048         @BOOK{MD_Maitland_Rigby_Smith_Wakeham,
00049         AUTHOR =       {Geoffrey C. Maitland and Maurice Rigby and E. Brian Smith and William A. Wakeham},
00050         TITLE =        {Intermolecular Forces: Their Origin and Determination},
00051         PUBLISHER =    {Oxford University Press},
00052         YEAR =         {1981}
00053         }
00054     @endverbatim
00055 
00056 SourceFiles
00057     maitlandSmith.C
00058 
00059 \*---------------------------------------------------------------------------*/
00060 
00061 #ifndef maitlandSmith_H
00062 #define maitlandSmith_H
00063 
00064 #include "pairPotential.H"
00065 
00066 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00067 
00068 namespace Foam
00069 {
00070 
00071 namespace pairPotentials
00072 {
00073 
00074 /*---------------------------------------------------------------------------*\
00075                        Class maitlandSmith Declaration
00076 \*---------------------------------------------------------------------------*/
00077 
00078 class maitlandSmith
00079 :
00080     public pairPotential
00081 {
00082     // Private data
00083 
00084         dictionary maitlandSmithCoeffs_;
00085 
00086         scalar m_;
00087         scalar gamma_;
00088         scalar rm_;
00089         scalar epsilon_;
00090 
00091 
00092 public:
00093 
00094     //- Runtime type information
00095     TypeName("maitlandSmith");
00096 
00097 
00098     // Constructors
00099 
00100         //- Construct from components
00101         maitlandSmith
00102         (
00103             const word& name,
00104             const dictionary& pairPotentialProperties
00105         );
00106 
00107 
00108     // Destructor
00109 
00110         ~maitlandSmith()
00111         {}
00112 
00113 
00114     // Member Functions
00115 
00116         scalar unscaledEnergy(const scalar r) const;
00117 
00118         //- Read dictionary
00119         bool read(const dictionary& pairPotentialProperties);
00120 };
00121 
00122 
00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00124 
00125 } // End namespace pairPotentials
00126 } // End namespace Foam
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 #endif
00131 
00132 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd