Skip to content

Commit

Permalink
Update test_dof.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Oct 31, 2021
1 parent 01a0de0 commit 6b81f67
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/test_dof.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,36 @@ def test_loadcase():
assert len(ux) == 5
assert "right" in ux[0]

bx = fe.dof.biaxial(u, right=1.0, move=0.2, clamped=False)
assert len(bx) == 4

bx = fe.dof.biaxial(u, right=1.0, move=0.2, clamped=True)
assert len(bx) == 4
assert "right" in bx[0]

bx = fe.dof.biaxial(u, right=2.0, move=0.2, clamped=True)
assert len(bx) == 4
assert "right" in bx[0]

bx = fe.dof.biaxial(v, right=1.0, move=0.2, clamped=True)
assert len(bx) == 5
assert "right" in bx[0]

ps = fe.dof.planar(u, right=1.0, move=0.2, clamped=False)
assert len(ps) == 4

ps = fe.dof.planar(u, right=1.0, move=0.2, clamped=True)
assert len(ps) == 4
assert "right" in ps[0]

ps = fe.dof.planar(u, right=2.0, move=0.2, clamped=True)
assert len(ps) == 4
assert "right" in ps[0]

ps = fe.dof.planar(v, right=1.0, move=0.2, clamped=True)
assert len(ps) == 5
assert "right" in ps[0]


def test_mpc():

Expand Down

0 comments on commit 6b81f67

Please sign in to comment.