GRINS-0.8.0
|
Private Member Functions | |
libMesh::Real | calc_theta (libMesh::Point &start, libMesh::Point end) |
GRINS::SharedPtr< libMesh::UnstructuredMesh > | build_mesh (const GetPot &input) |
GRINS::SharedPtr< libMesh::UnstructuredMesh > | build_quad4_elem () |
Build a single square QUAD4. More... | |
GRINS::SharedPtr< libMesh::UnstructuredMesh > | build_quad9_elem () |
Build a single square QUAD9. More... | |
void | test_single_elem (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
Runs the test on single square QUADs of unit length and width. More... | |
void | test_through_vertex (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
void | test_near_vertex (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
void | test_large_mesh (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
Refine specific elements on a large mesh. More... | |
void | test_multiple_refinements (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
Refine the mesh 3 times. More... | |
void | test_coarsen (GRINS::SharedPtr< libMesh::UnstructuredMesh > mesh) |
Test coarsening specific elements on a large mesh. More... | |
void | test_deformed_elem (GRINS::SharedPtr< libMesh::UnstructuredMesh > &mesh, libMesh::Point &origin, libMesh::Real theta, std::vector< unsigned int > &children_in_rayfire, std::vector< unsigned int > &children_not_in_rayfire) |
Definition at line 57 of file rayfireAMR_test.C.
|
inlineprivate |
Definition at line 503 of file rayfireAMR_test.C.
References GRINS::MeshBuilder::build(), and TestCommWorld.
Referenced by coarsen_elements(), init_on_refined_mesh(), large_2D_mesh(), mixed_type_mesh(), and refine_elem_not_on_rayfire().
|
inlineprivate |
Build a single square QUAD4.
Definition at line 510 of file rayfireAMR_test.C.
References TestCommWorld.
Referenced by multiple_refinements(), near_vertex_postrefinement(), refine_and_coarsen(), single_elems(), start_with_refined_mesh(), and through_vertex_postrefinment().
|
inlineprivate |
Build a single square QUAD9.
Definition at line 531 of file rayfireAMR_test.C.
References TestCommWorld.
Referenced by multiple_refinements(), near_vertex_postrefinement(), single_elems(), and through_vertex_postrefinment().
|
inlineprivate |
Definition at line 498 of file rayfireAMR_test.C.
Referenced by mixed_type_mesh(), refine_and_coarsen(), refine_elem_not_on_rayfire(), start_with_refined_mesh(), test_coarsen(), test_large_mesh(), test_multiple_refinements(), test_near_vertex(), test_single_elem(), and test_through_vertex().
|
inline |
Test of the coarsening functionality.
Definition at line 166 of file rayfireAMR_test.C.
References build_mesh(), and test_coarsen().
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | single_elems | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | through_vertex_postrefinment | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | near_vertex_postrefinement | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | large_2D_mesh | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | refine_elem_not_on_rayfire | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | multiple_refinements | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | coarsen_elements | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | refine_and_coarsen | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | mixed_type_mesh | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | start_with_refined_mesh | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | refined_above_unrefined | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | refine_deformed_elem | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | refine_deformed_elem_near_tolerance | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST | ( | init_on_refined_mesh | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST_SUITE | ( | RayfireTestAMR | ) |
GRINSTesting::RayfireTestAMR::CPPUNIT_TEST_SUITE_END | ( | ) |
|
inline |
Call init() on an already refined mesh
Mimics a run from restart
Definition at line 463 of file rayfireAMR_test.C.
References build_mesh().
|
inline |
A 10x10 mesh with selectively refined elements.
Definition at line 112 of file rayfireAMR_test.C.
References build_mesh(), and test_large_mesh().
|
inline |
Mesh contains 2 QUAD4 and 2 TRI3.
Definition at line 217 of file rayfireAMR_test.C.
References build_mesh(), and calc_theta().
|
inline |
Test for multiple successive refinements.
Definition at line 156 of file rayfireAMR_test.C.
References build_quad4_elem(), build_quad9_elem(), and test_multiple_refinements().
|
inline |
After refinement, the rayfire will travel very near (but not through) a vertex.
Definition at line 102 of file rayfireAMR_test.C.
References build_quad4_elem(), build_quad9_elem(), and test_near_vertex().
|
inline |
Refine and coarsen before calling reinit()
Definition at line 180 of file rayfireAMR_test.C.
References build_quad4_elem(), and calc_theta().
|
inline |
QUAD4 elem is deformed, rayfire goes within libMesh::TOLERANCE central node.
Definition at line 385 of file rayfireAMR_test.C.
References test_deformed_elem(), and TestCommWorld.
|
inline |
QUAD4 elem is slightly deformed, rayfire starts and ends very neay boundary of refined children.
Based on an element from a larger mesh, hence the seemingly arbitrary coordinates
Definition at line 424 of file rayfireAMR_test.C.
References test_deformed_elem(), and TestCommWorld.
|
inline |
Make sure refined elements not on the rayfire do not get added.
Definition at line 126 of file rayfireAMR_test.C.
References build_mesh(), and calc_theta().
|
inline |
2 QUAD4 elems, one is refined, one if not, rayfire travels boundary between them
Definition at line 334 of file rayfireAMR_test.C.
References TestCommWorld.
|
inline |
Refine a single element.
Definition at line 82 of file rayfireAMR_test.C.
References build_quad4_elem(), build_quad9_elem(), and test_single_elem().
|
inline |
Mesh given to init() is already refined.
Definition at line 285 of file rayfireAMR_test.C.
References build_quad4_elem(), and calc_theta().
|
inlineprivate |
Test coarsening specific elements on a large mesh.
Definition at line 778 of file rayfireAMR_test.C.
References calc_theta().
Referenced by coarsen_elements().
|
inlineprivate |
Definition at line 820 of file rayfireAMR_test.C.
Referenced by refine_deformed_elem(), and refine_deformed_elem_near_tolerance().
|
inlineprivate |
Refine specific elements on a large mesh.
Definition at line 655 of file rayfireAMR_test.C.
References calc_theta().
Referenced by large_2D_mesh().
|
inlineprivate |
Refine the mesh 3 times.
Definition at line 747 of file rayfireAMR_test.C.
References calc_theta().
Referenced by multiple_refinements().
|
inlineprivate |
Definition at line 621 of file rayfireAMR_test.C.
References calc_theta().
Referenced by near_vertex_postrefinement().
|
inlineprivate |
Runs the test on single square QUADs of unit length and width.
Definition at line 557 of file rayfireAMR_test.C.
References calc_theta().
Referenced by single_elems().
|
inlineprivate |
Definition at line 590 of file rayfireAMR_test.C.
References calc_theta().
Referenced by through_vertex_postrefinment().
|
inline |
After refinement, the rayfire will travel through a vertex.
Definition at line 92 of file rayfireAMR_test.C.
References build_quad4_elem(), build_quad9_elem(), and test_through_vertex().