Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
junzis
GitHub Repository: junzis/openap
Path: blob/master/test/test_fuel.py
532 views
1
# %%
2
from openap import FuelFlow
3
4
fuel = FuelFlow(ac="a320", eng="cfm56-5b4")
5
6
print("-" * 70)
7
FF = fuel.at_thrust(acthr=50000, alt=0)
8
print("fuel.at_thrust(acthr=50000, alt=0)")
9
print(FF)
10
print("-" * 70)
11
12
FF = fuel.at_thrust(acthr=50000, alt=20000)
13
print("fuel.at_thrust(acthr=50000, alt=20000)")
14
print(FF)
15
print("-" * 70)
16
17
FF = fuel.takeoff(tas=100, alt=0, throttle=1)
18
print("fuel.takeoff(tas=100, alt=0, throttle=1)")
19
print(FF)
20
print("-" * 70)
21
22
FF = fuel.enroute(mass=60000, tas=200, alt=20000, vs=1000)
23
print("fuel.enroute(mass=60000, tas=200, alt=20000, vs=1000)")
24
print(FF)
25
print("-" * 70)
26
27
FF = fuel.enroute(mass=60000, tas=230, alt=32000, vs=0)
28
print("fuel.enroute(mass=60000, tas=230, alt=32000, vs=0)")
29
print(FF)
30
print("-" * 70)
31
32
FF = fuel.enroute(mass=[60000], tas=[230], alt=[32000], vs=[0])
33
print("fuel.enroute(mass=[60000], tas=[230], alt=[32000], vr=[0])")
34
print(FF)
35
print("-" * 70)
36
37