We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d5008 commit 62ee059Copy full SHA for 62ee059
tests/test_StiffnessTensor.py
@@ -366,5 +366,21 @@ def test_orthotropic(self):
366
assert nu.eval([0, 0, 1], [0, 1, 0]) == approx(nu_zy)
367
assert nu.eval([0, 0, 1], [1, 0, 0]) == approx(nu_zx)
368
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
+
385
if __name__ == '__main__':
386
unittest.main()
0 commit comments