ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef __BMESH2DIP_H 00014 #define __BMESH2DIP_H 00015 00016 class BMesh2DIP 00017 { 00018 public: 00019 double k; 00020 double brk; 00021 00022 BMesh2DIP() : k(0.0), brk(0.0), m_name(), m_meshName() 00023 { 00024 } 00025 00026 virtual ~BMesh2DIP() 00027 { 00028 } 00029 00030 BMesh2DIP( 00031 const std::string& interactionName, 00032 const std::string& meshName, 00033 double normalK, 00034 double breakDistance 00035 ) : 00036 k(normalK), 00037 brk(breakDistance), 00038 m_name(interactionName), 00039 m_meshName(meshName) 00040 { 00041 } 00042 00043 void setMeshName(const std::string &meshName) 00044 { 00045 m_meshName = meshName; 00046 } 00047 00048 const std::string &getMeshName() const 00049 { 00050 return m_meshName; 00051 } 00052 00053 void setName(const std::string &name) 00054 { 00055 m_name = name; 00056 } 00057 00058 const std::string &getName() const 00059 { 00060 return m_name; 00061 } 00062 00063 virtual std::string getTypeString() const 00064 { 00065 return "Bonded"; 00066 } 00067 00068 private: 00069 std::string m_name; 00070 std::string m_meshName; 00071 }; 00072 00073 00074 #endif //__BMESH2DIP_H