From 6c147c5bc8ff315c8e71058b7442be5d721dcfbb Mon Sep 17 00:00:00 2001 From: Andreas Dutzler Date: Tue, 16 Aug 2022 22:50:09 +0200 Subject: [PATCH] rename `fun` to `f` in microsphere affine-force fixes #116 --- matadi/models/microsphere/affine/_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matadi/models/microsphere/affine/_models.py b/matadi/models/microsphere/affine/_models.py index 1d8aab5..727a77d 100644 --- a/matadi/models/microsphere/affine/_models.py +++ b/matadi/models/microsphere/affine/_models.py @@ -31,7 +31,7 @@ def microsphere_affine_tube(F, f, kwargs, quadrature=BazantOh(n=21)): @displacement_pressure_split -def microsphere_affine_force(x, fun, *args, **kwargs): +def microsphere_affine_force(x, f, *args, **kwargs): """Micro-sphere model: Forces of affine stretch model as first Piola- Kirchhoff stress tensor embedded into a (u/p)-framework.""" @@ -55,7 +55,7 @@ def microsphere_affine_force(x, fun, *args, **kwargs): bulk = kwargs.pop("bulk") # fiber forces and state variable update - f, statevars = fun(lam, statevars_n, *args, **kwargs) + f, statevars = f(lam, statevars_n, *args, **kwargs) # Second Piola-Kirchhoff stress tensor SG = reshape(sum1(f / lam * sphere.weights * sphere.bases), 3, 3)