C++ main module for emicrom Package  1.0
EMM_Kd_yy.h
Go to the documentation of this file.
1 #ifndef EMM_Kd_yy_H
2 #define EMM_Kd_yy_H
3 
4 #include "EMM_Kd.h"
5 
6 
24 
25 class EMM_Kd_yy : public EMM_Kd_xx {
26 
27 
29 
30  // ATTRIBUTES
31 
32 private:
33 
34 
35 protected:
36  // METHODS
37 
38  // CONSTRUCTORS
39 
42  EMM_Kd_yy(void) {
43  }
44 
45 
46 
47  // DESTRUCTORS
48 
49 
52  virtual ~EMM_Kd_yy(void) {
53  }
54 
55 
56 private:
57 
58  // CONSTRUCTORS
59 
60 public:
64  inline static SP::EMM_Kd_yy New() {
65  SP::EMM_Kd_yy ret(new EMM_Kd_yy(),
67  ret->setThis(ret);
68  return ret;
69  };
70 
71 
72 
73 public:
74 
75 
76 
77 
78 public:
79  // OTHERS methods
80 
88  virtual void setDistance(const tIndex &dx,const tIndex& dy,const tIndex& dz) {
89  EMM_Kd::setDistance(dy,dx,dz);
90  }
97  virtual void setMeshSize(const tReal& hx,const tReal& hy,const tReal& hz) {
98  EMM_Kd::setMeshSize(hy,hx,hz);
99  }
100 
101 
109  virtual tReal computeFunction(const tUSInt& dim,const tReal x[]) {
110 
111  return analyticIntegration(x[1],x[0],x[2]);
112 
113 
114  }
115 
116 };
117 
118 #endif
This class computes the function:
Definition: EMM_Kd_xx.h:43
virtual tReal computeFunction(const tUSInt &dim, const tReal x[])
compute the function at the point x of size dim
Definition: EMM_Kd_yy.h:109
virtual void setDistance(const tIndex &dx, const tIndex &dy, const tIndex &dz)
set the distance from both interative cells
Definition: EMM_Kd_yy.h:88
#define tUSInt
Definition: types.h:28
static SP::EMM_Kd_yy New()
build a new instance of class
Definition: EMM_Kd_yy.h:64
DEFINE_SPTR(EMM_Kd_yy)
virtual tReal analyticIntegration(const tReal &u, const tReal &v, const tReal &w) const
compute the function with analytic integration
Definition: EMM_Kd_xx.cpp:7
EMM_Kd_yy(void)
create the class
Definition: EMM_Kd_yy.h:42
#define tIndex
Definition: types.h:129
virtual ~EMM_Kd_yy(void)
destroy the class
Definition: EMM_Kd_yy.h:52
void setDistance(const tIndex d[])
set the distance from both interative cells
Definition: EMM_DistanceFunction.h:114
virtual void setMeshSize(const tReal &hx, const tReal &hy, const tReal &hz)
set the mesh size
Definition: EMM_Kd_yy.h:97
This class computes the function.
Definition: EMM_Kd_yy.h:25
SP_OBJECT(EMM_Kd_yy)
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