|
25 | 25 | from RFEM.Loads.nodalLoad import NodalLoad |
26 | 26 | from RFEM.AluminumDesign.aluminumSLSConfiguration import AluminumDesignSLSConfigurations |
27 | 27 | from RFEM.AluminumDesign.aluminumULSConfiguration import AluminumDesignULSConfigurations |
28 | | -from RFEM.TypesForAluminumDesign.aluminumEffectiveLengths import AluminumEffectiveLengths |
| 28 | +from RFEM.ConcreteDesign.ConcreteUltimateConfigurations import ConcreteUltimateConfiguration |
| 29 | +from RFEM.ConcreteDesign.ConcreteServiceabilityConfigurations import ConcreteServiceabilityConfiguration |
| 30 | +from RFEM.SteelDesign.steelUltimateConfigurations import SteelDesignUltimateConfigurations |
| 31 | +from RFEM.SteelDesign.steelServiceabilityConfiguration import SteelDesignServiceabilityConfigurations |
29 | 32 | from RFEM.TimberDesign.timberUltimateConfigurations import TimberDesignUltimateConfigurations |
30 | 33 | from RFEM.TimberDesign.timberServiceLimitStateConfigurations import TimberDesignServiceLimitStateConfigurations |
| 34 | +from RFEM.TypesForAluminumDesign.aluminumEffectiveLengths import AluminumEffectiveLengths |
| 35 | +from RFEM.TypesforConcreteDesign.ConcreteEffectiveLength import ConcreteEffectiveLength |
| 36 | +from RFEM.TypesForSteelDesign.steelEffectiveLengths import SteelEffectiveLengths |
31 | 37 | from RFEM.TypesForTimberDesign.timberEffectiveLengths import TimberEffectiveLengths |
32 | 38 |
|
33 | 39 | if Model.clientModel is None: |
@@ -79,6 +85,96 @@ def test_result_tables_aluminum_design_addon(): |
79 | 85 |
|
80 | 86 | SetAddonStatus(Model.clientModel, addOn=AddOn.aluminum_design_active, status=False) |
81 | 87 |
|
| 88 | +def test_result_tables_concrete_design_addon(): |
| 89 | + |
| 90 | + Model.clientModel.service.delete_all() |
| 91 | + Model.clientModel.service.begin_modification() |
| 92 | + |
| 93 | + SetAddonStatus(Model.clientModel, addOn=AddOn.concrete_design_active, status=True) |
| 94 | + |
| 95 | + Material(1, 'LC50/55 | DIN EN 1992-1-1/NA/A1:2015-12') |
| 96 | + |
| 97 | + Section(1, '2LR_M2 0.25/0.2/0.3') |
| 98 | + |
| 99 | + Node(1, 0.0, 0.0, 0.0) |
| 100 | + Node(2, 5, 0.0, 0.0) |
| 101 | + |
| 102 | + Member(1, 1, 2, 0.0, 1, 1) |
| 103 | + |
| 104 | + NodalSupport(1, '1', NodalSupportType.HINGED) |
| 105 | + NodalSupport(2, '2', [0, inf, inf, inf, 0, inf]) |
| 106 | + |
| 107 | + ConcreteEffectiveLength() |
| 108 | + |
| 109 | + LoadCasesAndCombinations() |
| 110 | + LoadCase.StaticAnalysis(1, 'Self-Weight',analysis_settings_no=1,action_category= ActionCategoryType.ACTION_CATEGORY_PERMANENT_G,self_weight=[True, 0.0, 0.0, 1.0]) |
| 111 | + |
| 112 | + DesignSituation(1, DesignSituationType.DESIGN_SITUATION_TYPE_EQU_PERMANENT_AND_TRANSIENT, True) |
| 113 | + |
| 114 | + StaticAnalysisSettings.GeometricallyLinear(1, "Linear") |
| 115 | + |
| 116 | + LoadCombination(1, combination_items=[[1,1,0,False]]) |
| 117 | + |
| 118 | + NodalLoad(1, 1, '2', NodalLoadDirection.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W, 1000) |
| 119 | + |
| 120 | + ConcreteUltimateConfiguration() |
| 121 | + ConcreteServiceabilityConfiguration() |
| 122 | + |
| 123 | + Model.clientModel.service.finish_modification() |
| 124 | + |
| 125 | + Calculate_all() |
| 126 | + |
| 127 | + assert Model.clientModel.service.has_any_results() |
| 128 | + assert ResultTables.ConcreteDesignOverviewNotValidDeactivated() |
| 129 | + |
| 130 | + SetAddonStatus(Model.clientModel, addOn=AddOn.concrete_design_active, status=False) |
| 131 | + |
| 132 | +def test_result_tables_steel_design_addon(): |
| 133 | + |
| 134 | + Model.clientModel.service.delete_all() |
| 135 | + Model.clientModel.service.begin_modification() |
| 136 | + |
| 137 | + SetAddonStatus(Model.clientModel, addOn=AddOn.steel_design_active, status=True) |
| 138 | + |
| 139 | + Material(1, 'S235') |
| 140 | + |
| 141 | + Section(1, 'IPE 120') |
| 142 | + |
| 143 | + Node(1, 0.0, 0.0, 0.0) |
| 144 | + Node(2, 5, 0.0, 0.0) |
| 145 | + |
| 146 | + Member(1, 1, 2, 0.0, 1, 1) |
| 147 | + |
| 148 | + NodalSupport(1, '1', NodalSupportType.HINGED) |
| 149 | + NodalSupport(2, '2', [0, inf, inf, inf, 0, inf]) |
| 150 | + |
| 151 | + SteelEffectiveLengths() |
| 152 | + |
| 153 | + LoadCasesAndCombinations() |
| 154 | + LoadCase.StaticAnalysis(1, 'Self-Weight',analysis_settings_no=1,action_category= ActionCategoryType.ACTION_CATEGORY_PERMANENT_G,self_weight=[True, 0.0, 0.0, 1.0]) |
| 155 | + |
| 156 | + DesignSituation(1, DesignSituationType.DESIGN_SITUATION_TYPE_EQU_PERMANENT_AND_TRANSIENT, True) |
| 157 | + |
| 158 | + StaticAnalysisSettings.GeometricallyLinear(1, "Linear") |
| 159 | + |
| 160 | + LoadCombination(1, combination_items=[[1,1,0,False]]) |
| 161 | + |
| 162 | + NodalLoad(1, 1, '2', NodalLoadDirection.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W, 1000) |
| 163 | + |
| 164 | + SteelDesignUltimateConfigurations() |
| 165 | + SteelDesignServiceabilityConfigurations() |
| 166 | + |
| 167 | + Model.clientModel.service.finish_modification() |
| 168 | + |
| 169 | + Calculate_all() |
| 170 | + |
| 171 | + assert Model.clientModel.service.has_any_results() |
| 172 | + assert ResultTables.SteelDesignDesignRatiosMembersByDesignSituation() |
| 173 | + assert ResultTables.SteelDesignDesignRatiosMembersByMember() |
| 174 | + assert ResultTables.SteelDesignDesignRatiosMembersBySection() |
| 175 | + |
| 176 | + SetAddonStatus(Model.clientModel, addOn=AddOn.steel_design_active, status=False) |
| 177 | + |
82 | 178 | def test_result_tables_timber_design_addon(): |
83 | 179 |
|
84 | 180 | Model.clientModel.service.delete_all() |
|
0 commit comments