|
10 | 10 |
|
11 | 11 | #Import all modules required to access RFEM |
12 | 12 | from RFEM.enums import MemberEccentricitySpecificationType, ActionCategoryType, NodalSupportType,\ |
13 | | - MemberSectionDistributionType, MemberSectionAlignment, SurfaceEccentricityAlignment |
| 13 | + MemberCrossSectionDistributionType, MemberCrossSectionAlignment, SurfaceEccentricityAlignment |
14 | 14 | from RFEM.initModel import Model, Calculate_all |
15 | 15 | from RFEM.BasicObjects.material import Material |
16 | | -from RFEM.BasicObjects.section import Section |
| 16 | +from RFEM.BasicObjects.crossSection import CrossSection |
17 | 17 | from RFEM.BasicObjects.thickness import Thickness |
18 | 18 | from RFEM.BasicObjects.node import Node |
19 | 19 | from RFEM.BasicObjects.line import Line |
|
63 | 63 | # materials |
64 | 64 | Material(1, "C30/37") |
65 | 65 | Material(2, "C50/60") |
66 | | - # sections |
67 | | - Section(1,"SQ_M1 " + str(pillar_dimension), 2, "pillar") |
68 | | - Section(2,f"R_M1 {girder_width}/{girder_height}", 2, "girder") |
69 | | - Section(3, f"R_M1 {beam_width}/{beam_height_inwards}", 2, "beam_1") |
70 | | - Section(4, f"R_M1 {beam_width}/{beam_height_outwards}", 2, "beam_2") |
| 66 | + # cross sections |
| 67 | + CrossSection(1,"SQ_M1 " + str(pillar_dimension), 2, "pillar") |
| 68 | + CrossSection(2,f"R_M1 {girder_width}/{girder_height}", 2, "girder") |
| 69 | + CrossSection(3, f"R_M1 {beam_width}/{beam_height_inwards}", 2, "beam_1") |
| 70 | + CrossSection(4, f"R_M1 {beam_width}/{beam_height_outwards}", 2, "beam_2") |
71 | 71 | # thicknesses |
72 | 72 | Thickness(1, material_no= 1, uniform_thickness_d= slab_thickness) |
73 | 73 |
|
|
139 | 139 | for n in range(beams_per_field*num_bridge_fields): |
140 | 140 | Member.Beam( |
141 | 141 | m_count+1, beam_start_node, beam_start_node+1, |
142 | | - MemberSectionDistributionType.SECTION_DISTRIBUTION_TYPE_LINEAR, |
| 142 | + MemberCrossSectionDistributionType.SECTION_DISTRIBUTION_TYPE_LINEAR, |
143 | 143 | start_section_no=3, end_section_no=4, |
144 | | - distribution_parameters= [MemberSectionAlignment.SECTION_ALIGNMENT_TOP], |
| 144 | + distribution_parameters= [MemberCrossSectionAlignment.SECTION_ALIGNMENT_TOP], |
145 | 145 | params= {"member_eccentricity_start":2, "member_eccentricity_end":1} |
146 | 146 | ) |
147 | 147 | Member.Beam( |
148 | 148 | m_count+2, beam_start_node, beam_start_node+2, |
149 | | - MemberSectionDistributionType.SECTION_DISTRIBUTION_TYPE_LINEAR, |
| 149 | + MemberCrossSectionDistributionType.SECTION_DISTRIBUTION_TYPE_LINEAR, |
150 | 150 | start_section_no=3, end_section_no=4, |
151 | | - distribution_parameters= [MemberSectionAlignment.SECTION_ALIGNMENT_TOP], |
| 151 | + distribution_parameters= [MemberCrossSectionAlignment.SECTION_ALIGNMENT_TOP], |
152 | 152 | params= {"member_eccentricity_start":3, "member_eccentricity_end":1} |
153 | 153 | ) |
154 | 154 |
|
|
0 commit comments