|
|
|
potential.HGo 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::potential 00027 00028 Description 00029 00030 SourceFiles 00031 potentialI.H 00032 potential.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef potential_H 00037 #define potential_H 00038 00039 #include "polyMesh.H" 00040 #include "IOdictionary.H" 00041 #include "Time.H" 00042 #include "pairPotentialList.H" 00043 #include "electrostaticPotential.H" 00044 #include "tetherPotentialList.H" 00045 00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00047 00048 namespace Foam 00049 { 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class potential Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class potential 00056 { 00057 // Private data 00058 00059 const polyMesh& mesh_; 00060 00061 List<word> idList_; 00062 00063 List<word> siteIdList_; 00064 00065 label nPairPotIds_; 00066 00067 scalar potentialEnergyLimit_; 00068 00069 labelList removalOrder_; 00070 00071 pairPotentialList pairPotentials_; 00072 00073 tetherPotentialList tetherPotentials_; 00074 00075 vector gravity_; 00076 00077 00078 // Private Member Functions 00079 00080 void setSiteIdList(const IOdictionary& moleculePropertiesDict); 00081 00082 void readPotentialDict(); 00083 00084 void readMdInitialiseDict 00085 ( 00086 const IOdictionary& mdInitialiseDict, 00087 IOdictionary& idListDict 00088 ); 00089 00090 //- Disallow default bitwise copy construct 00091 potential(const potential&); 00092 00093 //- Disallow default bitwise assignment 00094 void operator=(const potential&); 00095 00096 00097 public: 00098 00099 // Constructors 00100 00101 //- Construct from mesh reference 00102 potential(const polyMesh& mesh); 00103 00104 //- Construct from mdInitialiseDict 00105 potential 00106 ( 00107 const polyMesh& mesh, 00108 const IOdictionary& mdInitialiseDict, 00109 IOdictionary& idListDict 00110 ); 00111 00112 00113 // Destructor 00114 00115 ~potential(); 00116 00117 00118 // Member Functions 00119 00120 // Access 00121 00122 inline label nIds() const; 00123 00124 inline const List<word>& idList() const; 00125 00126 inline const List<word>& siteIdList() const; 00127 00128 inline scalar potentialEnergyLimit() const; 00129 00130 inline label nPairPotentials() const; 00131 00132 inline const labelList& removalOrder() const; 00133 00134 inline const pairPotentialList& pairPotentials() const; 00135 00136 inline const tetherPotentialList& tetherPotentials() const; 00137 00138 inline const vector& gravity() const; 00139 }; 00140 00141 00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00143 00144 } // End namespace Foam 00145 00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00147 00148 #include "potentialI.H" 00149 00150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00151 00152 #endif 00153 00154 // ************************************************************************* // |