Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91881972
shape_functions_inline_impl.cc
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
Fri, Nov 15, 10:44
Size
2 KB
Mime Type
text/x-c++
Expires
Sun, Nov 17, 10:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22341396
Attached To
rAKA akantu
shape_functions_inline_impl.cc
View Options
/**
* @file shape_functions_inline_impl.cc
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Marco Vocialta <marco.vocialta@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
* @author Fabian Barras <fabian.barras@epfl.ch>
*
* @date Fri Jul 15 19:41:58 2011
*
* @brief ShapeFunctions inline implementation
*
* @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/>.
*
*/
/* -------------------------------------------------------------------------- */
inline
UInt
ShapeFunctions
::
getShapeSize
(
const
ElementType
&
type
)
{
AKANTU_DEBUG_IN
();
UInt
shape_size
=
0
;
#define GET_SHAPE_SIZE(type) \
shape_size = ElementClass<type>::getShapeSize()
#define GET_SHAPE_SIZE_COHESIVE(type) \
shape_size = CohesiveElement<type>::getShapeSize()
AKANTU_BOOST_ELEMENT_SWITCH
(
GET_SHAPE_SIZE
,
AKANTU_REGULAR_ELEMENT_TYPE
,
GET_SHAPE_SIZE_COHESIVE
,
AKANTU_COHESIVE_ELEMENT_TYPE
);
#undef GET_SHAPE_SIZE
#undef GET_SHAPE_SIZE_COHESIVE
AKANTU_DEBUG_OUT
();
return
shape_size
;
}
/* -------------------------------------------------------------------------- */
inline
UInt
ShapeFunctions
::
getShapeDerivativesSize
(
const
ElementType
&
type
)
{
AKANTU_DEBUG_IN
();
UInt
shape_derivatives_size
=
0
;
#define GET_SHAPE_DERIVATIVES_SIZE(type) \
shape_derivatives_size = ElementClass<type>::getShapeDerivativesSize()
#define GET_SHAPE_DERIVATIVES_SIZE_COHESIVE(type) \
shape_derivatives_size = CohesiveElement<type>::getShapeDerivativesSize()
AKANTU_BOOST_ELEMENT_SWITCH
(
GET_SHAPE_DERIVATIVES_SIZE
,
AKANTU_REGULAR_ELEMENT_TYPE
,
GET_SHAPE_DERIVATIVES_SIZE_COHESIVE
,
AKANTU_COHESIVE_ELEMENT_TYPE
);
#undef GET_SHAPE_DERIVATIVES_SIZE
#undef GET_SHAPE_DERIVATIVES_SIZE_COHESIVE
AKANTU_DEBUG_OUT
();
return
shape_derivatives_size
;
}
/* -------------------------------------------------------------------------- */
template
<
ElementType
type
>
void
ShapeFunctions
::
setControlPointsByType
(
const
Vector
<
Real
>
&
points
,
const
GhostType
&
ghost_type
)
{
control_points
.
setVector
(
type
,
ghost_type
,
points
);
}
/* -------------------------------------------------------------------------- */
Event Timeline
Log In to Comment