|
libMesh
|
This class is for unit testing dual coefficient and shape function values. More...
Public Member Functions | |
| LIBMESH_CPPUNIT_TEST_SUITE (DualShapeTest) | |
| CPPUNIT_TEST (testEdge2Lagrange) | |
| CPPUNIT_TEST (testQuad8Lagrange) | |
| CPPUNIT_TEST (testTri6Lagrange) | |
| CPPUNIT_TEST (testTri7Lagrange) | |
| CPPUNIT_TEST (testL2Lagrange) | |
| CPPUNIT_TEST_SUITE_END () | |
| void | testEdge2Lagrange () |
| void | testTransformedDual (const ElemType elem_type, const unsigned int n, const Real vertex_over_mid, const FEFamily family=LAGRANGE) |
| Check what the transformed dual basis on QUAD8/TRI6/TRI7 guarantees, none of which the untransformed construction gives: strictly positive weights, reproduction of constants, and biorthogonality against Ntilde = T N rather than N. | |
| void | testQuad8Lagrange () |
| void | testTri6Lagrange () |
| void | testTri7Lagrange () |
| void | testL2Lagrange () |
| void | setUp () |
| void | tearDown () |
Private Attributes | |
| std::unique_ptr< Mesh > | _mesh |
| std::unique_ptr< QGauss > | _qrule |
| std::unique_ptr< FEBase > | _fe |
| Elem * | _elem |
This class is for unit testing dual coefficient and shape function values.
Definition at line 20 of file dual_shape_verification_test.C.
| DualShapeTest::CPPUNIT_TEST | ( | testEdge2Lagrange | ) |
| DualShapeTest::CPPUNIT_TEST | ( | testL2Lagrange | ) |
| DualShapeTest::CPPUNIT_TEST | ( | testQuad8Lagrange | ) |
| DualShapeTest::CPPUNIT_TEST | ( | testTri6Lagrange | ) |
| DualShapeTest::CPPUNIT_TEST | ( | testTri7Lagrange | ) |
| DualShapeTest::CPPUNIT_TEST_SUITE_END | ( | ) |
| DualShapeTest::LIBMESH_CPPUNIT_TEST_SUITE | ( | DualShapeTest | ) |
|
inline |
Definition at line 197 of file dual_shape_verification_test.C.
References _elem, _fe, _mesh, _qrule, libMesh::FEGenericBase< OutputType >::build(), libMesh::MeshTools::Generation::build_line(), libMesh::FEType::default_quadrature_order(), libMesh::EDGE2, libMesh::FIRST, libMesh::LAGRANGE, and TestCommWorld.
|
inline |
Definition at line 215 of file dual_shape_verification_test.C.
|
inline |
Definition at line 39 of file dual_shape_verification_test.C.
References _elem, _fe, _qrule, libMesh::index_range(), libMesh::DenseMatrixBase< T >::m(), libMesh::DenseMatrixBase< T >::n(), libMesh::Real, and libMesh::TOLERANCE.
|
inline |
Definition at line 188 of file dual_shape_verification_test.C.
References libMesh::L2_LAGRANGE, libMesh::QUAD8, libMesh::Real, testTransformedDual(), libMesh::TRI6, and libMesh::TRI7.
|
inline |
Definition at line 167 of file dual_shape_verification_test.C.
References libMesh::QUAD8, libMesh::Real, and testTransformedDual().
|
inline |
Check what the transformed dual basis on QUAD8/TRI6/TRI7 guarantees, none of which the untransformed construction gives: strictly positive weights, reproduction of constants, and biorthogonality against Ntilde = T N rather than N.
vertex_over_mid pins down alpha, and n is the number of SECOND order shape functions on elem_type.
Definition at line 85 of file dual_shape_verification_test.C.
References libMesh::FEGenericBase< OutputType >::build(), libMesh::MeshTools::Generation::build_square(), libMesh::FEType::default_quadrature_order(), libMesh::index_range(), libMesh::make_range(), mesh, libMesh::Elem::n_second_order_adjacent_vertices(), libMesh::Elem::n_vertices(), libMesh::Real, libMesh::SECOND, libMesh::Elem::second_order_adjacent_vertex(), TestCommWorld, and libMesh::TOLERANCE.
Referenced by testL2Lagrange(), testQuad8Lagrange(), testTri6Lagrange(), and testTri7Lagrange().
|
inline |
Definition at line 174 of file dual_shape_verification_test.C.
References libMesh::Real, testTransformedDual(), and libMesh::TRI6.
|
inline |
Definition at line 181 of file dual_shape_verification_test.C.
References libMesh::Real, testTransformedDual(), and libMesh::TRI7.
|
private |
Definition at line 35 of file dual_shape_verification_test.C.
Referenced by setUp(), and testEdge2Lagrange().
|
private |
Definition at line 34 of file dual_shape_verification_test.C.
Referenced by setUp(), and testEdge2Lagrange().
|
private |
Definition at line 32 of file dual_shape_verification_test.C.
Referenced by setUp().
|
private |
Definition at line 33 of file dual_shape_verification_test.C.
Referenced by setUp(), and testEdge2Lagrange().