ESyS-Particle  2.3.4
ETriMeshIP.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
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 
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
ETriMeshIP::getTypeString
virtual std::string getTypeString() const
Definition: ETriMeshIP.h:60
ETriMeshIP::getMeshName
const std::string & getMeshName() const
Definition: ETriMeshIP.h:55
ETriMeshIP
Definition: ETriMeshIP.h:18
ETriMeshIP::~ETriMeshIP
virtual ~ETriMeshIP()
Definition: ETriMeshIP.h:25
ETriMeshIP::ETriMeshIP
ETriMeshIP(const std::string &interactionName, const std::string &meshName, double normalK)
Definition: ETriMeshIP.h:29
ETriMeshIP::m_meshName
std::string m_meshName
Definition: ETriMeshIP.h:69
ETriMeshIP::setName
void setName(const std::string &name)
Definition: ETriMeshIP.h:40
ETriMeshIP::setMeshName
void setMeshName(const std::string &name)
Definition: ETriMeshIP.h:50
ETriMeshIP::ETriMeshIP
ETriMeshIP()
Definition: ETriMeshIP.h:21
ETriMeshIP::k
double k
Definition: ETriMeshIP.h:66
ETriMeshIP::getName
const std::string & getName() const
Definition: ETriMeshIP.h:45
ETriMeshIP::m_name
std::string m_name
Definition: ETriMeshIP.h:68