Skip to content

Commit

Permalink
ENH: removed support to legacy input
Browse files Browse the repository at this point in the history
  • Loading branch information
saullocastro committed Jul 24, 2021
1 parent 05c6386 commit c35de78
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions composites/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def read_laminaprop(laminaprop, rho=0):
laminaprop = (e, nu) # new
laminaprop = (e1, e2, nu12) # legacy, kept for compatibility with old codes
====== ==============================
symbol value
Expand Down Expand Up @@ -68,14 +67,9 @@ def read_laminaprop(laminaprop, rho=0):
matlam = MatLamina()

#laminaProp = (e1, e2, nu12, g12, g13, g23, e3, nu13, nu23)
assert len(laminaprop) in (2, 3, 6, 9), ('Invalid entry for laminaprop: ' +
str(laminaprop))
if len(laminaprop) == 3: #ISOTROPIC in-plane stress legacy
e = laminaprop[0]
nu = laminaprop[2]
g = e/(2*(1+nu))
laminaprop = (e, e, nu, g, g, g, 0, 0, 0)
elif len(laminaprop) == 2: #ISOTROPIC in-plane stress new
assert len(laminaprop) in (2, 6, 9), ('Invalid entry for laminaprop: ' +
str(laminaprop))
if len(laminaprop) == 2: #ISOTROPIC in-plane stress new
e = laminaprop[0]
nu = laminaprop[1]
g = e/(2*(1+nu))
Expand Down

0 comments on commit c35de78

Please sign in to comment.