00001 /* 00002 dmcut2, a library for Monte-Carlo simulations at surfaces 00003 Copyright (C) 2008 Mathias Laurin <mathias_laurin@users.sourceforge.net> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along 00016 with this program; if not, write to the Free Software Foundation, Inc., 00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 #ifndef BRIDGE_HPP 00020 #define BRIDGE_HPP 00021 00022 #include <string> 00023 #include "EnergyContainer.hpp" 00024 #include "Geometry.hpp" 00025 #include "Species.hpp" 00026 00027 namespace Surface { 00028 00039 class Bridge { 00040 public: 00042 typedef std::string Name; 00043 00048 Bridge(const Name& name, 00049 const Interactions::TwoBody::Geometry& two_body1, 00050 const Interactions::TwoBody::Geometry& two_body2): 00051 name_(name), two_body1_(two_body1), two_body2_(two_body2), 00052 interaction_energy_container() {}; 00053 00055 Name name() const 00056 { return name_; } 00057 00059 Interactions::TwoBody::EnergyContainer interaction_energy_container; 00060 00065 double InteractionEnergy(const Surface::Site* const site_ptr1, 00066 const Surface::Site* const site_ptr2) const; 00067 00068 private: 00070 void make_neighbors(const Surface::Site* const site_ptr1, 00071 const Surface::Site* const site_ptr2, 00072 Interactions::TwoBody::Geometry::NeighborContainer& result) const; 00073 00075 Name name_; 00076 00078 Interactions::TwoBody::Geometry two_body1_, two_body2_; 00079 }; 00080 00081 } // namespace Surface 00082 00083 #endif
|
Project's page |
Generated on Mon Nov 17 00:23:05 2008 for dmcut2 by ![]() |