https://mooseframework.inl.gov
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 }
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&#39;s first par...
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