Skip to content

Commit 234a55d

Browse files
committed
Fixed
1 parent b367a1e commit 234a55d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

RFEM/BasicObjects/thickness.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def Variable_Circle(
397397
def Layers(
398398
no: int = 1,
399399
name: str = None,
400-
layers = [['E_THICKNESS_TYPE_DIRECTLY', 1, 0.012], ['E_THICKNESS_TYPE_DIRECTLY', 1, 0.01]],
400+
layers = [['E_THICKNESS_TYPE_DIRECTLY', 1, 0.012, pi / 2], ['E_THICKNESS_TYPE_DIRECTLY', 1, 0.01, pi / 2]],
401401
stiffness_reduction: bool = False,
402402
stiffness_modification: list = [[1, None], [1, None], [1, None], [1, None]],
403403
specify_integration: bool = False,
@@ -416,7 +416,7 @@ def Layers(
416416
layers (list of lists): Layers Table as an Array. Angle of the material will be set if material model is orthotropic.
417417
layers = [layer[0], layer[1], layer[2],...]
418418
for layers[i][0] == 'E_THICKNESS_TYPE_DIRECTLY':
419-
layers[i] = ['E_THICKNESS_TYPE_DIRECTLY', material_tag(int), thickness_in_meter(float), comment(optional)]
419+
layers[i] = ['E_THICKNESS_TYPE_DIRECTLY', material_tag(int), thickness_in_meter(float), angle(float), comment(optional)]
420420
for layers[i][0] == previously_defined_thickness_tag:
421421
layers[i] = [previously_defined_thickness_tag(int), comment(optional)]
422422
stiffness_reduction (bool, optional): Enable/disable Stiffness Reduction
@@ -466,8 +466,9 @@ def Layers(
466466
tlrt.row.thickness_type_or_id = 'E_THICKNESS_TYPE_DIRECTLY'
467467
tlrt.row.material = layers[i][1]
468468
tlrt.row.thickness = layers[i][2]
469-
if len(layers[i]) == 4:
470-
tlrt.row.comment = layers[i][3]
469+
tlrt.row.angle = layers[i][3]
470+
if len(layers[i]) == 5:
471+
tlrt.row.comment = layers[i][4]
471472
elif type(layers[i][0]) == int:
472473
tlrt.row.thickness_type_or_id = str(layers[i][0])
473474
if len(layers[i]) == 2:

0 commit comments

Comments
 (0)