We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c170d5 + 6628dd6 commit 86b987aCopy full SHA for 86b987a
1 file changed
diffmpm/particle.py
@@ -66,6 +66,7 @@ def __init__(
66
self.f_ext = jnp.zeros_like(self.loc)
67
self.traction = jnp.zeros_like(self.loc)
68
self.reference_loc = jnp.zeros_like(self.loc)
69
+ self.dvolumetric_strain = jnp.zeros((self.loc.shape[0], 1))
70
self.volumetric_strain_centroid = jnp.zeros((self.loc.shape[0], 1))
71
else:
72
(
@@ -83,6 +84,7 @@ def __init__(
83
84
self.f_ext,
85
self.traction,
86
self.reference_loc,
87
+ self.dvolumetric_strain,
88
self.volumetric_strain_centroid,
89
) = data
90
self.initialized = True
@@ -106,6 +108,7 @@ def tree_flatten(self):
106
108
107
109
110
111
112
113
)
114
aux_data = (self.material,)
0 commit comments