Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91507829
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
Mon, Nov 11, 18:31
Size
3 KB
Mime Type
text/x-c++
Expires
Wed, Nov 13, 18:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22220396
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: Thu Oct 22 2015
*
* @brief Generates the cohesive element structres (defined in
* element_class.hh)
*
* @section LICENSE
*
* Copyright (©) 2010-2012, 2014, 2015 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