Page MenuHomec4science

element_class_igfem_segment_3_inline_impl.cc
No OneTemporary

File Metadata

Created
Fri, Jul 12, 12:32

element_class_igfem_segment_3_inline_impl.cc

/**
* @file element_class_igfem_triangle_5_inline_impl.cc
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @date Tue May 5 14:57:51 2015
*
* @brief Specialization of the element_class class for the type
* _igfem_triangle_5
*
* @section LICENSE
*
* Copyright (©) 2010-2011 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/>.
*
*
* @section DESCRIPTION
*
* @verbatim
\eta
^
|
x (0,0,1)
|`
| `
|` q `
| ` ° `
x--------x-----> \xi
(1,0,0) (0,1,0)
@endverbatim
*
* @subsection shapes shape functions
* Parent:
* @f{eqnarray*}{
* N1 &=& 1 - \xi - \eta \\
* N2 &=& \xi \\
* N3 &=& \eta
* @f}
* Sub 1:
* @f{eqnarray*}{
* N2 &=& \xi \\
* N3 &=& \eta
* @f}
* Sub 2:
* @f[
* \begin{array}{lll}
* N3 = (1 + \xi) (1 + \eta) / 4 \\
* & \frac{\partial N3}{\partial \xi} = (1 + \eta) / 4
* & \frac{\partial N3}{\partial \eta} = (1 + \xi) / 4 \\
* N4 = (1 - \xi) (1 + \eta) / 4
* & \frac{\partial N4}{\partial \xi} = - (1 + \eta) / 4
* & \frac{\partial N4}{\partial \eta} = (1 - \xi) / 4 \\
* \end{array}
* @f]
*
* @subsection quad_points Position of quadrature points
* @f{eqnarray*}{
* \xi_{q0} &=& 1/3 \qquad \eta_{q0} = 1/3
* @f}
*/
/* -------------------------------------------------------------------------- */
AKANTU_DEFINE_IGFEM_ELEMENT_CLASS_PROPERTY(_igfem_segment_3, \
_gt_igfem_segment_3, \
_itp_igfem_segment_3, \
_segment_2, \
_segment_2, \
_segment_2, \
_ek_igfem, \
1, \
1);
/* -------------------------------------------------------------------------- */
template<>
inline UInt ElementClass<_igfem_segment_3>::getOrientation(const Vector<bool> & is_inside) {
UInt sub_el_is_inside = false;
if (is_inside(0)) {
sub_el_is_inside = true;
AKANTU_DEBUG_ASSERT(!is_inside(1),
"orientation not determinable");
}
else
AKANTU_DEBUG_ASSERT(is_inside(2),
"orientation not determinable");
return sub_el_is_inside;
}

Event Timeline