Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82865037
material_elastic_linear_anisotropic.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
Fri, Sep 13, 21:35
Size
4 KB
Mime Type
text/x-c++
Expires
Sun, Sep 15, 21:35 (2 d)
Engine
blob
Format
Raw Data
Handle
20765979
Attached To
rAKA akantu
material_elastic_linear_anisotropic.hh
View Options
/**
* @file material_elastic_linear_anisotropic.hh
*
* @author Till Junge <till.junge@epfl.ch>
*
* @date creation: Fri Jun 18 2010
* @date last modification: Tue Aug 18 2015
*
* @brief Orthotropic elastic material
*
* @section LICENSE
*
* Copyright (©) 2010-2012, 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/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "material.hh"
#include "material_elastic.hh"
/* -------------------------------------------------------------------------- */
#include <vector>
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_HH__
#define __AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_HH__
namespace
akantu
{
/**
* General linear anisotropic elastic material
* The only constraint on the elastic tensor is that it can be represented
* as a symmetric 6x6 matrix (3D) or 3x3 (2D).
*
* parameters in the material files :
* - rho : density (default: 0)
* - C_ij : entry on the stiffness
*/
template
<
UInt
Dim
>
class
MaterialElasticLinearAnisotropic
:
public
Material
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MaterialElasticLinearAnisotropic
(
SolidMechanicsModel
&
model
,
const
ID
&
id
=
""
,
bool
symmetric
=
true
);
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
initMaterial
()
override
;
/// constitutive law for all element of a type
void
computeStress
(
ElementType
el_type
,
GhostType
ghost_type
=
_not_ghost
)
override
;
/// compute the tangent stiffness matrix for an element type
void
computeTangentModuli
(
const
ElementType
&
el_type
,
Array
<
Real
>
&
tangent_matrix
,
GhostType
ghost_type
=
_not_ghost
)
override
;
void
updateInternalParameters
()
override
;
bool
hasStiffnessMatrixChanged
()
override
{
return
(
!
was_stiffness_assembled
);
}
protected
:
// compute C from Cprime
void
rotateCprime
();
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// compute max wave celerity
Real
getCelerity
(
const
Element
&
element
)
const
override
;
AKANTU_GET_MACRO
(
VoigtStiffness
,
C
,
Matrix
<
Real
>
);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
using
voigt_h
=
VoigtHelper
<
Dim
>
;
/// direction matrix and vectors
std
::
vector
<
std
::
unique_ptr
<
Vector
<
Real
>>>
dir_vecs
;
Matrix
<
Real
>
rot_mat
;
/// Elastic stiffness tensor in material frame and full vectorised notation
Matrix
<
Real
>
Cprime
;
/// Elastic stiffness tensor in voigt notation
Matrix
<
Real
>
C
;
/// eigenvalues of stiffness tensor
Vector
<
Real
>
eigC
;
bool
symmetric
;
/// viscous proportion
Real
alpha
;
/// defines if the stiffness was computed
bool
was_stiffness_assembled
;
};
}
// akantu
#endif
/* __AKANTU_MATERIAL_ELASTIC_LINEAR_ANISOTROPIC_HH__ */
Event Timeline
Log In to Comment