functionEvaluation3d.hh

Go to the documentation of this file.
1 
6 #ifndef functionEvauation3d_hh_
7 #define functionEvauation3d_hh_
8 
9 #include "basics/testcase.hh"
10 #include "hp3D/space.hh"
11 
12 namespace test {
13 
20 
21  public:
24 
27 
29  virtual void run();
30 
32 
37  void testValue(hp3D::Space& spc);
38 
43 
49  void testGrad(hp3D::Space& spc);
50 
55  void testGradInt(hp3D::Space& spc, int levelOfRef = 1);
56 
57  private:
58 
60  concepts::Real shapeFct_(const uint i[3], const concepts::Real3d& p) const;
61 
64  concepts::Real3d shapeFct2d_(const uint i[3],
65  const concepts::Real3d& p) const;
66 
70  const concepts::Real3d& p) const;
71 
74  const concepts::Real3d& p) const;
75  };
76 
77 } /* namespace test */
78 
79 #endif //functionEvauation3d_hh_
Tests the evaluation of functions like hp3D::Value or hp3D::Grad.
Base class for tests.
Definition: testcase.hh:92
void testGradInt(hp3D::Space &spc, int levelOfRef=1)
Tests the evaluation of hp2D::Value at the integration points.
concepts::Real shapeFct_(const uint i[3], const concepts::Real3d &p) const
Computes shape function with index polynomial degree i in point p \in [-1,1]^3.
A 3D hp FEM space with continuous, picewise polynomial basis functions.
Definition: space.hh:84
Unit tests.
Definition: testcase.hh:66
concepts::Real3d shapeFctDerivative_(const uint i[3], const concepts::Real3d &p) const
Writes the derivative of the shapefunction in the i-direction in the point p \in [0,...
concepts::Real3d shapeFct2d_(const uint i[3], const concepts::Real3d &p) const
Writes the product of the value shapefunctions in j and k direction in the point p \in [0,...
virtual ~FunctionEvaluation3d()
Destructor.
void testValueInt(hp3D::Space &spc)
Tests the evaluation of hp2D::Value at the integration points.
virtual void run()
Runs the test routines.
void testValue(hp3D::Space &spc)
Tests the evaluation of hp3D::Value at an arbitrary point in an element.
void testGrad(hp3D::Space &spc)
Tests the evaluation of hp3D::Value at an arbitrary point in an element.
concepts::Real3d shapeFctGradient_(const uint i[3], const concepts::Real3d &p) const
Computes shape function gradient on the Cube [0,1]^3 with index i in point p.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
FunctionEvaluation3d()
Default Constructor.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich