24 #ifndef CSHAPEFUNCTION_FEM_Q4
25 #define CSHAPEFUNCTION_FEM_Q4
34 #include "CshapeFunction_FEM.h"
38 template<
typename T,
typename Timg>
47 this->class_name =
"Shape function : Finite Element Method 4 nodes";
51 virtual void init(CParameterNetCDF &fp)
56 virtual void exec(
const CImg<Timg> &box,
const std::vector<T> &x, CImgList<T> &N)
59 float ratio = box.height()*box.width();
63 N(dim,0) = (box.width()-x[0])*(box.height()-x[1])/ratio;
64 N(dim,1) = x[0]*(box.height()-x[1])/ratio;
65 N(dim,3) = x[0]*x[1]/ratio;
66 N(dim,2) = (box.width()-x[0])*x[1]/ratio;
This class implements Q4P1 shape functions available for 2D cases.
Definition: CshapeFunction_FEM_Q4.h:39
This is the mother class of FEM shape function objets (virtual pure).
Definition: CshapeFunction_FEM.h:40