Ejemplo n.º 1
0
from MARILib.aircraft_model.airplane import viewer as show

# Initialize aircraft data structure
#------------------------------------------------------------------------------------------------------
aircraft = Aircraft()

design_range = unit.m_NM(3000)
cruise_mach = 0.78
n_pax_ref = 150

propulsion_architecture = 3
n_engine = 2

# Initialize all input data
#------------------------------------------------------------------------------------------------------
run.aircraft_initialize(aircraft, n_pax_ref, design_range, cruise_mach,
                        propulsion_architecture, n_engine)

# Possibility to modify initial values
#------------------------------------------------------------------------------------------------------
study_name = "This airplane"

aircraft.turbofan_engine.reference_thrust = 130000  # Newtons
aircraft.wing.area = 155  # m2

e_power = 1.0e6  # Watts, electric motor power

aircraft.power_elec_chain.mto = e_power
aircraft.power_elec_chain.mcn = e_power
aircraft.power_elec_chain.mcl = e_power
aircraft.power_elec_chain.mcr = e_power
Ejemplo n.º 2
0
from MARILib.processes import design as run

# Initialize aircraft data structure
#------------------------------------------------------------------------------------------------------
aircraft = Aircraft()

design_range = unit.m_NM(3000)
cruise_mach = 0.78
n_pax_ref = 150

propu_config = 2
n_engine = 2

# Initialize all input data
#------------------------------------------------------------------------------------------------------
run.aircraft_initialize(aircraft, n_pax_ref, design_range, cruise_mach,
                        propu_config, n_engine)

# Possibility to modify initial values
#------------------------------------------------------------------------------------------------------
study_name = "This airplane"

aircraft.battery.strategy = 2

aircraft.propulsion.bli_effect = 1  # 1: with, 0: without
aircraft.power_elec_chain.overall_efficiency = 0.90  # 0.90 from init.e_chain_efficiency()

aircraft.economics.battery_price = 20  # $/kg

aircraft.economics.elec_price = 0.15 / unit.J_kWh(1)  # 0.05 $/kWh
aircraft.economics.fuel_price = 2 / unit.liter_usgal(1)  # 2 $/USgal