34 #ifndef GranOO_SPH_Kernel_hpp
35 #define GranOO_SPH_Kernel_hpp
60 const double r = d.
norm();
62 return (315./ (64*M_PI*
pow(h,9.)) ) *
pow( (h*h) - (r*r), 3.);
69 double Norm = d.
norm();
72 return -945*d*
pow((h*h-
pow(Norm,2)),2)/(32*M_PI*
pow(h,9));
79 double Norm = d.
norm();
81 return -945*(h*h-
pow(Norm,2))*(3*h*h-7*
pow(Norm,2))/(32*M_PI*
pow(h,9));
88 const double r = d.
norm();
90 return (-45. / (M_PI*
pow(h,6.))) * (d/r) *
pow(h-r,2.);
99 return (45. / (M_PI*
pow(h,6)) ) * (h -r);
Definition: Vector.hpp:75
Definition: Common.hpp:198
T pow(const T v0, const T v1)
Definition: Exprtk.hpp:1491
Definition: Kernel.hpp:48
static double lk_visc(const double &h, const Geom::Vector &d)
Definition: Kernel.hpp:96
static Geom::Vector gk_pres(const double &h, const Geom::Vector &d)
Definition: Kernel.hpp:87
static double lk_def(const double &h, const Geom::Vector &d)
Definition: Kernel.hpp:78
static Geom::Vector gk_def(const double &h, const Geom::Vector &d)
Definition: Kernel.hpp:68
static double k_def(const double &h, const Geom::Vector &d)
Definition: Kernel.hpp:59