Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79314178
shape_functions.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, 19:04
Size
4 KB
Mime Type
text/x-c++
Expires
Tue, Aug 27, 19:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20174134
Attached To
rAKA akantu
shape_functions.hh
View Options
/**
* @file shape_functions.hh
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @date Thu Feb 10 11:35:29 2011
*
* @brief shape function class
*
* @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/>.
*
*/
#ifndef __AKANTU_SHAPE_FUNCTIONS_HH__
#define __AKANTU_SHAPE_FUNCTIONS_HH__
__BEGIN_AKANTU__
/* -------------------------------------------------------------------------- */
class
ShapeFunctions
:
public
Memory
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
ShapeFunctions
(
Mesh
&
m
,
ShapeID
myid
=
"shape"
){
mesh
=
&
m
;
id
=
myid
;
};
virtual
~
ShapeFunctions
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// pre compute all shapes on the element control points from natural coordinates
template
<
ElementType
type
>
void
precomputeShapesOnControlPoints
(
const
Real
*
natural_coords
,
const
UInt
nb_points
,
GhostType
ghost_type
);
/// pre compute all shapes on the element control points from natural coordinates
template
<
ElementType
type
>
void
precomputeShapesDerivativesOnControlPoints
(
const
Real
*
natural_coords
,
const
UInt
nb_points
,
const
UInt
dimension
,
GhostType
ghost_type
);
/// interpolate nodal values on the control points
template
<
ElementType
type
>
void
interpolateOnControlPoints
(
const
Vector
<
Real
>
&
u
,
Vector
<
Real
>
&
uq
,
UInt
nb_degre_of_freedom
,
GhostType
ghost_type
=
_not_ghost
,
const
Vector
<
UInt
>
*
filter_elements
=
NULL
)
const
;
/// multiply a field by shape functions
template
<
ElementType
type
>
void
fieldTimesShapes
(
const
Vector
<
Real
>
&
field
,
Vector
<
Real
>
&
fieal_times_shapes
);
// /// compute the gradient of u on the constrol points
// template <ElementType type>
// void gradientOnControlPoints(const Vector<Real> &u,
// Vector<Real> &nablauq,
// UInt nb_degre_of_freedom,
// GhostType ghost_type = _not_ghost,
// const Vector<UInt> * filter_elements = NULL) const;
/// function to print the contain of the class
virtual
void
printself
(
__attribute__
((
unused
))
std
::
ostream
&
stream
,
__attribute__
((
unused
))
int
indent
=
0
)
const
{};
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
protected
:
Mesh
*
mesh
;
ShapeID
id
;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
/// standard output stream operator
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
ShapeFunctions
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
__END_AKANTU__
#endif
/* __AKANTU_SHAPE_FUNCTIONS_HH__ */
Event Timeline
Log In to Comment