Vessel Design
Vessel Design
Vessel Design
Select Case V
Case 0 To 1.4
LenghtSupport = 0.88
LenghtSupport = 0.98
LenghtSupport = 1.08
Case 1.801 To 2
LenghtSupport = 1.18
LenghtSupport = 1.28
LenghtSupport = 1.38
LenghtSupport = 1.48
LenghtSupport = 1.58
Case 2.801 To 3
LenghtSupport = 1.68
LenghtSupport = 1.78
LenghtSupport = 1.98
End Select
End Function
Public Function MaximumWeightSupport(MW)
Select Case MW
Case 0 To 1.4
MaximumWeightSupport = 230
MaximumWeightSupport = 330
MaximumWeightSupport = 380
Case 1.801 To 2
MaximumWeightSupport = 460
MaximumWeightSupport = 750
MaximumWeightSupport = 900
MaximumWeightSupport = 1000
MaximumWeightSupport = 1350
Case 2.801 To 3
MaximumWeightSupport = 1750
MaximumWeightSupport = 2000
MaximumWeightSupport = 2500
End Select
End Function
Select Case Y
Case 0 To 1.4
YSupport = 0.2
YSupport = 0.2
YSupport = 0.2
Case 1.801 To 2
YSupport = 0.2
YSupport = 0.225
YSupport = 0.225
YSupport = 0.225
YSupport = 0.25
Case 2.801 To 3
YSupport = 0.25
YSupport = 0.25
YSupport = 0.25
End Select
End Function
Select Case Y
Case 0 To 1.4
CSupport = 1.4
CSupport = 1.41
CSupport = 1.59
Case 1.801 To 2
CSupport = 1.77
CSupport = 1.95
CSupport = 2.13
CSupport = 2.3
CSupport = 2.5
Case 2.801 To 3
CSupport = 2.64
CSupport = 2.82
CSupport = 3.2
End Select
End Function
Select Case E
Case 0 To 1.4
ESupport = 0.53
ESupport = 0.62
ESupport = 0.71
Case 1.801 To 2
ESupport = 0.8
ESupport = 0.89
ESupport = 0.98
ESupport = 1.03
ESupport = 1.1
Case 2.801 To 3
ESupport = 1.18
ESupport = 1.26
Case 3.201 To 3.6
MaterialEEESupport = 1.4
End Select
End Function
Select Case J
Case 0 To 1.4
JSupport = 0.305
JSupport = 0.35
JSupport = 0.405
Case 1.801 To 2
JSupport = 0.45
JSupport = 0.52
JSupport = 0.565
JSupport = 0.59
JSupport = 0.625
Case 2.801 To 3
JSupport = 0.665
JSupport = 0.815
End Select
End Function
Select Case G
Case 0 To 1.4
GSupport = 0.14
GSupport = 0.14
GSupport = 0.14
Case 1.801 To 2
GSupport = 0.14
GSupport = 0.15
GSupport = 0.15
GSupport = 0.15
GSupport = 0.15
Case 2.801 To 3
GSupport = 0.15
GSupport = 0.15
GSupport = 0.15
End Select
End Function
Select Case T
Case 0 To 1.4
ToneSupport = 10
ToneSupport = 10
ToneSupport = 10
Case 1.801 To 2
ToneSupport = 10
ToneSupport = 12
ToneSupport = 12
ToneSupport = 12
Case 2.601 To 2.8
ToneSupport = 12
Case 2.801 To 3
ToneSupport = 12
ToneSupport = 12
ToneSupport = 12
End Select
End Function
Select Case T
Case 0 To 1.4
TtwoSupport = 12
TtwoSupport = 12
TtwoSupport = 12
Case 1.801 To 2
TtwoSupport = 12
TtwoSupport = 16
TtwoSupport = 16
TtwoSupport = 16
Case 2.601 To 2.8
TtwoSupport = 16
Case 2.801 To 3
TtwoSupport = 16
TtwoSupport = 16
TtwoSupport = 16
End Select
End Function
Select Case BD
Case 0 To 1.4
BoltDimSupport = 24
lBoltDimSupport = 24
BoltDimSupport = 24
Case 1.801 To 2
BoltDimSupport = 24
BoltDimSupport = 24
BoltDimSupport = 27
Case 2.401 To 2.6
BoltDimSupport = 27
BoltDimSupport = 27
Case 2.801 To 3
BoltDimSupport = 27
BoltDimSupport = 27
BoltDimSupport = 27
End Select
End Function
Select Case BH
Case 0 To 1.4
HolesSupport = 30
HolesSupport = 30
HolesSupport = 30
Case 1.801 To 2
HolesSupport = 30
HolesSupport = 30
Case 2.201 To 2.4
HolesSupport = 33
HolesSupport = 33
HolesSupport = 33
Case 2.801 To 3
HolesSupport = 33
HolesSupport = 33
HolesSupport = 33
End Select
End Function
Ecost5 = (a2 * Lv + b2) - ((1 - Vd) / (1 - 0.5)) * ((a1 * Lv + b1) - (a2 * Lv + b2))
ECost = Ecost5
End If
Ecost6 = (a3 * Lv + b3) - ((2 - Vd) / (2 - 1)) * ((a3 * Lv + b3) - (a3 * Lv + b3))
ECost = Ecost6
End If
Ecost7 = (a4 * Lv + b4) - ((3 - Vd) / (3 - 2)) * ((a4 * Lv + b4) - (a4 * Lv + b4))
ECost = Ecost7
End If