testBlending.hh

Go to the documentation of this file.
1 
9 #ifndef testBlending_hh
10 #define testBlending_hh
11 
12 #include "basics/testcase.hh"
13 #include "basics/typedefs.hh"
14 #include "geometry/elementMaps.hh"
15 
16 namespace test {
17  using concepts::Real;
18 
19  // ********************************************************** TestBlending **
20 
26  class TestBlending : public TestCase {
27  public:
28  virtual ~TestBlending() {}
29  virtual void run();
30 
32 
33  void testFourEdges();
39  void testJacobian();
40  void testTwoQuads();
42  private:
44  std::unique_ptr<concepts::MappingEdge2d> edges_[4];
45 
48  const std::string filename) const;
51  const uint n) const;
54  const concepts::Array<Real>& X,
55  const concepts::Array<Real>& Y, const uint n);
56  };
57 
58 } // namespace test
59 
60 #endif // testBlending_hh
void testThreeEdges()
Edge mappings.
Base class for tests.
Definition: testcase.hh:92
void testTwoQuads()
Edge mappings.
void print_(const concepts::MappingQuad2d &map, const std::string filename) const
Prints the element mapping to matlab file.
Unit tests.
Definition: testcase.hh:66
void testAdjEdgesVertex()
Edge mappings.
void testOppositeEdges()
Edge mappings.
void testFourEdges()
Edge mappings.
virtual ~TestBlending()
Definition: testBlending.hh:28
Tests the functionality of blending in quads.
Definition: testBlending.hh:26
A 2D element map for a quadrilateral.
Definition: elementMaps.hh:667
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void print2_(const concepts::MappingQuad2d &map, const uint n) const
Prints the element mapping in matlab format.
void testMap_(const concepts::MappingQuad2d &map, const concepts::Array< Real > &X, const concepts::Array< Real > &Y, const uint n)
Test the mapping.
void testEdgeTwoVertices()
Edge mappings.
std::unique_ptr< concepts::MappingEdge2d > edges_[4]
Edge mappings.
Definition: testBlending.hh:44
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
void testFourVertices()
Edge mappings.
void testJacobian()
Edge mappings.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich