Skip to content

Commit

Permalink
Update test_mechanics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Dec 17, 2024
1 parent 326a8eb commit a518200
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_mechanics.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def test_solidbody_incompressible():
assert np.allclose(t1, t2)


def test_solidbody_axi():
def test_solidbody_axi_incompressible():
umat, u = pre_axi(bulk=None)
b = fem.SolidBodyNearlyIncompressible(umat=umat, field=u, bulk=5000)
b = fem.SolidBodyNearlyIncompressible(
Expand Down Expand Up @@ -338,7 +338,7 @@ def test_solidbody_axi():
assert np.allclose(t1, t2)


def test_solidbody_axi_incompressible():
def test_solidbody_axi():
umat, u = pre_axi()
b = fem.SolidBody(umat=umat, field=u)

Expand All @@ -351,6 +351,9 @@ def test_solidbody_axi_incompressible():
r2 = b.assemble.vector(**kwargs)
assert np.allclose(r1.toarray(), r2.toarray())

r3 = b.assemble.vector(**kwargs, block=False, apply=sum)
assert np.allclose(r1.toarray(), r3.toarray())

K1 = b.assemble.matrix(u, **kwargs)
assert K1.shape == (18, 18)

Expand Down

0 comments on commit a518200

Please sign in to comment.