C++ main module for emicrom Package  1.0
EMM_CubicElasticMatter.h
Go to the documentation of this file.
1 #ifndef EMM_CubicElasticMatter_H
2 #define EMM_CubicElasticMatter_H
3 
5 
28 
30  // ATTRIBUTES
31 public:
32 
33 
34 
35 private:
36 
37 
38 
39 
40 
41 
42 protected:
43  // METHODS
44 
45  // CONSTRUCTORS
46 
50 
51 
52 
53  // DESTRUCTORS
54 
55 
58  virtual ~EMM_CubicElasticMatter(void);
59 
60 
61 public:
62  // NEW method
63 
66  inline static SP::EMM_CubicElasticMatter New() {
67  SP::EMM_CubicElasticMatter p(new EMM_CubicElasticMatter(),EMM_CubicElasticMatter::Delete());
68  p->setThis(p);
69  return p;
70  };
71 
75  virtual void copy(const EMM_Matter& mat) {
77  }
78 
79 
80 
81  // SET methods
82 
83 
97  void setElasticConstants(const tReal& lambda,const tReal& mu_a,const tReal& mu_b);
98 
113  void getElasticConstants(tReal& lambda,tReal& mu_a,tReal& mu_b) const;
114 
115 
116 
117 public:
121  virtual tString toString() const;
122 
123 
124 };
125 
126 #endif
EMM_CubicElasticMatter(void)
create
Definition: EMM_CubicElasticMatter.cpp:3
virtual tString toString() const
return the class information into a string
Definition: EMM_CubicElasticMatter.cpp:40
virtual void copy(const EMM_Matter &mat)
copy the matter
Definition: EMM_Matter.cpp:104
SP_OBJECT(EMM_CubicElasticMatter)
DEFINE_SPTR(EMM_CubicElasticMatter)
virtual void copy(const EMM_Matter &mat)
copy the matter
Definition: EMM_CubicElasticMatter.h:75
void getElasticConstants(tReal &lambda, tReal &mu_a, tReal &mu_b) const
get the elastic constants
Definition: EMM_CubicElasticMatter.cpp:31
This class describes a matter for E-MicroM package.
Definition: EMM_Matter.h:34
This class describes an cubic elastic matter for E-MicroM package.
Definition: EMM_CubicElasticMatter.h:27
static SP::EMM_CubicElasticMatter New()
create a material object
Definition: EMM_CubicElasticMatter.h:66
DEFINE_SVPTR(EMM_CubicElasticMatter)
#define tString
Definition: types.h:135
void setElasticConstants(const tReal &lambda, const tReal &mu_a, const tReal &mu_b)
set the elastic constants
Definition: EMM_CubicElasticMatter.cpp:15
This class describes an magnetostrive matter for E-MicroM package.
Definition: EMM_MagnetostrictiveMatter.h:31
#define tReal
Definition: types.h:118
virtual ~EMM_CubicElasticMatter(void)
destroy
Definition: EMM_CubicElasticMatter.cpp:9
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141