Skip to content

Commit c1aaa25

Browse files
committed
Update test_a_rigid.py
1 parent 4289e7f commit c1aaa25

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/test_a_rigid.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import pytest
33
from xsection.library import load_shape
4+
from xsection.analysis import SaintVenantSectionAnalysis
45

56
def test_aisc_angle():
67
shape = load_shape("L7x4x3/4",
@@ -10,3 +11,16 @@ def test_aisc_angle():
1011
mesh_type="T6")
1112

1213
assert shape.area == pytest.approx(7.74, rel=1e-2)
14+
15+
def _test_aisc_angle_twist_center():
16+
shape = load_shape("L7x4x3/4",
17+
library="AISC16",
18+
mesh_scale=1/8,
19+
mesher="gmsh",
20+
fillet=False,
21+
mesh_type="T6")
22+
# sv = SaintVenantSectionAnalysis(shape)
23+
# sy, sz = sv.twist_center()
24+
sy, sz = shape._analysis.shear_center()
25+
assert sy == pytest.approx( 0, abs=0.1*shape.t)
26+
assert sz == pytest.approx( 0, abs=0.1*shape.t)

0 commit comments

Comments
 (0)