Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91886361
integrator_cohesive.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
Fri, Nov 15, 11:39
Size
5 KB
Mime Type
text/x-c++
Expires
Sun, Nov 17, 11:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22342047
Attached To
rAKA akantu
integrator_cohesive.hh
View Options
/**
* @file integrator_cohesive.hh
*
* @author Marco Vocialta <marco.vocialta@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date Thu Feb 16 18:07:14 2012
*
* @brief integrator for cohesive elements header
*
* @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/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "integrator.hh"
#include "cohesive_element.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_INTEGRATOR_COHESIVE_HH__
#define __AKANTU_INTEGRATOR_COHESIVE_HH__
__BEGIN_AKANTU__
template
<
class
Inte
>
class
IntegratorCohesive
:
public
Inte
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
IntegratorCohesive
(
const
Mesh
&
mesh
,
const
ID
&
id
=
"integrator_gauss"
,
const
MemoryID
&
memory_id
=
0
);
virtual
~
IntegratorCohesive
()
{
// if(sub_type_integrator) delete sub_type_integrator;
};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// precompute jacobians on elements of type "type"
template
<
ElementType
type
>
void
precomputeJacobiansOnQuadraturePoints
(
const
GhostType
&
ghost_type
);
/// integrate f on the element "elem" of type "type"
template
<
ElementType
type
>
inline
void
integrateOnElement
(
const
Vector
<
Real
>
&
f
,
Real
*
intf
,
UInt
nb_degree_of_freedom
,
const
UInt
elem
,
const
GhostType
&
ghost_type
)
const
;
/// integrate f for all elements of type "type"
template
<
ElementType
type
>
void
integrate
(
const
Vector
<
Real
>
&
in_f
,
Vector
<
Real
>
&
intf
,
UInt
nb_degree_of_freedom
,
const
GhostType
&
ghost_type
,
const
Vector
<
UInt
>
*
filter_elements
)
const
;
/// integrate scalar field in_f
template
<
ElementType
type
>
Real
integrate
(
const
Vector
<
Real
>
&
in_f
,
const
GhostType
&
ghost_type
,
const
Vector
<
UInt
>
*
filter_elements
)
const
;
template
<
ElementType
type
>
Real
integrate
(
__attribute__
((
unused
))
const
types
::
RVector
&
in_f
,
__attribute__
((
unused
))
UInt
index
,
__attribute__
((
unused
))
const
GhostType
&
ghost_type
)
const
{
AKANTU_DEBUG_TO_IMPLEMENT
();
}
/// integrate partially around a quadrature point (@f$ intf_q = f_q * J_q * w_q @f$)
template
<
ElementType
type
>
void
integrateOnQuadraturePoints
(
const
Vector
<
Real
>
&
in_f
,
Vector
<
Real
>
&
intf
,
UInt
nb_degree_of_freedom
,
const
GhostType
&
ghost_type
,
const
Vector
<
UInt
>
*
filter_elements
)
const
;
/// return a vector with quadrature points natural coordinates
template
<
ElementType
type
>
const
Vector
<
Real
>
&
getQuadraturePoints
(
const
GhostType
&
ghost_type
)
const
;
/// compute the vector of quadrature points natural coordinates
template
<
ElementType
type
>
void
computeQuadraturePoints
(
const
GhostType
&
ghost_type
);
/// check that the jacobians are not negative
template
<
ElementType
type
>
void
checkJacobians
(
const
GhostType
&
ghost_type
)
const
;
protected
:
/// compute the jacobians on quad points for a given element
template
<
ElementType
type
>
void
computeJacobianOnQuadPointsByElement
(
UInt
spatial_dimension
,
Real
*
node_coords
,
UInt
nb_nodes_per_element
,
Real
*
jacobians
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
// Inte * sub_type_integrator;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "integrator_cohesive_inline_impl.cc"
/// standard output stream operator
template
<
class
Integrator
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
IntegratorCohesive
<
Integrator
>
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
__END_AKANTU__
#endif
/* __AKANTU_INTEGRATOR_COHESIVE_HH__ */
Event Timeline
Log In to Comment