Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70191891
material_phasefield_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
Fri, Jul 5, 16:38
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Jul 7, 16:38 (2 d)
Engine
blob
Format
Raw Data
Handle
18804162
Attached To
rAKA akantu
material_phasefield_inline_impl.cc
View Options
/**
* @file material_phasefield_inline_impl.cc
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Mon Dec 13 2010
* @date last modification: Fri Apr 02 2021
*
* @brief Implementation of the inline functions of the material phasefield
*
*
* @section LICENSE
*
* Copyright (©) 2010-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/>.
*
*/
/* -------------------------------------------------------------------------- */
namespace
akantu
{
template
<
Int
dim
>
template
<
class
Args
>
inline
void
MaterialPhaseField
<
dim
>::
computeStressOnQuad
(
Args
&&
args
)
{
MaterialElastic
<
dim
>::
computeStressOnQuad
(
args
);
auto
&&
dam
=
args
[
"damage"
_n
];
args
[
"sigma"
_n
]
*=
(
1
-
dam
)
*
(
1
-
dam
)
+
eta
;
}
/* -------------------------------------------------------------------------- */
template
<
Int
dim
>
template
<
class
Args
>
void
MaterialPhaseField
<
dim
>::
computeTangentModuliOnQuad
(
Args
&&
args
)
{
MaterialElastic
<
dim
>::
computeTangentModuliOnQuad
(
args
);
auto
dam
=
args
[
"damage"
_n
];
args
[
"tangent_moduli"
_n
]
*=
(
1
-
dam
)
*
(
1
-
dam
)
+
eta
;
}
}
// namespace akantu
Event Timeline
Log In to Comment