19#include "libmesh/libmesh_config.h"
21#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
24#include "libmesh/cell_inf_prism6.h"
25#include "libmesh/edge_edge2.h"
26#include "libmesh/edge_inf_edge2.h"
27#include "libmesh/fe_interface.h"
28#include "libmesh/face_inf_quad4.h"
29#include "libmesh/face_tri3.h"
30#include "libmesh/enum_io_package.h"
31#include "libmesh/enum_order.h"
65 const unsigned int s)
const
67 libmesh_assert_less (s,
n_sides());
76 libmesh_assert_less(s,
n_sides());
77 auto trim = (s > 0) ? 0 : 1;
84 libmesh_assert_less(e,
n_edges());
89 const unsigned int e)
const
91 libmesh_assert_less (e,
n_edges());
108 libmesh_assert_less (i, this->
n_sides());
110 std::unique_ptr<Elem> face;
116 face = std::make_unique<Tri3>();
124 face = std::make_unique<InfQuad4>();
129 libmesh_error_msg(
"Invalid side i = " << i);
133 for (
auto n : face->node_index_range())
136 face->set_interior_parent(
this);
137 face->inherit_data_from(*
this);
144 const unsigned int i)
147 side->set_interior_parent(
this);
148 side->inherit_data_from(*
this);
155 return this->simple_build_edge_ptr<Edge2,InfPrism6>(i);
158 return this->simple_build_edge_ptr<InfEdge2,InfPrism6>(i);
164 const unsigned int i)
166 libmesh_assert_less (i, this->
n_edges());
175 if (!edge.get() || edge->type() !=
EDGE2)
188 if (!edge.get() || edge->type() !=
INFEDGE2)
197 libmesh_error_msg(
"Invalid edge i = " << i);
200 edge->inherit_data_from(*
this);
203 for (
auto n : edge->node_index_range())
211 std::vector<dof_id_type> & conn)
const
234 libmesh_error_msg(
"Unsupported IO package " << iop);
242#ifdef LIBMESH_ENABLE_AMR
249 { 1.0, 0.0, 0.0, 0.0, 0.0, 0.0},
250 { 0.5, 0.5, 0.0, 0.0, 0.0, 0.0},
251 { 0.5, 0.0, 0.5, 0.0, 0.0, 0.0},
252 { 0.0, 0.0, 0.0, 1.0, 0.0, 0.0},
253 { 0.0, 0.0, 0.0, 0.5, 0.5, 0.0},
254 { 0.0, 0.0, 0.0, 0.5, 0.0, 0.5}
260 { 0.5, 0.5, 0.0, 0.0, 0.0, 0.0},
261 { 0.0, 1.0, 0.0, 0.0, 0.0, 0.0},
262 { 0.0, 0.5, 0.5, 0.0, 0.0, 0.0},
263 { 0.0, 0.0, 0.0, 0.5, 0.5, 0.0},
264 { 0.0, 0.0, 0.0, 0.0, 1.0, 0.0},
265 { 0.0, 0.0, 0.0, 0.0, 0.5, 0.5}
271 { 0.5, 0.0, 0.5, 0.0, 0.0, 0.0},
272 { 0.0, 0.5, 0.5, 0.0, 0.0, 0.0},
273 { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0},
274 { 0.0, 0.0, 0.0, 0.5, 0.0, 0.5},
275 { 0.0, 0.0, 0.0, 0.0, 0.5, 0.5},
276 { 0.0, 0.0, 0.0, 0.0, 0.0, 1.0}
282 { 0.5, 0.5, 0.0, 0.0, 0.0, 0.0},
283 { 0.0, 0.5, 0.5, 0.0, 0.0, 0.0},
284 { 0.5, 0.0, 0.5, 0.0, 0.0, 0.0},
285 { 0.0, 0.0, 0.0, 0.5, 0.5, 0.0},
286 { 0.0, 0.0, 0.0, 0.0, 0.5, 0.5},
287 { 0.0, 0.0, 0.0, 0.5, 0.0, 0.5}
298 libmesh_assert_less (perm_num, 3);
300 for (
unsigned int i = 0; i != perm_num; ++i)
326 libmesh_assert_less (s, 4);
The BoundaryInfo class contains information relevant to boundary conditions including storing faces,...
void swap2nodes(unsigned int n1, unsigned int n2)
Swaps two node_ptrs.
void swap3neighbors(unsigned int n1, unsigned int n2, unsigned int n3)
Swaps three neighbor_ptrs, "rotating" them.
Node ** _nodes
Pointers to the nodes we are connected to.
void swap2neighbors(unsigned int n1, unsigned int n2)
Swaps two neighbor_ptrs.
void swap2boundarysides(unsigned short s1, unsigned short s2, BoundaryInfo *boundary_info) const
Swaps two sides in boundary_info, if it is non-null.
void swap3nodes(unsigned int n1, unsigned int n2, unsigned int n3)
Swaps three node_ptrs, "rotating" them.
void swap2boundaryedges(unsigned short e1, unsigned short e2, BoundaryInfo *boundary_info) const
Swaps two edges in boundary_info, if it is non-null.
dof_id_type node_id(const unsigned int i) const
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i) override
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
virtual void connectivity(const unsigned int sc, const IOPackage iop, std::vector< dof_id_type > &conn) const override
static const int num_nodes
Geometric constants for InfPrism6.
ElemType side_type(const unsigned int s) const override final
virtual Order default_order() const override
static const int nodes_per_edge
virtual std::unique_ptr< Elem > build_edge_ptr(const unsigned int i) override
virtual std::vector< unsigned int > nodes_on_edge(const unsigned int e) const override
static const int nodes_per_side
static const unsigned int edge_nodes_map[num_edges][nodes_per_edge]
This maps the node of the edge to element node numbers.
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override
virtual void permute(unsigned int perm_num) override final
Permutes the element (by swapping node and neighbor pointers) according to the specified index.
virtual void flip(BoundaryInfo *) override final
Flips the element (by swapping node and neighbor pointers) to have a mapping Jacobian of opposite sig...
static const Real _embedding_matrix[num_children][num_nodes][num_nodes]
Matrix that computes new nodal locations/solution values from current nodes/solution.
static const unsigned int side_nodes_map[num_sides][nodes_per_side]
This maps the node of the side to element node numbers.
virtual unsigned int n_sub_elem() const override
virtual std::unique_ptr< Elem > side_ptr(const unsigned int i) override final
static const int num_edges
virtual unsigned int n_edges() const override final
static const int num_sides
Geometric constants for all InfPrisms.
virtual unsigned int n_sides() const override final
static const int num_children
The libMesh namespace provides an interface to certain functionality in the library.
IOPackage
libMesh interfaces with several different software packages for the purposes of creating,...
ElemType
Defines an enum for geometric element types.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real