4#include "../MathFunctions/transpose.hh"
12 Dune::FieldMatrix<double,6,6> C(0.0);
13 int type = material.Type;
17 double E = material.matprop[0];
18 double nu = material.matprop[1];
20 double tmp = E / ( (1.0 + nu) * ( 1.0 - 2.0 * nu ) );
21 double G = E / (2.0 * (1 + nu));
23 C[0][0] = ( 1.0 - nu ) * tmp; C[0][1] = nu * tmp; C[0][2] = nu * tmp;
24 C[1][0] = nu * tmp; C[1][1] = ( 1.0 - nu ) * tmp; C[1][2] = nu * tmp;
25 C[2][0] = nu * tmp; C[2][1] = nu * tmp; C[2][2] = ( 1.0 - nu ) * tmp;
33 double E1 = material.matprop[0];
34 double E2 = material.matprop[1];
35 double E3 = material.matprop[2];
36 double nu12 = material.matprop[3];
37 double nu21 = nu12 * (E2 / E1);
38 double nu13 = material.matprop[4];
39 double nu31 = nu13 * (E3 / E1);
40 double nu23 = material.matprop[5];
41 double nu32 = nu23 * (E3 / E2);
42 double G12 = material.matprop[6];
43 double G13 = material.matprop[7];
44 double G23 = material.matprop[8];
46 Dune::FieldMatrix<double,3,3> Sinv = {{1./E1,-nu21/E2,-nu31/E3},{-nu12/E1,1./E2,-nu32/E3},{-nu13/E1,-nu23/E2,1./E3}};
52 C[0][1] = Sinv[0][1]; C[1][0] = Sinv[1][0];
53 C[0][2] = Sinv[0][2]; C[2][0] = Sinv[2][0];
54 C[1][2] = Sinv[1][2]; C[2][1] = Sinv[2][1];
Material class.
Definition: Material.hh:14