1111#Import all modules required to access RFEM
1212from 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
1515from RFEM .BasicObjects .material import Material
1616from RFEM .BasicObjects .section import Section
1717from RFEM .BasicObjects .thickness import Thickness
2626from RFEM .Loads .surfaceLoad import SurfaceLoad
2727from RFEM .Loads .freeLoad import FreeLoad
2828from RFEM .Tools .PlausibilityCheck import PlausibilityCheck
29- from RFEM import connectionGlobals
30-
3129
3230if __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
209192 Model .clientModel .service .finish_modification ()
210193 PlausibilityCheck ()
211194 print ("Calculating results." )
212- Calculate_all ()
195+ Calculate_all ()
0 commit comments