Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77890291
cohesive_internal_field_tmpl.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
Sat, Aug 17, 01:00
Size
3 KB
Mime Type
text/x-c++
Expires
Mon, Aug 19, 01:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19840737
Attached To
rAKA akantu
cohesive_internal_field_tmpl.hh
View Options
/**
* @file cohesive_internal_field_tmpl.hh
*
* @author Nicolas Richart <nicolas.richart@epfl.ch>
* @author Marco Vocialta <marco.vocialta@epfl.ch>
*
* @date creation: Wed Nov 13 2013
* @date last modification: Thu Jan 21 2016
*
* @brief implementation of the cohesive internal field
*
* @section LICENSE
*
* Copyright (©) 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/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_COHESIVE_INTERNAL_FIELD_TMPL_HH__
#define __AKANTU_COHESIVE_INTERNAL_FIELD_TMPL_HH__
namespace
akantu
{
template
<
typename
T
>
CohesiveInternalField
<
T
>::
CohesiveInternalField
(
const
ID
&
id
,
Material
&
material
)
:
InternalField
<
T
>
(
id
,
material
,
material
.
getModel
().
getFEEngine
(
"CohesiveFEEngine"
),
dynamic_cast
<
MaterialCohesive
&>
(
material
).
getElementFilter
())
{
this
->
element_kind
=
_ek_cohesive
;
}
template
<
typename
T
>
CohesiveInternalField
<
T
>::~
CohesiveInternalField
()
=
default
;
template
<
typename
T
>
void
CohesiveInternalField
<
T
>::
initialize
(
UInt
nb_component
)
{
this
->
internalInitialize
(
nb_component
);
}
/* -------------------------------------------------------------------------- */
template
<
typename
T
>
FacetInternalField
<
T
>::
FacetInternalField
(
const
ID
&
id
,
Material
&
material
)
:
InternalField
<
T
>
(
id
,
material
,
material
.
getModel
().
getFEEngine
(
"FacetsFEEngine"
),
dynamic_cast
<
MaterialCohesive
&>
(
material
).
getFacetFilter
())
{
this
->
spatial_dimension
-=
1
;
this
->
element_kind
=
_ek_regular
;
}
template
<
typename
T
>
FacetInternalField
<
T
>::~
FacetInternalField
()
=
default
;
template
<
typename
T
>
void
FacetInternalField
<
T
>::
initialize
(
UInt
nb_component
)
{
this
->
internalInitialize
(
nb_component
);
}
/* -------------------------------------------------------------------------- */
template
<>
inline
void
ParameterTyped
<
RandomInternalField
<
Real
,
FacetInternalField
>>::
setAuto
(
const
ParserParameter
&
in_param
)
{
Parameter
::
setAuto
(
in_param
);
RandomParameter
<
Real
>
r
=
in_param
;
param
.
setRandomDistribution
(
r
);
}
/* -------------------------------------------------------------------------- */
template
<>
inline
void
ParameterTyped
<
RandomInternalField
<
Real
,
CohesiveInternalField
>>::
setAuto
(
const
ParserParameter
&
in_param
)
{
Parameter
::
setAuto
(
in_param
);
RandomParameter
<
Real
>
r
=
in_param
;
param
.
setRandomDistribution
(
r
);
}
}
// akantu
#endif
/* __AKANTU_COHESIVE_INTERNAL_FIELD_TMPL_HH__ */
Event Timeline
Log In to Comment