-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
21 lines (17 loc) · 1.22 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from classes import ConcreteProperties, Rectangular, Concrete, Reinforcement, LongitudinalReinforcement, TransverseReinforcement, BeamSection
from functions import beam_section_panel_option, header, print_welcome, _read_properties, _beam_reinforcement
def main():
header(print_welcome)
beam_name=input('Enter the beam name: ')
width,height, cover, reinforcement_yield_stress, concrete_compressive_strength = _read_properties()
geometry = Rectangular(width, height)
material = Concrete(reinforcement_yield_stress, concrete_compressive_strength, cover)
amount_top_rebar, top_diameter, amount_bottom_rebar, bottom_diameter, stirrups_diameter, stirrups_legs, stirrups_spacing = _beam_reinforcement()
reinforcement = Reinforcement(LongitudinalReinforcement(top_diameter, amount_top_rebar),
LongitudinalReinforcement(bottom_diameter, amount_bottom_rebar),
TransverseReinforcement(stirrups_diameter, stirrups_spacing, stirrups_legs))
beam = BeamSection(beam_name, ConcreteProperties(geometry, material, reinforcement))
while (option:=beam_section_panel_option()) !='Exit':
beam.printStrengthproperties(option)
if __name__=='__main__':
main()