-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_ULS.py
24 lines (21 loc) · 1006 Bytes
/
main_ULS.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from reinforced_concrete.sections import create_concrete_material, create_steel_material, Bars, ReinforcedConcreteSection, InternalForces
from reinforced_concrete.ULS import computeVero
#from reinforced_concrete.sls import sls
def main():
"""
Negli input M è sempre + e se non lo è metto + e considero una sezione ruotata, che alla fine girerò.
N ha segno opposto negli slu
"""
cls = create_concrete_material("EC2","C25/30")
steel = create_steel_material("NTC18","B450C")
As = Bars(n_bars=5, diameter=16, steel_material=steel)
As1 = Bars(n_bars=5, diameter=16, steel_material=steel)
forces = InternalForces(M=207.2*10**6, N=-22*10**3)
section = ReinforcedConcreteSection(b=400, d=310, d1=40, d2=40, concrete_material=cls, As=As, As1=As1, internal_forces=forces, name="sec1")
results_dict, logs = computeVero(section=section)
print(section)
print(logs)
print(results_dict)
# print(section.__dict__)
if __name__ == "__main__":
main()