Skip to content

Commit c1c360b

Browse files
Add test for get_stress_at_points
1 parent 278ba23 commit c1c360b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sectionproperties/tests/test_stress.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ def test_stress_runtime_errors():
1919
# check runtime errors with shear/torsion applied, no warping analysis
2020
with pytest.raises(RuntimeError):
2121
sec.calculate_stress(Vx=1)
22+
sec.get_stress_at_points(pts=[[10, 10]], Vx=1)
2223

2324
with pytest.raises(RuntimeError):
2425
sec.calculate_stress(Vy=1)
26+
sec.get_stress_at_points(pts=[[10, 10]], Vy=1)
2527

2628
with pytest.raises(RuntimeError):
2729
sec.calculate_stress(Mzz=1)
30+
sec.get_stress_at_points(pts=[[10, 10]], Mzz=1)
2831

2932
# check no runtime errors with no shear/torsion applied
3033
sec.calculate_stress(N=1)
@@ -44,3 +47,4 @@ def test_stress_runtime_errors():
4447
sec.calculate_stress(Vx=1)
4548
sec.calculate_stress(Vy=1)
4649
sec.calculate_stress(Mzz=1)
50+
sec.get_stress_at_points(pts=[[10, 10]], Mzz=1)

0 commit comments

Comments
 (0)