From ba17e3dc38db4c487d32aa8f635a152750fdb9fa Mon Sep 17 00:00:00 2001 From: manuelpett <manuel.petit@inria.fr> Date: Tue, 12 Mar 2024 10:32:16 +0100 Subject: [PATCH] Fix error related to nabla_grad : need to be replace by grad. --- src/bvpy/vforms/plasticity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bvpy/vforms/plasticity.py b/src/bvpy/vforms/plasticity.py index 0a626f7..a2c2ca9 100644 --- a/src/bvpy/vforms/plasticity.py +++ b/src/bvpy/vforms/plasticity.py @@ -47,8 +47,9 @@ class PlasticForm(ElasticForm): def construct_form(self, u, v, sol): d = sol.geometric_dimension() Id = fe.Identity(d) - F_tot = Id + fe.nabla_grad(sol) - F_e = F_tot*fe.inv(self._parameters['F_plastic']) + F_tot = Id + fe.grad(sol) + Fg = self._parameters['F_plastic'] + F_e = F_tot*fe.inv(Fg) C_e = F_e.T * F_e E_e = 0.5 * (C_e - Id) -- GitLab