Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84910767
material_elastic_linear_anisotropic_inline_impl.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
Wed, Sep 25, 13:09
Size
2 KB
Mime Type
text/x-c++
Expires
Fri, Sep 27, 13:09 (8 h, 36 m)
Engine
blob
Format
Raw Data
Handle
21104485
Attached To
rAKA akantu
material_elastic_linear_anisotropic_inline_impl.hh
View Options
/**
* @file material_elastic_linear_anisotropic_inline_impl.hh
*
* @author Enrico Milanese <enrico.milanese@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Fri Feb 16 2018
* @date last modification: Thu Feb 20 2020
*
* @brief Implementation of the inline functions of the material elastic linear
* anisotropic
*
*
* @section LICENSE
*
* Copyright (©) 2016-2021 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 "material_elastic_linear_anisotropic.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_INLINE_IMPL_HH_
#define AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_INLINE_IMPL_HH_
namespace
akantu
{
/* -------------------------------------------------------------------------- */
template
<
Int
dim
>
template
<
typename
Args
>
inline
void
MaterialElasticLinearAnisotropic
<
dim
>::
computeStressOnQuad
(
Args
&&
arguments
)
const
{
auto
&&
sigma
=
tuple
::
get
<
"sigma"
_h
>
(
arguments
);
auto
&&
grad_u
=
tuple
::
get
<
"grad_u"
_h
>
(
arguments
);
auto
voigt_strain
=
strainToVoigt
<
dim
>
(
gradUToEpsilon
<
dim
>
(
grad_u
));
auto
voigt_stress
=
this
->
C
*
voigt_strain
;
voigtToStress
<
dim
>
(
voigt_stress
,
sigma
);
}
/* -------------------------------------------------------------------------- */
template
<
Int
dim
>
inline
void
MaterialElasticLinearAnisotropic
<
dim
>::
computeTangentModuliOnQuad
(
Matrix
<
Real
>
&
tangent
)
const
{
tangent
=
this
->
C
;
}
/* -------------------------------------------------------------------------- */
template
<
Int
dim
>
inline
void
MaterialElasticLinearAnisotropic
<
dim
>::
computePotentialEnergyOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
const
Matrix
<
Real
>
&
sigma
,
Real
&
epot
)
{
AKANTU_DEBUG_ASSERT
(
this
->
symmetric
,
"The elastic constants matrix is not symmetric,"
"energy is not path independent."
);
epot
=
.5
*
sigma
.
doubleDot
(
grad_u
);
}
}
// namespace akantu
#endif
/* AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_INLINE_IMPL_HH_ */
Event Timeline
Log In to Comment