C++ main module for emicrom Package  1.0
EMM_Kd_yz.h
Go to the documentation of this file.
1 #ifndef EMM_Kd_yz_H
2 #define EMM_Kd_yz_H
3 
4 #include "EMM_Kd.h"
5 
6 
22 
23 class EMM_Kd_yz : public EMM_Kd_xy {
24 
25 
27 
28  // ATTRIBUTES
29 
30 private:
31 
32 
33 protected:
34  // METHODS
35 
36  // CONSTRUCTORS
37 
40  EMM_Kd_yz(void) {
41  }
42 
43 
44 
45  // DESTRUCTORS
46 
47 
50  virtual ~EMM_Kd_yz(void) {
51  }
52 
53 
54 private:
55 
56  // CONSTRUCTORS
57 
58 public:
62  inline static SP::EMM_Kd_yz New() {
63  SP::EMM_Kd_yz ret(new EMM_Kd_yz(),
65  ret->setThis(ret);
66  return ret;
67  };
68 
69 
70 
71 public:
72 
73 
74 
75 
76 public:
77  // OTHERS methods
78 
86  virtual void setDistance(const tIndex &dx,const tIndex& dy,const tIndex& dz) {
87  EMM_Kd::setDistance(dz,dy,dx);
88  }
95  virtual void setMeshSize(const tReal& hx,const tReal& hy,const tReal& hz) {
96  EMM_Kd::setMeshSize(hz,hy,hx);
97  }
98 
106  virtual tReal computeFunction(const tUSInt& dim,const tReal x[]) {
107 
108  return analyticIntegration(x[2],x[1],x[0]);
109 
110  }
111 
112 };
113 
114 #endif
EMM_Kd_yz(void)
create the class
Definition: EMM_Kd_yz.h:40
DEFINE_SPTR(EMM_Kd_yz)
virtual void setDistance(const tIndex &dx, const tIndex &dy, const tIndex &dz)
set the distance from both interative cells
Definition: EMM_Kd_yz.h:86
#define tUSInt
Definition: types.h:28
virtual tReal computeFunction(const tUSInt &dim, const tReal x[])
compute the function at the point x of size dim
Definition: EMM_Kd_yz.h:106
virtual void setMeshSize(const tReal &hx, const tReal &hy, const tReal &hz)
set the mesh size
Definition: EMM_Kd_yz.h:95
#define tIndex
Definition: types.h:129
void setDistance(const tIndex d[])
set the distance from both interative cells
Definition: EMM_DistanceFunction.h:114
SP_OBJECT(EMM_Kd_yz)
Definition: EMM_Kd_yz.h:23
virtual ~EMM_Kd_yz(void)
destroy the class
Definition: EMM_Kd_yz.h:50
This class computes the function :
Definition: EMM_Kd_xy.h:35
static SP::EMM_Kd_yz New()
build a new instance of class
Definition: EMM_Kd_yz.h:62
virtual tReal analyticIntegration(const tReal &u, const tReal &v, const tReal &w) const
compute the function with analytic integration
Definition: EMM_Kd_xy.cpp:6
void setMeshSize(const tReal h[])
set the mesh size
Definition: EMM_DistanceFunction.h:155
#define tReal
Definition: types.h:118
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141