Skip to content

Commit 62ee059

Browse files
Add test for transverse_isotropic
1 parent 06d5008 commit 62ee059

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_StiffnessTensor.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,5 +366,21 @@ def test_orthotropic(self):
366366
assert nu.eval([0, 0, 1], [0, 1, 0]) == approx(nu_zy)
367367
assert nu.eval([0, 0, 1], [1, 0, 0]) == approx(nu_zx)
368368

369+
def test_transverse_isotropic(self):
370+
Ex, Ez = 100., 200.
371+
nu_yx, nu_zx = 0.2, 0.3
372+
Gxz = 80
373+
C = StiffnessTensor.transverse_isotropic(Ex=Ex, Ez=Ez, nu_yx=nu_yx, nu_zx=nu_zx, Gxz=Gxz)
374+
E = C.Young_modulus
375+
assert E.eval([1,0,0]) == approx(Ex)
376+
assert E.eval([0,1,0]) == approx(Ex)
377+
assert E.eval([0,0,1]) == approx(Ez)
378+
G = C.shear_modulus
379+
assert G.eval([1, 0, 0], [0, 0, 1]) == approx(Gxz)
380+
nu = C.Poisson_ratio
381+
assert nu.eval([0,1,0], [1,0,0]) == approx(nu_yx)
382+
assert nu.eval([0, 0, 1], [0, 1, 0]) == approx(nu_zx)
383+
assert nu.eval([0, 0, 1], [1, 0, 0]) == approx(nu_zx)
384+
369385
if __name__ == '__main__':
370386
unittest.main()

0 commit comments

Comments
 (0)