Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78305626
material_standard_linear_solid_deviatoric.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
Mon, Aug 19, 17:38
Size
4 KB
Mime Type
text/x-c++
Expires
Wed, Aug 21, 17:38 (2 d)
Engine
blob
Format
Raw Data
Handle
19996214
Attached To
rAKA akantu
material_standard_linear_solid_deviatoric.hh
View Options
/**
* Copyright (©) 2010-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* 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 "aka_common.hh"
#include "material_elastic.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_STANDARD_LINEAR_SOLID_DEVIATORIC_HH_
#define AKANTU_MATERIAL_STANDARD_LINEAR_SOLID_DEVIATORIC_HH_
namespace
akantu
{
/**
* Material standard linear solid deviatoric
*
*
* @verbatim
E_\inf
------|\/\/\|------
| |
---| |---
| |
----|\/\/\|--[|----
E_v \eta
@endverbatim
*
* keyword : sls_deviatoric
*
* parameters in the material files :
* - E : Initial Young's modulus @f$ E = E_i + E_v @f$
* - eta : viscosity
* - Ev : stiffness of the viscous element
*/
template
<
Int
dim
>
class
MaterialStandardLinearSolidDeviatoric
:
public
MaterialElastic
<
dim
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
using
Parent
=
MaterialElastic
<
dim
>
;
public
:
MaterialStandardLinearSolidDeviatoric
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// update the internal parameters (for modifiable parameters)
void
updateInternalParameters
()
override
;
/// set material to steady state
void
setToSteadyState
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// constitutive law for all element of a type
void
computeStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
inline
decltype
(
auto
)
getArguments
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
{
return
zip_append
(
Parent
::
getArguments
(
el_type
,
ghost_type
),
"sigma_dev"
_n
=
make_view
<
dim
,
dim
>
(
stress_dev
(
el_type
,
ghost_type
)),
"history"
_n
=
make_view
<
dim
,
dim
>
(
history_integral
(
el_type
,
ghost_type
)));
}
protected
:
/// update the dissipated energy, is called after the stress have been
/// computed
void
updateDissipatedEnergy
(
ElementType
el_type
,
GhostType
ghost_type
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// give the dissipated energy for the time step
[[
nodiscard
]]
Real
getDissipatedEnergy
()
const
;
[[
nodiscard
]]
Real
getDissipatedEnergy
(
const
Element
&
element
)
const
;
/// get the energy using an energy type string for the time step
[[
nodiscard
]]
Real
getEnergy
(
const
std
::
string
&
type
)
override
;
[[
nodiscard
]]
Real
getEnergy
(
const
std
::
string
&
energy_id
,
const
Element
&
element
)
override
;
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
/// viscosity, viscous elastic modulus
Real
eta
{
0.
};
Real
Ev
{
0.
};
Real
E_inf
{
0.
};
Vector
<
Real
>
etas
;
/// history of deviatoric stress
InternalField
<
Real
>
&
stress_dev
;
/// Internal variable: history integral
InternalField
<
Real
>
&
history_integral
;
/// Dissipated energy
InternalField
<
Real
>
&
dissipated_energy
;
};
}
// namespace akantu
#endif
/* AKANTU_MATERIAL_STANDARD_LINEAR_SOLID_DEVIATORIC_HH_ */
Event Timeline
Log In to Comment