BELFEM
0.9.4
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
fn_compliance_matrix.hpp
Go to the documentation of this file.
1
/*
2
* BELFEM -- The Berkeley Lab Finite Element Framework
3
* Copyright (c) 2026, The Regents of the University of California,
4
* through Lawrence Berkeley National Laboratory (subject to receipt of any required
5
* approvals from the U.S. Dept. of Energy). All rights reserved.
6
*
7
* Developers: Christian Messe, Gregory Giard
8
*
9
* See the top-level LICENSE file for the complete license and disclaimer.
10
*/
11
12
#ifndef BELFEM_FN_COMPLIANCE_MATRIX_HPP
13
#define BELFEM_FN_COMPLIANCE_MATRIX_HPP
14
#include "
cl_Matrix.hpp
"
15
namespace
belfem
16
{
31
template
<
typename
T >
32
inline
void
33
compliance_matrix
(
const
T & aE1,
34
const
T & aE2,
35
const
T & aE3,
36
const
T & aNu23,
37
const
T & aNu31,
38
const
T & aNu12,
39
const
T & aG23,
40
const
T & aG31,
41
const
T & aG12,
42
Matrix <T> & aS )
43
{
44
BELFEM_ASSERT
( aS.
n_rows
() == 6
45
&& aS.
n_cols
() == 6,
46
"target matrix must be allocated as 6x6"
);
47
48
aS.
fill
( 0.0 );
49
50
aS( 0, 0 ) = 1.0 / aE1 ;
51
aS( 1, 0 ) = -aNu12 / aE1 ;
52
aS( 2, 0 ) = -aNu31 / aE3 ;
53
54
aS( 0, 1 ) = aS( 1, 0 ) ;
55
aS( 1, 1 ) = 1.0 / aE2 ;
56
aS( 2, 1 ) = -aNu23 / aE2 ;
57
58
aS( 0, 2 ) = aS( 2, 0 );
59
aS( 1, 2 ) = aS( 2, 1 ) ;
60
aS( 2, 2 ) = 1.0 / aE3 ;
61
62
aS( 3, 3 ) = 1.0 / aG23 ;
63
aS( 4, 4 ) = 1.0 / aG31 ;
64
aS( 5, 5 ) = 1.0 / aG12 ;
65
}
66
}
67
#endif
//BELFEM_FN_COMPLIANCE_MATRIX_HPP
BELFEM_ASSERT
#define BELFEM_ASSERT(aCheck,...)
Definition
assert.hpp:244
cl_Matrix.hpp
belfem::Matrix::fill
void fill(const T &aValue)
Definition
cl_AR_Matrix.hpp:160
belfem::Matrix::n_rows
size_t n_rows() const
Definition
cl_AR_Matrix.hpp:187
belfem::Matrix::n_cols
size_t n_cols() const
Definition
cl_AR_Matrix.hpp:195
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::compliance_matrix
void compliance_matrix(const T &aE1, const T &aE2, const T &aE3, const T &aNu23, const T &aNu31, const T &aNu12, const T &aG23, const T &aG31, const T &aG12, Matrix< T > &aS)
orthotropic compliance matrix in Voigt order 11, 22, 33, 23, 31, 12.
Definition
fn_compliance_matrix.hpp:33
src
math
tensor
fn_compliance_matrix.hpp
Generated by
1.18.0