Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZAARAOUI999 authored Dec 18, 2023
1 parent e6486fa commit d1b86c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ import hypermat as hm
umat = hm.NeoHooke(C10=0.5, K=0)

# Initialise deformation gradient values
F = np.array(hm.like(np.eye(3), np.zeros((100,100,3,3))))
F[...,0,0] = 0.25
F[...,0,2] = 0.5
F[...,2,1] = 0.3
np.random.seed(125161)
F = (np.eye(3) + np.random.rand(50, 8, 3, 3) / 10).T

# Get stress tensor
P = umat.jacobian(F.T)
Expand Down

0 comments on commit d1b86c3

Please sign in to comment.