36 void clough_nodal_soln(
const Elem * elem,
38 const std::vector<Number> & elem_soln,
39 std::vector<Number> & nodal_soln,
42 const unsigned int n_nodes = elem->n_nodes();
44 const ElemType elem_type = elem->type();
48 const Order totalorder =
static_cast<Order>(order + elem->p_level());
51 FEType fe_type(totalorder,
CLOUGH);
61 const unsigned int n_sf =
65 std::vector<Point> refspace_nodes;
67 libmesh_assert_equal_to (refspace_nodes.size(),
n_nodes);
69 for (
unsigned int n=0; n<
n_nodes; n++)
71 libmesh_assert_equal_to (elem_soln.size(), n_sf);
77 for (
unsigned int i=0; i<n_sf; i++)
78 nodal_soln[n] += elem_soln[i] *
87 libmesh_error_msg(
"ERROR: Invalid total order " << totalorder);
135 unsigned int clough_n_dofs_at_node(
const ElemType t,
137 const unsigned int n)
162 libmesh_error_msg(
"ERROR: Invalid node ID " << n <<
" selected for TRI6!");
191 libmesh_error_msg(
"ERROR: Invalid node ID " << n <<
" selected for TRI6!");
207 unsigned int clough_n_dofs_per_elem(
const ElemType t,
const Order o)
244 const std::vector<Number> & elem_soln,
245 std::vector<Number> & nodal_soln)
246 { clough_nodal_soln(elem, order, elem_soln, nodal_soln, 0); }
251 const std::vector<Number> & elem_soln,
252 std::vector<Number> & nodal_soln)
253 { clough_nodal_soln(elem, order, elem_soln, nodal_soln, 1); }
258 const std::vector<Number> & elem_soln,
259 std::vector<Number> & nodal_soln)
260 { clough_nodal_soln(elem, order, elem_soln, nodal_soln, 2); }
265 const std::vector<Number> & elem_soln,
266 std::vector<Number> & nodal_soln)
267 { clough_nodal_soln(elem, order, elem_soln, nodal_soln, 3); }
301 #ifdef LIBMESH_ENABLE_AMR 306 const unsigned int variable_number,
308 { compute_proj_constraints(constraints, dof_map, variable_number, elem); }
313 const unsigned int variable_number,
315 { compute_proj_constraints(constraints, dof_map, variable_number, elem); }
316 #endif // #ifdef LIBMESH_ENABLE_AMR static unsigned int n_dofs(const ElemType t, const Order o)
The base class for all geometric element types.
static unsigned int n_dofs_at_node(const ElemType t, const Order o, const unsigned int n)
virtual bool shapes_need_reinit() const override
virtual bool is_hierarchic() const override
Manages the degrees of freedom (DOFs) in a simulation.
const dof_id_type n_nodes
static unsigned int n_shape_functions(const unsigned int dim, const FEType &fe_t, const ElemType t)
static Real shape(const unsigned int dim, const FEType &fe_t, const ElemType t, const unsigned int i, const Point &p)
static void get_refspace_nodes(const ElemType t, std::vector< Point > &nodes)
static unsigned int n_dofs_per_elem(const ElemType t, const Order o)
virtual FEContinuity get_continuity() const override
std::string enum_to_string(const T e)
static void compute_constraints(DofConstraints &constraints, DofMap &dof_map, const unsigned int variable_number, const Elem *elem)
static void nodal_soln(const Elem *elem, const Order o, const std::vector< Number > &elem_soln, std::vector< Number > &nodal_soln)