Transport.ftt_tr_main module#
ftt_tr_main.py#
Passenger road transport FTT module.
This is the main file for FTT: Transport, which models technological diffusion of passenger vehicle types due to simulated consumer decision making. Consumers compare the log of the levelised costs, which leads to changes in the market shares of different technologies.
The outputs of this module include sales, fuel use, and emissions.
Local library imports:
Support functions:
- divide
Element-wise divide which replaces divide-by-zeros with zeros
- Functions included:
- solve
Main solution function for the module
- get_lcot
Calculate levelised cost of transport
- get_sales
Calculate new sales/additions in FTT-Transport
- Transport.ftt_tr_main.solve(data, time_lag, titles, histend, year, domain)#
Main solution function for the module.
Add an extended description in the future.
- Parameters:
data (dictionary of NumPy arrays) – Model variables for the given year of solution
time_lag (dict) – Model variables in previous year
titles (dictionary of lists) – Dictionary containing all title classification
histend (dict of integers) – Final year of historical data by variable
year (int) – Current year
domain (dictionary of lists) – Pairs variables to domains
- Returns:
data – Model variables for the given year of solution
- Return type:
dictionary of NumPy arrays
Notes
This function should be broken up into more elements in development.