Skip to content

Commit

Permalink
dPdF B_left_coef col major
Browse files Browse the repository at this point in the history
  • Loading branch information
liminchen committed May 14, 2024
1 parent d74d923 commit 7fbe672
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions 6_inv_free/NeoHookeanEnergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def d2Psi_div_dF2(F, mu, lam):
rs = s * 2 + r
dP_div_dF[ij, rs] = M[0, 0] * U[i, 0] * VT[0, j] * U[r, 0] * VT[0, s] \
+ M[0, 3] * U[i, 0] * VT[0, j] * U[r, 1] * VT[1, s] \
+ M[1, 1] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[1, 2] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 1] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 2] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 1] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 2] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 1] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 2] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[3, 0] * U[i, 1] * VT[1, j] * U[r, 0] * VT[0, s] \
+ M[3, 3] * U[i, 1] * VT[1, j] * U[r, 1] * VT[1, s]
return dP_div_dF
Expand Down
8 changes: 4 additions & 4 deletions 7_self_contact/NeoHookeanEnergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def d2Psi_div_dF2(F, mu, lam):
rs = s * 2 + r
dP_div_dF[ij, rs] = M[0, 0] * U[i, 0] * VT[0, j] * U[r, 0] * VT[0, s] \
+ M[0, 3] * U[i, 0] * VT[0, j] * U[r, 1] * VT[1, s] \
+ M[1, 1] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[1, 2] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 1] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 2] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 1] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 2] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 1] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 2] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[3, 0] * U[i, 1] * VT[1, j] * U[r, 0] * VT[0, s] \
+ M[3, 3] * U[i, 1] * VT[1, j] * U[r, 1] * VT[1, s]
return dP_div_dF
Expand Down
8 changes: 4 additions & 4 deletions 8_self_friction/NeoHookeanEnergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def d2Psi_div_dF2(F, mu, lam):
rs = s * 2 + r
dP_div_dF[ij, rs] = M[0, 0] * U[i, 0] * VT[0, j] * U[r, 0] * VT[0, s] \
+ M[0, 3] * U[i, 0] * VT[0, j] * U[r, 1] * VT[1, s] \
+ M[1, 1] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[1, 2] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 1] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 2] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 1] * U[i, 1] * VT[0, j] * U[r, 1] * VT[0, s] \
+ M[1, 2] * U[i, 1] * VT[0, j] * U[r, 0] * VT[1, s] \
+ M[2, 1] * U[i, 0] * VT[1, j] * U[r, 1] * VT[0, s] \
+ M[2, 2] * U[i, 0] * VT[1, j] * U[r, 0] * VT[1, s] \
+ M[3, 0] * U[i, 1] * VT[1, j] * U[r, 0] * VT[0, s] \
+ M[3, 3] * U[i, 1] * VT[1, j] * U[r, 1] * VT[1, s]
return dP_div_dF
Expand Down

0 comments on commit 7fbe672

Please sign in to comment.