From 39bcd5ca63022d68f74221d805e6901b62e864ee Mon Sep 17 00:00:00 2001 From: Sadjad <65682889+Sad-Abd@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:40:16 +0330 Subject: [PATCH] Update _hyperelasticity_isotropic.py concerning #136 Modified the definition of `C` --- src/matadi/models/_hyperelasticity_isotropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matadi/models/_hyperelasticity_isotropic.py b/src/matadi/models/_hyperelasticity_isotropic.py index 1ca1258..aba4f0d 100644 --- a/src/matadi/models/_hyperelasticity_isotropic.py +++ b/src/matadi/models/_hyperelasticity_isotropic.py @@ -8,7 +8,7 @@ def linear_elastic(F, mu, lmbda): def saint_venant_kirchhoff(F, mu, lmbda): - C = dot(transpose(F), F) + C = transpose(F) @ F I1 = trace(C) / 2 - 3 / 2 I2 = trace(C @ C) / 4 - trace(C) / 2 + 3 / 4 return mu * I2 + lmbda * I1**2 / 2