We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6291cc commit 6628dd6Copy full SHA for 6628dd6
1 file changed
diffmpm/particle.py
@@ -64,6 +64,7 @@ def __init__(
64
self.dstrain = jnp.zeros((self.loc.shape[0], 6, 1))
65
self.f_ext = jnp.zeros_like(self.loc)
66
self.reference_loc = jnp.zeros_like(self.loc)
67
+ self.dvolumetric_strain = jnp.zeros((self.loc.shape[0], 1))
68
self.volumetric_strain_centroid = jnp.zeros((self.loc.shape[0], 1))
69
else:
70
(
@@ -79,6 +80,7 @@ def __init__(
79
80
self.dstrain,
81
self.f_ext,
82
self.reference_loc,
83
+ self.dvolumetric_strain,
84
self.volumetric_strain_centroid,
85
) = data
86
self.initialized = True
@@ -100,6 +102,7 @@ def tree_flatten(self):
100
102
101
103
104
105
106
107
)
108
aux_data = (self.material,)
0 commit comments