diff --git a/Examples/Cantilever/Demo1.py b/Examples/Cantilever/Demo1.py index 7dc98276..45e591e9 100644 --- a/Examples/Cantilever/Demo1.py +++ b/Examples/Cantilever/Demo1.py @@ -37,10 +37,11 @@ NodalSupport(1, '1', NodalSupportType.FIXED) - StaticAnalysisSettings( - 1, '1. Ordnung', StaticAnalysisType.GEOMETRICALLY_LINEAR) + StaticAnalysisSettings.GeometricallyLinear(0, 1, "Linear") + StaticAnalysisSettings.SecondOrderPDelta(0, 2, "SecondOrder") + StaticAnalysisSettings.LargeDeformation(0, 3, "LargeDeformation") - LoadCase(1, 'Eigengewicht', [True, 0.0, 0.0, 1.0]) + LoadCase(1, 'Self-Weight', [True, 0.0, 0.0, 1.0]) NodalLoad( 1, 1, '2', LoadDirectionType.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W, f*1000) @@ -65,35 +66,3 @@ print ("Model dimension y " + str(modelStatus.property_dimensions.y)) print ("Model dimension z " + str(modelStatus.property_dimensions.z)) - # clientModel.service.save(r"D:/TEMP/model.rf6") - - # clientModel.service.export_to(r"D:/TEMP/model.gltf") - # clientModel.service.export_to(r"D:/TEMP/model.glb") - # clientModel.service.export_to(r"D:/TEMP/model.vtk") - # clientObject = clientModel.factory.create('ns0:nodal_load') - # export_to_ifc_object_location_type[] ifcLocation = null; // whole model will be exported - # ifcSettings = clientModel.factory.create('ns0:export_to_ifc_settings_type') - - # ifcSettings.axis_rotation_sequence = "X'Y'Z'" - # ifcSettings.mirror_axis_x = False - # ifcSettings.mirror_axis_y = False - # ifcSettings.mirror_axis_z = True - # ifcSettings.origin_coordinate_x = 0.0 - # ifcSettings.origin_coordinate_y = 0.0 - # ifcSettings.origin_coordinate_z = 0.0 - # ifcSettings.export_type = export_to_ifc_export_type.E_EXPORT_IFC4_REFERENCE_VIEW.name - # ifcSettings.rotation_angle_0 = 0.0 - # ifcSettings.rotation_angle_1 = 0.0 - # ifcSettings.rotation_angle_2 = 0.0 - # ifcSettings.switch_axis_x = export_to_ifc_axis_type.X.name - # ifcSettings.switch_axis_y = export_to_ifc_axis_type.Y.name - # ifcSettings.switch_axis_z = export_to_ifc_axis_type.Z.name - # ifcSettings.remove_accents = False - # clientModel.service.export_to_ifc(r'D:/TEMP/Mymodel.ifc', ifcSettings, None) - - # loadCases = [1] - # CalculateSelectedCases(loadCases=loadCases) - # ExportResulTablesWithDetailedMembersResultsToCsv(dirName) - # ExportResulTablesWithDetailedMembersResultsToXML(dirName + "Results.xml") - # #internalForces = ParseCSVResultsFromSelectedFileToDict(dirName + "\\My Model\\LC1_static_analysis_members_internal_forces.csv") - # results = ParseXMLResultsFromSelectedFileToDict(dirName + "Results.xml") diff --git a/RFEM/LoadCasesAndCombinations/staticAnalysisSettings.py b/RFEM/LoadCasesAndCombinations/staticAnalysisSettings.py index 60358479..53cc9b03 100644 --- a/RFEM/LoadCasesAndCombinations/staticAnalysisSettings.py +++ b/RFEM/LoadCasesAndCombinations/staticAnalysisSettings.py @@ -192,7 +192,7 @@ def LargeDeformation(self, """ # Client model - Model.clientObject = Model.clientModel.factory.create('ns0:static_analysis_settings') + clientObject = Model.clientModel.factory.create('ns0:static_analysis_settings') # Clears object atributes | Sets all atributes to None clearAtributes(clientObject) @@ -353,7 +353,7 @@ def SecondOrderPDelta (self, """ # Client model - Model.clientObject = clientModel.factory.create('ns0:static_analysis_settings') + clientObject = Model.clientModel.factory.create('ns0:static_analysis_settings') # Clears object atributes | Sets all atributes to None clearAtributes(clientObject)