bilinearFormTest.hh

Go to the documentation of this file.
1 
9 #ifndef hp2DedgeBilinearformTest_hh
10 #define hp2DedgeBilinearformTest_hh
11 
12 #include "basics/testcase.hh"
13 #include "basics/typedefs.hh"
15 #include "formula/boundary.hh"
16 #include "hp2Dedge/space.hh"
17 
18 using concepts::Real;
19 
20 namespace hp2D {
21  class Space;
22 }
23 
24 namespace test {
25 
26  // ****************************************************** BilinearFormTest **
27 
32  class BilinearFormTest : public TestCase {
33  public:
34  virtual ~BilinearFormTest() {}
35  virtual void run();
36 
38 
39 
42  void testRotRotp0();
46  void testRotRotp1();
56  private:
58  template<class F, class G>
60  G& desiredMatrix);
61 
63  void setSpace_(concepts::Mesh2& msh, uint l = 0, uint p = 1);
65  std::unique_ptr<hp2Dedge::Space> spc_;
66  };
67 
68 } // namespace test
69 
70 #endif // hp2DedgeBilinearformTest_hh
void testRotRotp0()
Tests the integral values of the rot-rot bilinearform for lowest order shape functions.
Base class for tests.
Definition: testcase.hh:92
std::unique_ptr< hp2Dedge::Space > spc_
Space.
2D hp-FEM for H1-conforming elements.
Unit tests.
Definition: testcase.hh:66
Abstract function class to evaluate a bilinear form.
Definition: bilinearForm.hh:33
void testRotRotCylp0()
Tests the integral values of the rot-rot bilinearform for lowest order shape functions and measure yd...
An abstract class for 2D meshes.
Definition: mesh.hh:103
Tests the bilinear forms.
void testRotRotCylp1()
Tests the integral values of the rot-rot bilinearform for shape functions with p = 1 and measure ydxd...
void testBilinearForm_(concepts::BilinearForm< F, Real > &bform, G &desiredMatrix)
Creates matrix and compare it with desired matrix.
void testRotRotp1()
Tests the integral values of the rot-rot bilinearform for shape functions with p = 1.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void setSpace_(concepts::Mesh2 &msh, uint l=0, uint p=1)
Builds the space.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich