Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79950639
material_plastic_inline_impl.cc
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
Thu, Aug 29, 03:25
Size
2 KB
Mime Type
text/x-c++
Expires
Sat, Aug 31, 03:25 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20220459
Attached To
rAKA akantu
material_plastic_inline_impl.cc
View Options
/**
* @file material_plastic_inline_impl.cc
*
* @author Daniel Pino Muñoz <daniel.pinomunoz@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Mon Apr 07 2014
* @date last modification: Tue Aug 18 2015
*
* @brief Implementation of the inline functions of akantu::MaterialPlastic
*
* @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 MATERIAL_PLASTIC_INLINE_IMPL_H
#define MATERIAL_PLASTIC_INLINE_IMPL_H
#include "material_plastic.hh"
namespace
akantu
{
template
<
UInt
dim
>
inline
void
MaterialPlastic
<
dim
>::
computeStressAndInelasticStrainOnQuad
(
const
Matrix
<
Real
>
&
delta_grad_u
,
Matrix
<
Real
>
&
sigma
,
const
Matrix
<
Real
>
&
previous_sigma
,
Matrix
<
Real
>
&
inelastic_strain
,
const
Matrix
<
Real
>
&
previous_inelastic_strain
,
const
Matrix
<
Real
>
&
delta_inelastic_strain
)
const
{
Matrix
<
Real
>
grad_u_elastic
(
dim
,
dim
);
grad_u_elastic
.
copy
(
delta_grad_u
);
grad_u_elastic
-=
delta_inelastic_strain
;
Matrix
<
Real
>
sigma_elastic
(
dim
,
dim
);
MaterialElastic
<
dim
>::
computeStressOnQuad
(
grad_u_elastic
,
sigma_elastic
);
sigma
.
copy
(
previous_sigma
);
sigma
+=
sigma_elastic
;
inelastic_strain
.
copy
(
previous_inelastic_strain
);
inelastic_strain
+=
delta_inelastic_strain
;
}
/* -------------------------------------------------------------------------- */
template
<
UInt
dim
>
inline
void
MaterialPlastic
<
dim
>::
computeStressAndInelasticStrainOnQuad
(
const
Matrix
<
Real
>
&
grad_u
,
const
Matrix
<
Real
>
&
previous_grad_u
,
Matrix
<
Real
>
&
sigma
,
const
Matrix
<
Real
>
&
previous_sigma
,
Matrix
<
Real
>
&
inelastic_strain
,
const
Matrix
<
Real
>
&
previous_inelastic_strain
,
const
Matrix
<
Real
>
&
delta_inelastic_strain
)
const
{
Matrix
<
Real
>
delta_grad_u
(
grad_u
);
delta_grad_u
-=
previous_grad_u
;
computeStressAndInelasticStrainOnQuad
(
delta_grad_u
,
sigma
,
previous_sigma
,
inelastic_strain
,
previous_inelastic_strain
,
delta_inelastic_strain
);
}
}
// Akantu
#endif
/* MATERIAL_PLASTIC_INLINE_IMPL_H */
Event Timeline
Log In to Comment