Skip to content

Commit

Permalink
Morph and NH-OR: update to statevars_shape
Browse files Browse the repository at this point in the history
fixes #118
  • Loading branch information
adtzlr committed Aug 16, 2022
1 parent 496af55 commit 33add30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matadi/models/_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def fun(x, C10, r, m, beta, bulk):
# for a pseudo-elastic material formulation
return eta * gradient(W, F) + gradient(U, F), Wmax

super().__init__(fun=fun, nstatevars=1, C10=C10, r=r, m=m, beta=beta, bulk=bulk)
super().__init__(fun=fun, statevars_shape=(1, 1), C10=C10, r=r, m=m, beta=beta, bulk=bulk)


class Morph(MaterialTensorGeneral):
Expand Down Expand Up @@ -59,7 +59,7 @@ def fun(x, p1, p2, p3, p4, p5, p6, p7, p8, bulk):

super().__init__(
fun=fun,
nstatevars=13,
statevars_shape=(13, 1),
p1=p1,
p2=p2,
p3=p3,
Expand Down

0 comments on commit 33add30

Please sign in to comment.