HW2 Plasticity

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

stress tensor

σ1 0 0
In[ ]:= σ = 0 σ2 0
0 0 σ3
Out[ ]= {{σ1, 0, 0}, {0, σ2, 0}, {0, 0, σ3}}

Invariants
In[ ]:= I1 = Tr[σ]
Out[ ]= σ1 + σ2 + σ3

In[ ]:= I2 = 1  2 Tr[σ] ^ 2 - Tr[σ ^ 2]


1
Out[ ]= - σ12 - σ22 - σ32 + σ1 + σ2 + σ32 
2

In[ ]:= Expand[I2]


Out[ ]= σ1 σ2 + σ1 σ3 + σ2 σ3

In[ ]:= I3 = Det[σ]


Out[ ]= σ1 σ2 σ3


In[ ]:= τoct = 2  3 I1 ^ 2 - 3 I2 ^ 1  2

1 3
Out[ ]= 2 σ1 + σ2 + σ32 - - σ12 - σ22 - σ32 + σ1 + σ2 + σ32 
3 2

Deviatoric stress
In[ ]:= s = σ - Tr[σ]  3 * IdentityMatrix[3]
1 1 1
Out[ ]= σ1 + - σ1 - σ2 - σ3, 0, 0, 0, σ2 + - σ1 - σ2 - σ3, 0, 0, 0, - σ1 - σ2 - σ3 + σ3
3 3 3

Invariants
In[ ]:= J1 = Tr[s]
Out[ ]= 0

In[ ]:= J2 = 1  2 Tr[s ^ 2] - Tr[s] ^ 2


1 1 2 1 2 1 2
Out[ ]= σ1 + - σ1 - σ2 - σ3 + σ2 + - σ1 - σ2 - σ3 + - σ1 - σ2 - σ3 + σ3
2 3 3 3

In[ ]:= FullSimplify[J2]


1
Out[ ]= σ12 + σ22 - σ2 σ3 + σ32 - σ1 σ2 + σ3
3

J2 is also equal to this:


2 HW2 Plasticity.nb

In[ ]:= FullSimplify1  6 σ1 - σ2 ^ 2 + σ1 - σ3 ^ 2 + σ2 - σ3 ^ 2
1
Out[ ]= σ12 + σ22 - σ2 σ3 + σ32 - σ1 σ2 + σ3
3

and also equal to this:


In[ ]:= FullSimplify1  2 s[[1]][[1]] ^ 2 + s[[2]][[2]] ^ 2 + s[[3]][[3]] ^ 2
1
Out[ ]= σ12 + σ22 - σ2 σ3 + σ32 - σ1 σ2 + σ3
3

In[ ]:= J3 = Det[s]


2 σ13 σ12 σ2 σ1 σ22 2 σ23 σ12 σ3 4 σ1 σ2 σ3 σ22 σ3 σ1 σ32 σ2 σ32 2 σ33
Out[ ]= - - + - + - - - +
27 9 9 27 9 9 9 9 9 27

In[ ]:= FullSimplify[J3]


1
Out[ ]= σ1 + σ2 - 2 σ3 2 σ1 - σ2 - σ3 σ1 - 2 σ2 + σ3
27

also lets find a relationship of J2 with τoct:


In[ ]:= FullSimplify2  3 J2
2
Out[ ]= σ12 + σ22 - σ2 σ3 + σ32 - σ1 σ2 + σ3
9

and this is exactly τoct


In[ ]:= FullSimplify[τoct ^ 2]
2
Out[ ]= σ12 + σ22 - σ2 σ3 + σ32 - σ1 σ2 + σ3
9

You might also like