24
24
from RFEM .Imperfections .imperfectionCase import ImperfectionCase
25
25
from RFEM .Imperfections .memberImperfection import MemberImperfection
26
26
from RFEM .LoadCasesAndCombinations .loadCasesAndCombinations import LoadCasesAndCombinations
27
+ from RFEM .LoadCasesAndCombinations .designSituation import DesignSituation
28
+ from RFEM .LoadCasesAndCombinations .loadCombination import LoadCombination
29
+ from RFEM .LoadCasesAndCombinations .combinationWizard import CombinationWizard
27
30
from RFEM .LoadCasesAndCombinations .loadCase import LoadCase
28
31
from RFEM .LoadCasesAndCombinations .staticAnalysisSettings import StaticAnalysisSettings
29
32
from RFEM .Loads .nodalLoad import NodalLoad
@@ -139,7 +142,8 @@ def main():
139
142
if lst :
140
143
if 'SteelHallExcel' in lst [0 ]:
141
144
print ('Closing old Model...!' )
142
- connectionGlobals .client .service .close_model (0 , False )
145
+ index = lst [0 ].index ('SteelHallExcel' )
146
+ connectionGlobals .client .service .close_model (index , False )
143
147
print ('Creating new model...!' )
144
148
Model (True , 'SteelHallExcel.rf6' , delete_all = True )
145
149
@@ -376,6 +380,9 @@ def main():
376
380
LoadCase .StaticAnalysis (4 , 'Wind-Load_x' , True , 1 , ActionCategoryType .ACTION_CATEGORY_WIND_QW , [False ])
377
381
LoadCase .StaticAnalysis (5 , 'Wind-Load_y' , True , 1 , ActionCategoryType .ACTION_CATEGORY_WIND_QW , [False ])
378
382
383
+ CombinationWizard (1 , consider_imperfection_case = False , params = {'structure_modification_enabled' :'False' } )
384
+ DesignSituation (1 , DesignSituationType .DESIGN_SITUATION_TYPE_EQU_PERMANENT_AND_TRANSIENT , params = {'combination_wizard' : 1 })
385
+
379
386
# Creating Loads for LC2:Live Load
380
387
n , k , l = 0 , 0 , 0
381
388
for j in range (frame_number ):
@@ -447,7 +454,7 @@ def main():
447
454
nodeSupportForce_x , nodeSupportForce_y , nodeSupportForce_z , nodeMoment_x , nodeMoment_y , nodeMoment_z = [], [], [], [], [], []
448
455
449
456
for j in range (nodes ):
450
- dispTab = ResultTables .NodesDeformations (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 7 , j + 1 )
457
+ dispTab = ResultTables .NodesDeformations (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 1 , j + 1 )
451
458
nodisp_abs = GetMaxValue (dispTab , 'displacement_absolute' ) * 1000
452
459
nodisp_x = GetMaxValue (dispTab , 'displacement_x' ) * 1000
453
460
nodisp_y = GetMaxValue (dispTab , 'displacement_y' ) * 1000
@@ -467,7 +474,7 @@ def main():
467
474
nodeType = '-'
468
475
if (j + 1 ) in nodes_no :
469
476
nodeType = 'Hinged'
470
- supportForceTab = ResultTables .NodesSupportForces (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 7 , j + 1 )
477
+ supportForceTab = ResultTables .NodesSupportForces (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 1 , j + 1 )
471
478
nodesupforce_x = GetMaxValue (supportForceTab , 'support_force_p_x' )
472
479
nodesupforce_y = GetMaxValue (supportForceTab , 'support_force_p_y' )
473
480
nodesupforce_z = GetMaxValue (supportForceTab , 'support_force_p_z' )
@@ -508,7 +515,7 @@ def main():
508
515
509
516
k = 1
510
517
for j in range (beam_column ):
511
- dispTable = ResultTables .MembersLocalDeformations (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 7 , object_no = k )
518
+ dispTable = ResultTables .MembersLocalDeformations (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 1 , object_no = k )
512
519
maxDisp_abs = GetMaxValue (dispTable , 'displacement_absolute' ) * 1000
513
520
maxDisp_x = GetMaxValue (dispTable , 'displacement_x' ) * 1000
514
521
maxDisp_y = GetMaxValue (dispTable , 'displacement_y' ) * 1000
@@ -518,7 +525,7 @@ def main():
518
525
maxDisplacement_y .append (round (maxDisp_y , 3 ))
519
526
maxDisplacement_z .append (round (maxDisp_z , 3 ))
520
527
521
- momentTable = ResultTables .MembersInternalForces (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 7 , object_no = k )
528
+ momentTable = ResultTables .MembersInternalForces (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 1 , object_no = k )
522
529
523
530
if abs (GetMaxValue (momentTable , 'internal_force_n' )) > abs (GetMinValue (momentTable , 'internal_force_n' )):
524
531
maxFor_n = GetMaxValue (momentTable , 'internal_force_n' ) / 1000
@@ -584,7 +591,7 @@ def main():
584
591
maxMoment_my = np .array ([maxMoment_my ]).T
585
592
maxMoment_mz = np .array ([maxMoment_mz ]).T
586
593
587
- summary = ResultTables .Summary (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 7 )
594
+ summary = ResultTables .Summary (CaseObjectType .E_OBJECT_TYPE_LOAD_COMBINATION , 1 )
588
595
df = pd .DataFrame (summary )
589
596
new_df = df .loc [:,['description' , 'value' , 'units' , 'notes' ]]
590
597
0 commit comments