We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b532b9 commit 7a28a38Copy full SHA for 7a28a38
1 file changed
tests/test_particle.py
@@ -43,3 +43,7 @@ def test_compute_strain(self, elements, particles):
43
),
44
)
45
assert jnp.allclose(particles.volumetric_strain_centroid, jnp.array([0.2]))
46
+
47
+ def test_compute_volume(self, elements, particles):
48
+ particles.compute_volume(elements, elements.total_elements)
49
+ assert jnp.allclose(particles.volume, jnp.array([0.5, 0.5]).reshape(2, 1, 1))
0 commit comments