27 mesh = std::make_unique<Mesh>(*TestCommWorld);
29 es = std::make_unique<EquationSystems>(*mesh);
42 Elem *elem =
mesh->query_elem_ptr(0);
89 c = std::make_unique<FEMContext>(*sys);
90 s = std::make_unique<FEMContext>(*sys);
93 c->get_element_fe(0)->get_phi();
94 c->get_element_fe(0)->get_dphi();
95 #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES 96 c->get_element_fe(0)->get_d2phi();
98 c->pre_fe_reinit(*
sys, elem);
101 s->get_side_fe(0)->get_normals();
102 s->pre_fe_reinit(*
sys, elem);
dof_id_type dof_number(const unsigned int s, const unsigned int var, const unsigned int comp) const
libMesh::Parallel::Communicator * TestCommWorld
This is the base class from which all geometric element types are derived.
processor_id_type rank() const
const Node & node_ref(const unsigned int i) const
Manages consistently variables, degrees of freedom, and coefficient vectors.
std::unique_ptr< EquationSystems > es
std::unique_ptr< NumericVector< Number > > solution
Data structure to hold solution values.
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.
virtual void close()=0
Calls the NumericVector's internal assembly routines, ensuring that the values are consistent across ...
std::unique_ptr< UnstructuredMesh > mesh
virtual void update()
Update the local values to reflect the solution on neighboring processors.
std::unique_ptr< FEMContext > s
std::unique_ptr< FEMContext > c
virtual void set(const numeric_index_type i, const T value)=0
Sets v(i) = value.
processor_id_type processor_id() const