LifeV
laplacianExactGradient.hpp
Go to the documentation of this file.
1 /*
2  * laplacianExactGradient.hpp
3  *
4  * Created on: Jan 20, 2015
5  * Author: dalsanto
6  */
7 
8 #ifndef _LAPLACIANEXACTGRADIENT_HPP_
9 #define _LAPLACIANEXACTGRADIENT_HPP_
10 
11 #include <lifev/core/LifeV.hpp>
12 
13 
14 namespace LifeV
15 {
16 
18 {
19 public:
21 
22  return_Type operator() ( const VectorSmall<3> spaceCoordinates )
23  {
24 
25  Real x = spaceCoordinates[0];
26  Real y = spaceCoordinates[1];
27  Real z = spaceCoordinates[2];
28 
29  return_Type v;
30 
31  v[0] = M_PI * cos( M_PI * x ) * sin( M_PI * y ) * sin( M_PI * z );
32  v[1] = M_PI * sin( M_PI * x ) * cos( M_PI * y ) * sin( M_PI * z );
33  v[2] = M_PI * sin( M_PI * x ) * sin( M_PI * y ) * cos( M_PI * z );
34 
35  return v;
36  }
37 
41 };
42 
43 } // end namespace LifeV
44 
45 
46 
47 
48 
49 #endif /* _LAPLACIANEXACTGRADIENT_HPP_ */
#define M_PI
Definition: winmath.h:20
void updateInverseJacobian(const UInt &iQuadPt)
double Real
Generic real data.
Definition: LifeV.hpp:175
laplacianExactGradient(const laplacianExactGradient &)
return_Type operator()(const VectorSmall< 3 > spaceCoordinates)