Skip to content

Commit 48d9be7

Browse files
committed
Update test_c_twist.py
1 parent ce91327 commit 48d9be7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_c_twist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ def test_c01_material():
2626
def _test_c01_centroid():
2727
shape = load_shape("C01", nu=0.3)
2828
shape = shape.translate(-shape.centroid)
29+
sv = SaintVenantSectionAnalysis(shape)
2930
A = shape.elastic.A
3031
Iy = shape.elastic.Iy
3132
Iz = shape.elastic.Iz
3233
Iyz = shape.elastic.Iyz
33-
J = shape.elastic.J
34+
J = sv.twist_rigidity()/shape.material["G"]
3435

3536

3637
assert A == pytest.approx( 58.8, rel=0.1)
@@ -64,4 +65,4 @@ def test_c04():
6465
ky, kz = tr.sce()
6566

6667
assert ky == pytest.approx(1/3.09621, rel=5e-2)
67-
assert kz == pytest.approx(1/2.34102, rel=5e-2)
68+
assert kz == pytest.approx(1/2.34102, rel=5e-2)

0 commit comments

Comments
 (0)