Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79223480
integrator.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, 08:44
Size
4 KB
Mime Type
text/x-c++
Expires
Tue, Aug 27, 08:44 (2 d)
Engine
blob
Format
Raw Data
Handle
19658569
Attached To
rAKA akantu
integrator.hh
View Options
/**
* @file integrator.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date creation: Tue Feb 15 2011
* @date last modification: Fri Jun 13 2014
*
* @brief interface for integrator classes
*
* @section LICENSE
*
* Copyright (©) 2014 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_INTEGRATOR_HH__
#define __AKANTU_INTEGRATOR_HH__
/* -------------------------------------------------------------------------- */
#include "aka_memory.hh"
#include "mesh.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
class
Integrator
:
protected
Memory
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
Integrator
(
const
Mesh
&
mesh
,
const
ID
&
id
=
"integrator"
,
const
MemoryID
&
memory_id
=
0
)
:
Memory
(
id
,
memory_id
),
mesh
(
mesh
),
jacobians
(
"jacobians"
,
id
)
{
AKANTU_DEBUG_IN
();
AKANTU_DEBUG_OUT
();
};
virtual
~
Integrator
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
template
<
ElementType
type
>
inline
void
precomputeJacobiansOnQuadraturePoints
(
__attribute__
((
unused
))
GhostType
ghost_type
){}
void
integrateOnElement
(
__attribute__
((
unused
))
const
Array
<
Real
>
&
f
,
__attribute__
((
unused
))
Real
*
intf
,
__attribute__
((
unused
))
UInt
nb_degree_of_freedom
,
__attribute__
((
unused
))
const
Element
&
elem
,
__attribute__
((
unused
))
GhostType
ghost_type
)
const
{};
/// function to print the contain of the class
virtual
void
printself
(
std
::
ostream
&
stream
,
int
indent
=
0
)
const
{
std
::
string
space
;
for
(
Int
i
=
0
;
i
<
indent
;
i
++
,
space
+=
AKANTU_INDENT
);
stream
<<
space
<<
"Integrator ["
<<
std
::
endl
;
jacobians
.
printself
(
stream
,
indent
+
1
);
stream
<<
space
<<
"]"
<<
std
::
endl
;
};
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// access to the jacobians
Array
<
Real
>
&
getJacobians
(
const
ElementType
&
type
,
const
GhostType
&
ghost_type
=
_not_ghost
)
{
return
jacobians
(
type
,
ghost_type
);
};
const
Array
<
Real
>
&
getJacobians
(
const
ElementType
&
type
,
const
GhostType
&
ghost_type
=
_not_ghost
)
const
{
return
jacobians
(
type
,
ghost_type
);
};
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
const
Mesh
&
mesh
;
/// jacobians for all elements
ElementTypeMapArray
<
Real
>
jacobians
;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
//#include "integrator_inline_impl.cc"
/// standard output stream operator
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
Integrator
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
__END_AKANTU__
#endif
/* __AKANTU_INTEGRATOR_HH__ */
Event Timeline
Log In to Comment