Skip to content

Commit

Permalink
Fix trace in DeviatoricStress equation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshadepu authored and prabhuramachandran committed Feb 18, 2020
1 parent e3d5e10 commit 381f4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysph/sph/solid_mech/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def loop(self, d_idx, d_s00, d_s01, d_s02, d_s11, d_s12, d_s22, d_v00,
omega22 = 0.0

tmp = 2.0 * d_G[0]
trace = 1.0 / 3.0 * (eps00 + eps11)
trace = 1.0 / 3.0 * (eps00 + eps11 + eps22)

# S_00
d_as00[d_idx] = tmp*( eps00 - trace ) + \
Expand Down

0 comments on commit 381f4e6

Please sign in to comment.