ESyS-Particle  4.0.1
ETriMeshIP.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 
14 #ifndef __ETRIMESHIP_H
15 #define __ETRIMESHIP_H
16 
18 {
19 public:
20 
21  ETriMeshIP() : k(0.0), m_name(), m_meshName()
22  {
23  }
24 
25  virtual ~ETriMeshIP()
26  {
27  }
28 
29  ETriMeshIP(
30  const std::string &interactionName,
31  const std::string &meshName,
32  double normalK
33  )
34  : k(normalK),
35  m_name(interactionName),
36  m_meshName(meshName)
37  {
38  }
39 
40  void setName(const std::string &name)
41  {
42  m_name = name;
43  }
44 
45  const std::string &getName() const
46  {
47  return m_name;
48  }
49 
50  void setMeshName(const std::string &name)
51  {
52  m_meshName = name;
53  }
54 
55  const std::string &getMeshName() const
56  {
57  return m_meshName;
58  }
59 
60  virtual std::string getTypeString() const
61  {
62  return "Elastic";
63  }
64 
65 public:
66  double k;
67 private:
68  std::string m_name;
69  std::string m_meshName;
70 };
71 
72 #endif // __ETRIMESHIP_H