Skip to content
Snippets Groups Projects
Commit a8dd587e authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

add third derivatives in Element

parent abfb573e
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,13 @@ void MElement::getHessShapeFunctions(double u, double v, double w, double s[][3] ...@@ -142,6 +142,13 @@ void MElement::getHessShapeFunctions(double u, double v, double w, double s[][3]
else Msg::Error("Function space not implemented for this type of element"); else Msg::Error("Function space not implemented for this type of element");
} }
void MElement::getThirdDerivativeShapeFunctions(double u, double v, double w, double s[][3][3][3],
int o){
const polynomialBasis* fs = getFunctionSpace(o);
if(fs) fs->dddf(u, v, w, s);
else Msg::Error("Function space not implemented for this type of element");
};
SPoint3 MElement::barycenter() SPoint3 MElement::barycenter()
{ {
SPoint3 p(0., 0., 0.); SPoint3 p(0., 0., 0.);
......
...@@ -235,6 +235,8 @@ class MElement ...@@ -235,6 +235,8 @@ class MElement
int order=-1); int order=-1);
virtual void getHessShapeFunctions(double u, double v, double w, double s[][3][3], virtual void getHessShapeFunctions(double u, double v, double w, double s[][3][3],
int order=-1); int order=-1);
virtual void getThirdDerivativeShapeFunctions(double u, double v, double w, double s[][3][3][3],
int order=-1);
// return the Jacobian of the element evaluated at point (u,v,w) in // return the Jacobian of the element evaluated at point (u,v,w) in
// parametric coordinates // parametric coordinates
double getJacobian(const fullMatrix<double> &gsf, double jac[3][3]); double getJacobian(const fullMatrix<double> &gsf, double jac[3][3]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment