Go to the documentation of this file.
   19 #include "libmesh/side.h" 
   20 #include "libmesh/edge_edge2.h" 
   21 #include "libmesh/face_tri3.h" 
   22 #include "libmesh/enum_io_package.h" 
   23 #include "libmesh/enum_order.h" 
   45 #ifdef LIBMESH_ENABLE_AMR 
  105                            const unsigned int s)
 const 
  107   libmesh_assert_less (s, 
n_sides());
 
  113 std::vector<unsigned>
 
  116   libmesh_assert_less(s, 
n_sides());
 
  128   libmesh_assert_less (i, this->
n_sides());
 
  131     return libmesh_make_unique<Side<Edge2,Tri3>>(
this,i);
 
  135       std::unique_ptr<Elem> edge = libmesh_make_unique<Edge2>();
 
  139       for (
auto n : edge->node_index_range())
 
  140         edge->set_node(n) = this->
node_ptr(Tri3::side_nodes_map[i][n]);
 
  149                            const unsigned int i)
 
  151   this->simple_build_side_ptr<Tri3>(side, i, 
EDGE2);
 
  158                         std::vector<dof_id_type> & conn)
 const 
  185       libmesh_error_msg(
"Unsupported IO package " << iop);
 
  215     theta0=std::acos(( v10*v20)/len_10/len_20),
 
  216     theta1=std::acos((-v10*v21)/len_10/len_21),
 
  220   libmesh_assert_greater (theta0, 0.);
 
  221   libmesh_assert_greater (theta1, 0.);
 
  222   libmesh_assert_greater (theta2, 0.);
 
  224   return std::make_pair(std::min(theta0, std::min(theta1,theta2)),
 
  225                         std::max(theta0, std::max(theta1,theta2)));
 
  239   Real dot00 = v0 * v0;
 
  240   Real dot01 = v0 * v1;
 
  241   Real dot02 = v0 * v2;
 
  242   Real dot11 = v1 * v1;
 
  243   Real dot12 = v1 * v2;
 
  250   Real invDenom = 1 / (dot00 * dot11 - dot01 * dot01);
 
  251   Real u = (dot11 * dot02 - dot01 * dot12) * invDenom;
 
  252   Real v = (dot00 * dot12 - dot01 * dot02) * invDenom;
 
  255   return (u > -tol) && (v > -tol) && (u + v < 1 + tol);
 
  
virtual Real volume() const override
An optimized method for computing the area of a 3-node triangle.
 
static const int nodes_per_side
 
virtual bool is_face(const unsigned int i) const override
 
IOPackage
libMesh interfaces with several different software packages for the purposes of creating,...
 
Defines a Cartesian bounding box by the two corner extremum.
 
static const int num_nodes
Geometric constants for Tri3.
 
The libMesh namespace provides an interface to certain functionality in the library.
 
IterBase * end
Also have a polymorphic pointer to the end object, this prevents iterating past the end.
 
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i, bool proxy=true) override
 
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
 
T triple_product(const TypeVector< T > &a, const TypeVector< T > &b, const TypeVector< T > &c)
 
virtual bool contains_point(const Point &p, Real tol) const override
Specialization for tri3 elements.
 
virtual bool is_edge(const unsigned int i) const override
 
const Point & point(const unsigned int i) const
 
T cross_norm(const TypeVector< T > &b, const TypeVector< T > &c)
Calls cross_norm_sq() and takes the square root of the result.
 
MetaPhysicL::DualNumber< T, D > abs(const MetaPhysicL::DualNumber< T, D > &in)
 
virtual Order default_order() const override
 
A Point defines a location in LIBMESH_DIM dimensional Real space.
 
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const override
 
static const int num_children
 
virtual BoundingBox loose_bounding_box() const
 
virtual bool is_vertex(const unsigned int i) const override
 
static const float _embedding_matrix[num_children][num_nodes][num_nodes]
Matrix that computes new nodal locations/solution values from current nodes/solution.
 
static const int num_sides
 
subdomain_id_type subdomain_id() const
 
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
 
virtual BoundingBox loose_bounding_box() const override
Builds a bounding box out of the nodal positions.
 
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
 
dof_id_type node_id(const unsigned int i) const
 
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
 
virtual unsigned int n_sides() const override final
 
auto norm() const -> decltype(std::norm(T()))
 
const Node * node_ptr(const unsigned int i) const
 
std::pair< Real, Real > min_and_max_angle() const