Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79251931
shape_structural.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
Sun, Aug 25, 12:14
Size
4 KB
Mime Type
text/x-c++
Expires
Tue, Aug 27, 12:14 (2 d)
Engine
blob
Format
Raw Data
Handle
20058576
Attached To
rAKA akantu
shape_structural.hh
View Options
/**
* @file shape_structural.hh
*
* @author Fabian Barras <fabian.barras@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Tue Feb 15 2011
* @date last modification: Thu Oct 22 2015
*
* @brief shape class for element with different set of shapes functions
*
* @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 "shape_functions.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_SHAPE_STRUCTURAL_HH__
#define __AKANTU_SHAPE_STRUCTURAL_HH__
namespace
akantu
{
template
<
ElementKind
kind
>
class
ShapeStructural
:
public
ShapeFunctions
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
typedef
ElementTypeMap
<
Array
<
Real
>
**>
ElementTypeMapMultiReal
;
ShapeStructural
(
Mesh
&
mesh
,
const
ID
&
id
=
"shape_structural"
,
const
MemoryID
&
memory_id
=
0
);
virtual
~
ShapeStructural
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// compute shape functions on given integration points
template
<
ElementType
type
>
void
computeShapesOnIntegrationPoints
(
const
Array
<
Real
>
&
,
const
Matrix
<
Real
>
&
integration_points
,
Array
<
Real
>
&
shapes
,
const
GhostType
&
ghost_type
,
const
Array
<
UInt
>
&
filter_elements
=
empty_filter
)
const
;
/// initialization function for structural elements
inline
void
initShapeFunctions
(
const
Array
<
Real
>
&
nodes
,
const
Matrix
<
Real
>
&
integration_points
,
const
ElementType
&
type
,
const
GhostType
&
ghost_type
);
/// pre compute all shapes on the element integration points from natural
/// coordinates
template
<
ElementType
type
>
void
precomputeShapesOnIntegrationPoints
(
const
Array
<
Real
>
&
nodes
,
const
GhostType
&
ghost_type
);
/// pre compute all shapes on the element integration points from natural
/// coordinates
template
<
ElementType
type
>
void
precomputeShapeDerivativesOnIntegrationPoints
(
const
Array
<
Real
>
&
nodes
,
const
GhostType
&
ghost_type
);
/// pre compute all rotation matrices
template
<
ElementType
type
>
void
precomputeRotationMatrices
(
const
Array
<
Real
>
&
nodes
,
const
GhostType
&
ghost_type
);
/// interpolate nodal values on the integration points
template
<
ElementType
type
>
void
interpolateOnIntegrationPoints
(
const
Array
<
Real
>
&
u
,
Array
<
Real
>
&
uq
,
UInt
nb_degree_of_freedom
,
const
GhostType
&
ghost_type
=
_not_ghost
,
const
Array
<
UInt
>
&
filter_elements
=
empty_filter
)
const
;
/// compute the gradient of u on the integration points
template
<
ElementType
type
>
void
gradientOnIntegrationPoints
(
const
Array
<
Real
>
&
u
,
Array
<
Real
>
&
nablauq
,
UInt
nb_degree_of_freedom
,
const
GhostType
&
ghost_type
=
_not_ghost
,
const
Array
<
UInt
>
&
filter_elements
=
empty_filter
)
const
;
/// multiply a field by shape functions
template
<
ElementType
type
>
void
fieldTimesShapes
(
__attribute__
((
unused
))
const
Array
<
Real
>
&
field
,
__attribute__
((
unused
))
Array
<
Real
>
&
fiedl_times_shapes
,
__attribute__
((
unused
))
const
GhostType
&
ghost_type
)
const
{
AKANTU_DEBUG_TO_IMPLEMENT
();
}
protected
:
ElementTypeMapArray
<
Real
>
rotation_matrices
;
};
}
// namespace akantu
#include "shape_structural_inline_impl.cc"
#endif
/* __AKANTU_SHAPE_STRUCTURAL_HH__ */
Event Timeline
Log In to Comment