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 00014 #ifndef __ETRIMESHIP_H 00015 #define __ETRIMESHIP_H 00016 00017 class ETriMeshIP 00018 { 00019 public: 00020 00021 ETriMeshIP() : k(0.0), m_name(), m_meshName() 00022 { 00023 } 00024 00025 virtual ~ETriMeshIP() 00026 { 00027 } 00028 00029 ETriMeshIP( 00030 const std::string &interactionName, 00031 const std::string &meshName, 00032 double normalK 00033 ) 00034 : k(normalK), 00035 m_name(interactionName), 00036 m_meshName(meshName) 00037 { 00038 } 00039 00040 void setName(const std::string &name) 00041 { 00042 m_name = name; 00043 } 00044 00045 const std::string &getName() const 00046 { 00047 return m_name; 00048 } 00049 00050 void setMeshName(const std::string &name) 00051 { 00052 m_meshName = name; 00053 } 00054 00055 const std::string &getMeshName() const 00056 { 00057 return m_meshName; 00058 } 00059 00060 virtual std::string getTypeString() const 00061 { 00062 return "Elastic"; 00063 } 00064 00065 public: 00066 double k; 00067 private: 00068 std::string m_name; 00069 std::string m_meshName; 00070 }; 00071 00072 #endif // __ETRIMESHIP_H