66)
77sys .path .append (PROJECT_ROOT )
88
9- from RFEM .enums import ThicknessDirection , ThicknessOrthotropyType
9+ from RFEM .enums import ThicknessDirection , ThicknessOrthotropyType , MaterialType , MaterialModel , MaterialStiffnessModificationType
1010from RFEM .enums import ThicknessShapeOrthotropySelfWeightDefinitionType , ThicknessStiffnessMatrixSelfWeightDefinitionType
1111from RFEM .initModel import Model
1212from RFEM .BasicObjects .material import Material
1313from RFEM .BasicObjects .thickness import Thickness
1414from RFEM .BasicObjects .node import Node
15+ from math import pi
1516
1617if Model .clientModel is None :
1718 Model ()
@@ -20,7 +21,16 @@ def test_thickness():
2021
2122 Model .clientModel .service .delete_all ()
2223 Model .clientModel .service .begin_modification ()
24+
2325 Material (1 , 'C30/37' )
26+ params = {
27+ "material_type" : MaterialType .TYPE_TIMBER .name ,
28+ "material_model" : MaterialModel .MODEL_ORTHOTROPIC_2D .name ,
29+ "stiffness_modification" : True ,
30+ "stiffness_modification_type" : MaterialStiffnessModificationType .STIFFNESS_MODIFICATION_TYPE_DIVISION .name ,
31+ "application_context" : "TIMBER_DESIGN"
32+ }
33+ Material (no = 2 , name = "C24 BBS XL" , params = params )
2434
2535 ## THICKNESS TYPE
2636
@@ -75,7 +85,7 @@ def test_thickness():
7585 Thickness .Layers (
7686 no = 7 ,
7787 name = 'Layers' ,
78- layers = [['E_THICKNESS_TYPE_DIRECTLY' , 1 , 0.123 ],
88+ layers = [['E_THICKNESS_TYPE_DIRECTLY' , 2 , 0.123 , pi / 2 ],
7989 [2 , 'Defined Thicness' ]],
8090 comment = 'Comment' )
8191
@@ -126,6 +136,7 @@ def test_thickness():
126136
127137 th = Model .clientModel .service .get_thickness (7 )
128138 assert th .layers_reference_table ['thickness_layers_reference_table' ][0 ].row ['thickness' ] == 0.123
139+ assert th .layers_reference_table ['thickness_layers_reference_table' ][0 ].row ['angle' ] == pi / 2
129140 assert th .layers_reference_table ['thickness_layers_reference_table' ][1 ].row ['thickness_type_or_id' ] == '2'
130141 assert th .layers_reference_table ['thickness_layers_reference_table' ][1 ].row ['comment' ] == 'Defined Thicness'
131142
0 commit comments