Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81589928
structural_element_bernoulli_beam_3.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 6, 22:14
Size
2 KB
Mime Type
text/x-c++
Expires
Sun, Sep 8, 22:14 (2 d)
Engine
blob
Format
Raw Data
Handle
20559625
Attached To
rAKA akantu
structural_element_bernoulli_beam_3.hh
View Options
/**
* Copyright (©) 2017-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/>.
*/
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_STRUCTURAL_ELEMENT_BERNOULLI_BEAM_3_HH_
#define AKANTU_STRUCTURAL_ELEMENT_BERNOULLI_BEAM_3_HH_
#include "structural_mechanics_model.hh"
namespace
akantu
{
/* -------------------------------------------------------------------------- */
template
<>
void
StructuralMechanicsModel
::
computeTangentModuli
<
_bernoulli_beam_3
>
(
Array
<
Real
>
&
tangent_moduli
)
{
Int
nb_element
=
getFEEngine
().
getMesh
().
getNbElement
(
_bernoulli_beam_3
);
Int
nb_quadrature_points
=
getFEEngine
().
getNbIntegrationPoints
(
_bernoulli_beam_3
);
Int
tangent_size
=
4
;
tangent_moduli
.
zero
();
Array
<
Real
>::
matrix_iterator
D_it
=
tangent_moduli
.
begin
(
tangent_size
,
tangent_size
);
for
(
Int
e
=
0
;
e
<
nb_element
;
++
e
)
{
UInt
mat
=
element_material
(
_bernoulli_beam_3
,
_not_ghost
)(
e
);
Real
E
=
materials
[
mat
].
E
;
Real
A
=
materials
[
mat
].
A
;
Real
Iz
=
materials
[
mat
].
Iz
;
Real
Iy
=
materials
[
mat
].
Iy
;
Real
GJ
=
materials
[
mat
].
GJ
;
for
(
Int
q
=
0
;
q
<
nb_quadrature_points
;
++
q
,
++
D_it
)
{
auto
&
D
=
*
D_it
;
D
(
0
,
0
)
=
E
*
A
;
D
(
1
,
1
)
=
E
*
Iz
;
D
(
2
,
2
)
=
E
*
Iy
;
D
(
3
,
3
)
=
GJ
;
}
}
}
}
// namespace akantu
#endif
/* AKANTU_STRUCTURAL_ELEMENT_BERNOULLI_BEAM_3_HH_ */
Event Timeline
Log In to Comment