Skip to content

Commit e0487d3

Browse files
StachVStachV
authored andcommitted
update with main repository
1 parent ea1c36d commit e0487d3

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

Examples/ConcreteBridge/concrete_bridge.py

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#Import all modules required to access RFEM
1212
from RFEM.enums import MemberEccentricitySpecificationType, ActionCategoryType, NodalSupportType,\
1313
MemberSectionDistributionType, MemberSectionAlignment, SurfaceEccentricityAlignment
14-
from RFEM.initModel import Model, Calculate_all, connectToServer
14+
from RFEM.initModel import Model, Calculate_all
1515
from RFEM.BasicObjects.material import Material
1616
from RFEM.BasicObjects.section import Section
1717
from RFEM.BasicObjects.thickness import Thickness
@@ -26,33 +26,16 @@
2626
from RFEM.Loads.surfaceLoad import SurfaceLoad
2727
from RFEM.Loads.freeLoad import FreeLoad
2828
from RFEM.Tools.PlausibilityCheck import PlausibilityCheck
29-
from RFEM import connectionGlobals
30-
3129

3230
if __name__ == "__main__":
33-
# connect to server and establish a naming scheme
34-
connectToServer()
35-
array_of_models = connectionGlobals.client.service.get_model_list()
36-
if array_of_models:
37-
model_list = array_of_models[0]
38-
print("List of active models:", model_list)
39-
else:
40-
print("Creating new model.")
41-
model_list = []
42-
name_counter = 1
43-
model_name = "concrete_bridge_" + str(name_counter)
44-
while model_name in model_list:
45-
name_counter += 1
46-
model_name = "concrete_bridge_" + str(name_counter)
47-
4831
# ----------------INPUT PARAMETERS------------------#
4932
# inicialize model and define parameters
5033
Model(model_name="Concrete_bridge")
5134

52-
num_bridge_fields = 3 # number of whole bridge fields (between pillars)
53-
bridge_height = float(9) # primary parameters, input in meters
54-
bridge_width = float(9)
55-
bridge_length = float(9) # length of one field/span
35+
num_bridge_fields = 8 # number of whole bridge fields (between pillars)
36+
bridge_height = float(18) # primary parameters, input in meters
37+
bridge_width = float(12)
38+
bridge_length = float(16) # length of one field/span
5639
# secondary (derived) parameters, input optional in meters
5740
pillar_dimension = bridge_width/6
5841
girder_width = pillar_dimension
@@ -209,4 +192,4 @@
209192
Model.clientModel.service.finish_modification()
210193
PlausibilityCheck()
211194
print("Calculating results.")
212-
Calculate_all()
195+
Calculate_all()

0 commit comments

Comments
 (0)