Skip to content

Commit

Permalink
Merge pull request #2 from tdegeus/jasper
Browse files Browse the repository at this point in the history
Small change in NR derivative
  • Loading branch information
tdegeus authored Dec 19, 2017
2 parents 06fcabc + a867fe8 commit da0f566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion small-strain/laminate/visco-plasticity.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def viscoplastic(eps,eps_t,epse_t,ep_t,dt):
res = -gamma0*dt*(sigeq_s/sig0)**(1./n)

while np.linalg.norm(np.abs(res))/mu>1.e-6:
dres = 1.+3.*mu*gamma0*dt/n*((sigeq_s-3.*mu*dgamma)/sig0)**(1./n-1.)
dres = 1.+3.*mu*gamma0*dt/(n*sig0)*((sigeq_s-3.*mu*dgamma)/sig0)**(1./n-1.)
dgamma -= res/dres
dgamma[Z] = 0.
res = dgamma-gamma0*dt*((sigeq_s-3.*mu*dgamma)/sig0)**(1./n);
Expand Down

0 comments on commit da0f566

Please sign in to comment.