◆ build_quad_mesh()
| void OverlappingTestBase::build_quad_mesh |
( |
unsigned int |
n_refinements = 0 | ) |
|
|
inlineprotected |
Definition at line 249 of file overlapping_coupling_test.C.
References libMesh::Elem::build_with_id(), libMesh::QUAD4, libMesh::Elem::set_node(), libMesh::Elem::subdomain_id(), and libMesh::MeshRefinement::uniformly_refine().
254 _mesh = std::make_unique<ReplicatedMesh>(*TestCommWorld);
256 _mesh->set_mesh_dimension(2);
267 for (
unsigned int n=0; n<4; n++)
299 _mesh->partitioner() = std::make_unique<OverlappingTestPartitioner>();
301 _mesh->prepare_for_use();
303 #ifdef LIBMESH_ENABLE_AMR 304 if (n_refinements > 0)
307 refine.uniformly_refine(n_refinements);
310 CPPUNIT_ASSERT_EQUAL(n_refinements, 0u);
311 #endif // LIBMESH_ENABLE_AMR virtual Node *& set_node(const unsigned int i)
This is the base class from which all geometric element types are derived.
std::unique_ptr< MeshBase > _mesh
Implements (adaptive) mesh refinement algorithms for a MeshBase.
subdomain_id_type subdomain_id() const
A Point defines a location in LIBMESH_DIM dimensional Real space.
◆ clear()
| void OverlappingTestBase::clear |
( |
| ) |
|
|
inlineprotected |
◆ init()
| void OverlappingTestBase::init |
( |
| ) |
|
|
inlineprotected |
Definition at line 314 of file overlapping_coupling_test.C.
References libMesh::System::add_variable(), libMesh::FIRST, and libMesh::LAGRANGE.
316 _es = std::make_unique<EquationSystems>(*_mesh);
319 std::set<subdomain_id_type> sub_one;
322 std::set<subdomain_id_type> sub_two;
Manages consistently variables, degrees of freedom, coefficient vectors, matrices and linear solvers ...
std::unique_ptr< EquationSystems > _es
unsigned int add_variable(std::string_view var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr)
Adds the variable var to the list of variables for this system.
◆ setup_coupling_matrix()
| void OverlappingTestBase::setup_coupling_matrix |
( |
std::unique_ptr< CouplingMatrix > & |
coupling | ) |
|
|
inlineprotected |
Definition at line 340 of file overlapping_coupling_test.C.
References libMesh::System::n_vars(), and libMesh::System::variable_number().
342 System & system =
_es->get_system(
"SimpleSystem");
344 coupling = std::make_unique<CouplingMatrix>(system.
n_vars());
353 (*coupling)(u_var,v_var) =
true;
354 (*coupling)(l_var,v_var) =
true;
355 (*coupling)(l_var,p_var) =
true;
356 (*coupling)(v_var,u_var) =
true;
357 (*coupling)(v_var,l_var) =
true;
unsigned int variable_number(std::string_view var) const
std::unique_ptr< EquationSystems > _es
Manages consistently variables, degrees of freedom, and coefficient vectors.
unsigned int n_vars() const
◆ _es
◆ _mesh
| std::unique_ptr<MeshBase> OverlappingTestBase::_mesh |
|
protected |
The documentation for this class was generated from the following file: