Hi members
I have got this code and i dont know how to make use of it. Could anyone please lend me a hand with regards to this.
Thanks in advance.
Any Questions please PM me thanks.
Rem ----- Input Data -----
No.ofSeats = 4
Baggage = 60
Fuel = 60
FPDrag = 2.6
Clmax = 1.9
No.ofEngines = 1
Power = 200
RPM = 2800
WingArea = 136
CanardArea = 21
TailArea = 45
WingAR = 9.56
CanardAR 6.48
TailAR = 5.6
Rem ----- Aircraft Design Program -----
Print ""
If CanardArea <> 0 Then GoTo 120
CanardArea = 0.0000000001
CanardAR = 1
If TailArea <> 0 Then GoTo 130
TailArea = 0.0000000001
TailAR = 1
TotArea = WingArea + CanardArea
WF = Fuel * 6
UL = 170 * No.ofSeats + Baggage + WF
GW = UL / 0.4
EW = GW - UL
PP = No.ofSeats * 170
VS = Sqr(840.34 * GW / (TotArea * Clmax))
VSmph = VS * 682
Cwing = Sqr(WingArea / WingAR)
Bwing = WingArea / Cwing
Ccanard = Sqr(CanardArea / CanardAR)
Bcanard = CanardArea.Ccanard
Ctail = Sqr(TailArea / TailAR)
Btail = TailArea / Ctail
V = Sqr(1682 * Power * No.ofEngines / FPDrag)
Dia = 360 * (Power / (V * RPM ^ 2)) ^ 0.25
Rem ----- Maximum Speed -----
Tstatic = No.ofEngines * 7.38 * (Power * Dia) ^ 0.667
Vm = 0
Vm = Vm + 2
TD = Tstatic * (1 - 0.106 * Vm * Sqr((RPM * Dia ^ 3) / (Power * 10 ^ 7)))
Drag = 0.00119 * FPDrag * Vm ^ 2
If Drag > TD Then GoTo 250
If Drag < TD Then GoTo 225
Vmph = Vm * 0.68
Rem ----- Propeller Diameter -----
Dia = 360 * (Power / (Vm * RPM ^ 2)) ^ 0.25
Din = 12 * Dia
Rem ----- Performance-----
Vcruise = 0.85 * Vm
Vcmph = 0.68 * Vcruise
CLcruise = 2 * GW / (0.00238 * TotArea * Vcruise ^ 2)
Alpha = 57.3 * CLcruise * (TotArea + 2) / (6.283 * TotArea)
Vcl1 = Sqr(GW * 840.34 / TotArea)
ROC = 60 * Vcl1 * (10.44 * Power * No.ofEngines / (GW * Sqr(GW / TotArea)) - 0.02 - 1 / (3.14 * WingAR))
SFC = 0.000446 * Power ^ 2 - 0.0125 * Power + 2.79
Range = Fuel * Vcmph / SFC
Rem ----- Output -----
Print " Empty Weight ="; Int(EW); "Ibs"
Print " Pilot and Passanger ="; Int(PP); "Ibs"
Print " Baggage ="; Int(Baggage); "Ibs"
Print " Fuel ="; Int(WF); "Ibs"
Print " Useful Load ="; Int(UL); "Ibs"
Print " Gross Weight ="; Int(GW); "Ibs"
Print " Flat Plate AD ="; FPDrag
Print " No. of Seats ="; No.ofSeats
Print " No. of Engines ="; No.ofEngines
Print " Engine Power ="; Power; "hp"
Print " Propeller Speed ="; RPM; "rpm"
Print " Total Static Thrust ="; Int(Tstatic); "Ibs"
Print " Propeller Diameter ="; Int(Din); "inches": Print ""
Print "": Print "": Print "": Print ""
Print " Wing Area ="; WingArea; "sq.ft"
Print " Wing Span ="; Bwing; "feet"
Print " Average Speed ="; Cwing; "feet"
Print " Cruise Lift Coef. ="; CLcruise
Print ""
Print " Canard Area ="; CanardArea; "sq.ft"
Print " Canard Span ="; Bcanard; "feet"
Print " Canard Chord ="; Ccanard; "feet"
Print " Tail Area ="; TailArea; "sq.ft"
Print " Tail Span ="; Btail; "feet"
Print " Tail Chord ="; Ctail; "feet"
Print "": Print "": Print ""
Print "": Print "": Print "": Print "": Print "": Print ""
Print " Maximum Speed ="; Int(Vmph); "mph"
Print " Cruise Speed ="; Int(Vcmph); "mph"
Print " Stall Speed ="; Int(VSmph); "mph"
Print " Maximum ROC ="; Int(ROC); "mph"
Print " Range no Reserve ="; Int(Range); "miles"
Print "": Print "": Print "": Print "": Print "": Print "": Print ""
I have got this code and i dont know how to make use of it. Could anyone please lend me a hand with regards to this.
Thanks in advance.
Any Questions please PM me thanks.
Rem ----- Input Data -----
No.ofSeats = 4
Baggage = 60
Fuel = 60
FPDrag = 2.6
Clmax = 1.9
No.ofEngines = 1
Power = 200
RPM = 2800
WingArea = 136
CanardArea = 21
TailArea = 45
WingAR = 9.56
CanardAR 6.48
TailAR = 5.6
Rem ----- Aircraft Design Program -----
Print ""
If CanardArea <> 0 Then GoTo 120
CanardArea = 0.0000000001
CanardAR = 1
If TailArea <> 0 Then GoTo 130
TailArea = 0.0000000001
TailAR = 1
TotArea = WingArea + CanardArea
WF = Fuel * 6
UL = 170 * No.ofSeats + Baggage + WF
GW = UL / 0.4
EW = GW - UL
PP = No.ofSeats * 170
VS = Sqr(840.34 * GW / (TotArea * Clmax))
VSmph = VS * 682
Cwing = Sqr(WingArea / WingAR)
Bwing = WingArea / Cwing
Ccanard = Sqr(CanardArea / CanardAR)
Bcanard = CanardArea.Ccanard
Ctail = Sqr(TailArea / TailAR)
Btail = TailArea / Ctail
V = Sqr(1682 * Power * No.ofEngines / FPDrag)
Dia = 360 * (Power / (V * RPM ^ 2)) ^ 0.25
Rem ----- Maximum Speed -----
Tstatic = No.ofEngines * 7.38 * (Power * Dia) ^ 0.667
Vm = 0
Vm = Vm + 2
TD = Tstatic * (1 - 0.106 * Vm * Sqr((RPM * Dia ^ 3) / (Power * 10 ^ 7)))
Drag = 0.00119 * FPDrag * Vm ^ 2
If Drag > TD Then GoTo 250
If Drag < TD Then GoTo 225
Vmph = Vm * 0.68
Rem ----- Propeller Diameter -----
Dia = 360 * (Power / (Vm * RPM ^ 2)) ^ 0.25
Din = 12 * Dia
Rem ----- Performance-----
Vcruise = 0.85 * Vm
Vcmph = 0.68 * Vcruise
CLcruise = 2 * GW / (0.00238 * TotArea * Vcruise ^ 2)
Alpha = 57.3 * CLcruise * (TotArea + 2) / (6.283 * TotArea)
Vcl1 = Sqr(GW * 840.34 / TotArea)
ROC = 60 * Vcl1 * (10.44 * Power * No.ofEngines / (GW * Sqr(GW / TotArea)) - 0.02 - 1 / (3.14 * WingAR))
SFC = 0.000446 * Power ^ 2 - 0.0125 * Power + 2.79
Range = Fuel * Vcmph / SFC
Rem ----- Output -----
Print " Empty Weight ="; Int(EW); "Ibs"
Print " Pilot and Passanger ="; Int(PP); "Ibs"
Print " Baggage ="; Int(Baggage); "Ibs"
Print " Fuel ="; Int(WF); "Ibs"
Print " Useful Load ="; Int(UL); "Ibs"
Print " Gross Weight ="; Int(GW); "Ibs"
Print " Flat Plate AD ="; FPDrag
Print " No. of Seats ="; No.ofSeats
Print " No. of Engines ="; No.ofEngines
Print " Engine Power ="; Power; "hp"
Print " Propeller Speed ="; RPM; "rpm"
Print " Total Static Thrust ="; Int(Tstatic); "Ibs"
Print " Propeller Diameter ="; Int(Din); "inches": Print ""
Print "": Print "": Print "": Print ""
Print " Wing Area ="; WingArea; "sq.ft"
Print " Wing Span ="; Bwing; "feet"
Print " Average Speed ="; Cwing; "feet"
Print " Cruise Lift Coef. ="; CLcruise
Print ""
Print " Canard Area ="; CanardArea; "sq.ft"
Print " Canard Span ="; Bcanard; "feet"
Print " Canard Chord ="; Ccanard; "feet"
Print " Tail Area ="; TailArea; "sq.ft"
Print " Tail Span ="; Btail; "feet"
Print " Tail Chord ="; Ctail; "feet"
Print "": Print "": Print ""
Print "": Print "": Print "": Print "": Print "": Print ""
Print " Maximum Speed ="; Int(Vmph); "mph"
Print " Cruise Speed ="; Int(Vcmph); "mph"
Print " Stall Speed ="; Int(VSmph); "mph"
Print " Maximum ROC ="; Int(ROC); "mph"
Print " Range no Reserve ="; Int(Range); "miles"
Print "": Print "": Print "": Print "": Print "": Print "": Print ""
Comment