Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77556414
cohesive_element.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 15, 04:08
Size
3 KB
Mime Type
text/x-c++
Expires
Sat, Aug 17, 04:08 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19844598
Attached To
rAKA akantu
cohesive_element.hh
View Options
/**
* @file cohesive_element.hh
*
* @author Mauro Corrado <mauro.corrado@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
* @author Marco Vocialta <marco.vocialta@epfl.ch>
*
* @date creation: Fri Jun 18 2010
* @date last modification: Wed Oct 11 2017
*
* @brief Generates the cohesive element structres (defined in
* element_class.hh)
*
*
* Copyright (©) 2010-2018 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "element_class.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_COHESIVE_ELEMENT_HH_
#define AKANTU_COHESIVE_ELEMENT_HH_
namespace akantu {
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_2d_4, _gt_cohesive_2d_4,
_itp_lagrange_segment_2, _ek_cohesive, 2,
_git_segment, 2);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_2d_6, _gt_cohesive_2d_6,
_itp_lagrange_segment_3, _ek_cohesive, 2,
_git_segment, 3);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_1d_2, _gt_cohesive_1d_2,
_itp_lagrange_point_1, _ek_cohesive, 1,
_git_point, 1);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_3d_6, _gt_cohesive_3d_6,
_itp_lagrange_triangle_3, _ek_cohesive, 3,
_git_triangle, 2);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_3d_12, _gt_cohesive_3d_12,
_itp_lagrange_triangle_6, _ek_cohesive, 3,
_git_triangle, 3);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_3d_8, _gt_cohesive_3d_8,
_itp_lagrange_quadrangle_4, _ek_cohesive,
3, _git_segment, 2);
AKANTU_DEFINE_ELEMENT_CLASS_PROPERTY(_cohesive_3d_16, _gt_cohesive_3d_16,
_itp_serendip_quadrangle_8, _ek_cohesive,
3, _git_segment, 3);
template <ElementType> struct CohesiveFacetProperty {
static const ElementType cohesive_type = _not_defined;
};
#define AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(ftype, ctype) \
template <> struct CohesiveFacetProperty<ftype> { \
static const ElementType cohesive_type = ctype; \
}
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_point_1, _cohesive_1d_2);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_segment_2, _cohesive_2d_4);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_segment_3, _cohesive_2d_6);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_triangle_3, _cohesive_3d_6);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_triangle_6, _cohesive_3d_12);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_quadrangle_4, _cohesive_3d_8);
AKANTU_DEFINE_COHESIVE_FACET_PROPERTY(_quadrangle_8, _cohesive_3d_16);
} // namespace akantu
#endif /* AKANTU_COHESIVE_ELEMENT_HH_ */
Event Timeline
Log In to Comment