Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 18, 2024
1 parent 890cd83 commit bad6d06
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,11 @@ def resume(mapdl, plastic_solve):
mapdl.post1()
mapdl.set(1, 2)

# necessary for any prnsol printouts
mapdl.header("off", "off", "off", "off", "off", "off")
nsigfig = 10
mapdl.format("", "E", nsigfig + 9, nsigfig)

@staticmethod
@pytest.mark.parametrize("comp", COMPONENT_STRESS_TYPE)
def test_nodal_plastic_component_strain(mapdl, resume, comp):
Expand Down Expand Up @@ -1168,15 +1173,14 @@ def resume(mapdl, contact_solve):
mapdl.allsel()
mapdl.set("last")

@staticmethod
def test_nodal_contact_friction_stress(mapdl, resume):
# Format tables.
mapdl.post1()
mapdl.header("OFF", "OFF", "OFF", "OFF", "OFF", "OFF")
nsigfig = 10
mapdl.format("", "E", nsigfig + 9, nsigfig)
mapdl.page(1e9, "", -1, 240)

@staticmethod
def test_nodal_contact_friction_stress(mapdl, resume):
# Format tables.
prnsol = mapdl.prnsol("CONT")
array = np.genfromtxt(prnsol.splitlines(), skip_header=1)
sfric_prn = array[:, 4]
Expand Down

0 comments on commit bad6d06

Please sign in to comment.