https://mooseframework.inl.gov
Functions
build_stiffness_matrix.h File Reference

Go to the source code of this file.

Functions

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 parameter lambda. More...
 

Function Documentation

◆ 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 parameter lambda.

Definition at line 13 of file build_stiffness_matrix.C.

Referenced by FOR_NAME(), and umat_().

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 }
static const std::string G
Definition: NS.h:166
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
static const std::string C
Definition: NS.h:168