https://mooseframework.inl.gov
Loading...
Searching...
No Matches
solid_mechanics
examples
umat_build
src
build_stiffness_matrix.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#include "
build_stiffness_matrix.h
"
11
12
void
13
buildStiffnessMatrix
(Eigen::Ref<Eigen::Matrix<double, 6, 6>> C,
14
const
double
& G,
15
const
double
& lambda)
16
{
17
C = Eigen::Matrix<double, 6, 6>::Zero();
18
19
for
(
int
i = 0; i < 3; i++)
20
{
21
C(i, i) += 2 * G;
22
C(i + 3, i + 3) += G;
23
for
(
int
j = 0; j < 3; j++)
24
C(i, j) += lambda;
25
}
26
}
buildStiffnessMatrix
void buildStiffnessMatrix(Eigen::Ref< Eigen::Matrix< double, 6, 6 > > C, const double &G, const double &lambda)
build a 6x6 representation of the stiffness tensor in C from the shear modulus G and Lame's first par...
Definition
build_stiffness_matrix.C:13
build_stiffness_matrix.h
Generated on Fri Aug 21 2026 13:41:34 for https://mooseframework.inl.gov by
1.9.8