Page MenuHomec4science

geometrical_element_igfem.hh
No OneTemporary

File Metadata

Created
Sat, Nov 2, 09:27

geometrical_element_igfem.hh

/**
* @file element_class_igfem.hh
*
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
*
* @brief Specialization for interface-enriched finite elements
*
*
* Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
*/
/* -------------------------------------------------------------------------- */
#include "element_class.hh"
/* -------------------------------------------------------------------------- */
namespace akantu {
/* -------------------------------------------------------------------------- */
template <> class GeometricalElement<_gt_igfem_segment_3> {
static constexpr UInt spatial_dimension{1};
static constexpr UInt nb_nodes_per_element{3};
static constexpr UInt nb_facet_types{1};
static constexpr std::array<UInt, nb_facet_types> nb_facets{{2}};
static constexpr std::array<UInt, nb_facet_types> nb_nodes_per_facet{{1}};
static constexpr std::array<UInt, 2> facet_connectivity_vect{{0, 1}};
};
/* -------------------------------------------------------------------------- */
template <> class GeometricalElement<_gt_igfem_triangle_4> {
static constexpr UInt spatial_dimension{2};
static constexpr UInt nb_nodes_per_element{4};
static constexpr UInt nb_facet_types{2};
static constexpr std::array<UInt, nb_facet_types> nb_facets{{2, 1}};
static constexpr std::array<UInt, nb_facet_types> nb_nodes_per_facet{{2, 3}};
// clang-format off
static constexpr std::array<UInt, 7> facet_connectivity_vect{{
// first type
0, 2,
1, 0,
// second type
1, 2, 3}};
// clang-format on
};
/* -------------------------------------------------------------------------- */
template <> class GeometricalElement<_gt_igfem_triangle_5> {
static constexpr UInt spatial_dimension{2};
static constexpr UInt nb_nodes_per_element{5};
static constexpr UInt nb_facet_types{2};
static constexpr std::array<UInt, nb_facet_types> nb_facets{{1, 2}};
static constexpr std::array<UInt, nb_facet_types> nb_nodes_per_facet{{2, 3}};
// clang-format off
static constexpr std::array<UInt, 8> facet_connectivity_vect{{
// first type
1, 2,
// second type
0, 2, 1,
0, 3, 4}};
// clang-format on
};
/* -------------------------------------------------------------------------- */
} // namespace akantu

Event Timeline