Skip to content

Commit

Permalink
Update _base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Nov 9, 2024
1 parent 3358876 commit b70320e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/felupe/constitution/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,12 @@ def constitutive_material(Material, name=None):
...
... def gradient(self, x):
... F, statevars = x[0], x[-1]
... dWdF = self.kwargs["a"] * fem.math.identity(F)
... dWdF = self.kwargs["a"] * np.eye(3).reshape(3, 3, 1, 1)
... return [dWdF, statevars]
...
... def hessian(self, x, **kwargs):
... F, statevars = x[0], x[-1]
... d2WdFdF = self.kwargs["a"] * np.zeros((3, 3, 3, 3, *F.shape[2:]))
... d2WdFdF = self.kwargs["a"] * np.zeros((3, 3, 3, 3, 1, 1))
... return [d2WdFdF]
>>>
>>> MyMaterial = fem.constitutive_material(MyMaterialFormulation)
Expand Down

0 comments on commit b70320e

Please sign in to comment.