Table of Contents¶
t3co/cost_models/capital_costs¶
CapitalCosts Objects¶
__new__¶
Creates a new instance of the CapitalCosts class.
__init__¶
Initializes the CapitalCosts instance.
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data.msrp_total_dol
float, optional - MSRP in dollars as input
set_glider_cost¶
Sets the glider cost for the vehicle.
This method calculates the marked up glider cost based on the vehicle class and the base cost.
Inputs from scenario: - vehicle_glider_cost_dol
Estimated class variables: - glider_cost_dol
Arguments:
scenario
Scenario - The scenario instance containing configuration data, including the base cost for the glider.
set_fuel_converter_cost_dol¶
Sets the fuel converter cost for the vehicle.
This method calculates the marked up fuel converter cost based on the vehicle powertrain type and the cost per kW.
Inputs from vehicle: - fc_max_kw
Inputs from scenario: - fc_fuelcell_cost_dol_per_kw - fc_ice_cost_dol_per_kw - fc_cng_ice_cost_dol_per_kw - fc_ice_base_cost_dol
Estimated class variables: - fuel_converter_cost_dol
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data, including the cost per kW for the fuel converter.
set_fuel_storage_cost¶
Sets the fuel storage cost for the vehicle.
This method calculates the marked up fuel storage cost based on the vehicle powertrain type and the cost per kWh.
Inputs from vehicle: - fs_kwh
Inputs from scenario: - fs_h2_cost_dol_per_kwh - fs_cng_cost_dol_per_kwh - fs_cost_dol_per_kwh
Estimated class variables: - fuel_storage_cost_dol
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data, including the cost per kWh for the fuel storage.
set_motor_control_power_elecs_cost¶
Sets the motor control and power electronics cost for the vehicle.
This method calculates the marked up motor control and power electronics cost based on the vehicle powertrain type and the cost per kW.
Inputs from vehicle: - mc_max_kw
Inputs from scenario: - pe_mc_base_cost_dol - pe_mc_cost_dol_per_kw
Estimated class variables: - motor_control_power_elecs_cost_dol
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data, including the cost per kW for the motor control and power electronics.
set_plug_cost¶
Sets the plug cost for the vehicle.
This method calculates the marked up plug cost based on the base cost.
Inputs from scenario: - plug_base_cost_dol
Estimated class variables: - plug_cost_dol
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data, including the base cost for the plug.
set_battery_cost¶
Sets the battery cost for the vehicle.
This method calculates the marked up battery cost based on the energy storage system (ESS) capacity and the cost per kWh.
Inputs from vehicle: - ess_max_kwh
Inputs from scenario: - ess_base_cost_dol - ess_cost_dol_per_kwh
Estimated class variables: - battery_cost_dol
Arguments:
vehicle
Vehicle - The vehicle instance.scenario
Scenario - The scenario instance containing configuration data, including the cost per kWh for the battery.
set_msrp¶
Calculates the total MSRP (Manufacturer's Suggested Retail Price) for the vehicle.
This method calculates the total MSRP by summing the costs of various components of the vehicle. The calculation uses the following CapitalCosts elements: - glider_cost_dol - fuel_storage_cost_dol - fuel_converter_cost_dol - motor_control_power_elecs_cost_dol - battery_cost_dol - plug_cost_dol
Estimated class variables: - msrp_total_dol
set_purchase_tax¶
Sets the purchase tax for the vehicle.
This method calculates the purchase tax based on the total MSRP (Manufacturer's Suggested Retail Price) of the vehicle components. The calculations use the following CapitalCosts elements: - msrp_total_dol
Inputs from scenario: - tax_rate_pct
Estimated class variables: - purchase_tax_dol
Arguments:
scenario
Scenario - The scenario instance containing configuration data, including the tax rate.
set_downpayment¶
Sets the downpayment and initial principal for the vehicle purchase.
This method calculates the downpayment and initial principal based on the purchasing method specified in the scenario. The calculations use the following CapitalCosts elements: - msrp_total_dol - purchase_tax_dol
Inputs from scenario: - purchasing_method - purchasing_down_payment_pct - purchasing_interest_apr_pct_per_yr
Estimated class variables: - purchasing_downpayment_dol - purchasing_initial_principal_dol
Arguments:
scenario
Scenario - The scenario instance containing configuration data, including the purchasing method, down payment percentage, and interest rate.
set_residual_cost¶
Sets the residual cost for the vehicle.
This method calculates the residual cost based on the total MSRP (Manufacturer's Suggested Retail Price) of the vehicle components, the depreciation rates per year, and the vehicle's life span. The residual cost is the remaining value of the vehicle after depreciation. The calculation uses the following CapitalCosts elements: - msrp_total_dol
Inputs from scenario: - depreciation_rates_pct_per_yr - vehicle_life_yr
Estimated scenario variables: - residual_rate_pct
Estimated class variables: - residual_cost_dol
Arguments:
scenario
Scenario - The scenario instance containing configuration data, including depreciation rates and vehicle life span.
set_net_capital_cost¶
Sets the total capital cost for the vehicle.
This method calculates the total capital cost by summing the costs of various components and applying the purchase tax. The calculation uses the following CapitalCosts elements: - purchasing_downpayment_dol
Inputs from scenario: - tax_rate_pct
Estimated class variables: - net_capital_cost_dol
set_disc_residual_cost¶
Sets the discounted residual cost for the vehicle.
Arguments:
scenario
Scenario - The scenario instance containing configuration data.
get_marked_up_value¶
Returns the marked up value.
Arguments:
value
float - The value to mark up.scenario
Scenario - The scenario instance containing configuration data.
Returns:
float
- The marked up value.