forked from dlubal-software/RFEM_Python_Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMFE_Results_MIF_TEST2.py
More file actions
35 lines (26 loc) · 1.57 KB
/
MFE_Results_MIF_TEST2.py
File metadata and controls
35 lines (26 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from RFEM.enums import CaseObjectType
from RFEM.initModel import Model
from RFEM.Results.resultTables import ResultTables, GetMaxValue, GetMinValue
Naam_Model = "MFE_HAL.rf6"
StaafNummer = 17
parameter = 'internal_force_vz'
Model(False,Naam_Model)
MIF = ResultTables.MembersInternalForces(CaseObjectType.E_OBJECT_TYPE_DESIGN_SITUATION,1,StaafNummer)
MIFSet = ResultTables.MembersInternalForcesByMemberSet(CaseObjectType.E_OBJECT_TYPE_DESIGN_SITUATION,1,5)
MIFS = ResultTables.MembersInternalForcesBySection(CaseObjectType.E_OBJECT_TYPE_LOAD_COMBINATION,2,4,True)
MIFSD = ResultTables.MembersInternalForcesBySection(CaseObjectType.E_OBJECT_TYPE_DESIGN_SITUATION,1,4,True)
MinV = f'{GetMinValue(MIF,parameter):.2f}' # f string formatting voor 2 decimale getallen
MaxV = f'{GetMaxValue(MIF,parameter):.2f}' # f string formatting voor 2 decimale getallen
MinVs = f'{GetMinValue(MIFSet,parameter):.2f}' # f string formatting voor 2 decimale getallen
MaxVs = f'{GetMaxValue(MIFSet,parameter):.2f}' # f string formatting voor 2 decimale getallen
MaxVs = f'{GetMaxValue(MIFSet,parameter):.2f}' # f string formatting voor 2 decimale getallen
print("MIF staaf " + str(StaafNummer) + ":")
print("Min. waarde " + parameter + ":" + MinV)
print("Max. waarde " + parameter + ":" + MaxV)
print("Min. waarde " + parameter + "Set 5:" + MinVs)
print("Max. waarde " + parameter + "Set 5:" + MaxVs)
# print(f'{GetMaxValue(MIF,"internal_force_n"):.2f}') # f string formatting voor 2 decimale getallen
print(GetMinValue(MIFS,parameter))
print(GetMaxValue(MIFS,parameter))
print(GetMaxValue(MIFSD,parameter))
print("einde")