|
libMesh
|
Public Member Functions | |
| LIBMESH_CPPUNIT_TEST_SUITE (DirichletConstraintValuesTest) | |
| CPPUNIT_TEST (testUpdateMatchesRebuild) | |
| CPPUNIT_TEST (testSplineConstraintRows) | |
| CPPUNIT_TEST_SUITE_END () | |
Private Member Functions | |
| void | testUpdateMatchesRebuild () |
| void | testSplineConstraintRows () |
| Checks that System::reinit_dirichlet_constraint_values() gives exactly the result of System::reinit_constraints() on a mesh with spline constraint rows. | |
| void | checkUpdate (const unsigned int n) |
| Checks that System::reinit_dirichlet_constraint_values() gives exactly the result of System::reinit_constraints(). | |
Definition at line 115 of file dirichlet_constraint_values_test.C.
|
inlineprivate |
Checks that System::reinit_dirichlet_constraint_values() gives exactly the result of System::reinit_constraints().
The mesh is an n x n grid of QUAD9 elements with hanging nodes and a periodic boundary. The periodic partners meet overlapping time-dependent Dirichlet boundaries.
Definition at line 210 of file dirichlet_constraint_values_test.C.
References libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), libMesh::MeshBase::allow_remote_element_removal(), bottom_id, libMesh::MeshTools::Generation::build_square(), libMesh::HIERARCHIC, libMesh::EquationSystems::init(), libMesh::LAGRANGE, left_id, libMesh::libmesh_ignore(), mesh, libMesh::PeriodicBoundaryBase::myboundary, libMesh::PeriodicBoundaryBase::pairedboundary, libMesh::MeshBase::prepare_for_use(), libMesh::QUAD9, libMesh::Real, libMesh::Elem::REFINE, libMesh::MeshRefinement::refine_elements(), right_id, libMesh::SECOND, TestCommWorld, top_id, and value.
Referenced by testUpdateMatchesRebuild().
| DirichletConstraintValuesTest::CPPUNIT_TEST | ( | testSplineConstraintRows | ) |
| DirichletConstraintValuesTest::CPPUNIT_TEST | ( | testUpdateMatchesRebuild | ) |
| DirichletConstraintValuesTest::CPPUNIT_TEST_SUITE_END | ( | ) |
| DirichletConstraintValuesTest::LIBMESH_CPPUNIT_TEST_SUITE | ( | DirichletConstraintValuesTest | ) |
|
inlineprivate |
Checks that System::reinit_dirichlet_constraint_values() gives exactly the result of System::reinit_constraints() on a mesh with spline constraint rows.
The mesh is a line of 10 EDGE2 elements. The constraint rows tie its nodes to 6 spline nodes. The Dirichlet boundary is on a constrained node. Thus the processing of the constraint rows projects the Dirichlet value onto the spline nodes.
Definition at line 147 of file dirichlet_constraint_values_test.C.
References libMesh::EquationSystems::add_system(), libMesh::System::add_variable(), libMesh::MeshBase::allow_renumbering(), libMesh::SparseMatrix< T >::build(), libMesh::MeshTools::Generation::build_line(), libMesh::ParallelObject::comm(), libMesh::MeshBase::copy_constraint_rows(), libMesh::EDGE2, libMesh::FIRST, libMesh::EquationSystems::init(), libMesh::make_range(), mesh, libMesh::MeshBase::prepare_for_use(), libMesh::Parallel::Communicator::rank(), libMesh::Real, and TestCommWorld.
|
inlineprivate |
Definition at line 132 of file dirichlet_constraint_values_test.C.
References checkUpdate().