nrel.hive.model.vehicle.mechatronics.powertrain

Submodules

Package Contents

Classes

Powertrain

a powertrain has the behavior where it calculate energy consumption in KwH

TabularPowertrain

builds a tabular, interpolated lookup model for energy consumption

Functions

build_powertrain(→ powertrain.Powertrain)

Attributes

DEFAULT_MODELS

class nrel.hive.model.vehicle.mechatronics.powertrain.Powertrain[source]

Bases: PowertrainMixin, PowertrainABC

a powertrain has the behavior where it calculate energy consumption in KwH

class nrel.hive.model.vehicle.mechatronics.powertrain.TabularPowertrain[source]

Bases: nrel.hive.model.vehicle.mechatronics.powertrain.powertrain.Powertrain

builds a tabular, interpolated lookup model for energy consumption

speed_units: nrel.hive.util.units.Unit
distance_units: nrel.hive.util.units.Unit
energy_units: nrel.hive.util.units.Unit
consumption_speed: numpy.ndarray
consumption_energy_per_distance: numpy.ndarray
classmethod from_data(data: Dict[str, Any])[source]

Build a Powertrain from a data dictionary

uses mph tabular value to calculate energy over a link

Parameters:

link – the link to calculate energy over.

Returns:

energy in units captured by self.energy_units

energy_cost(route: nrel.hive.model.roadnetwork.routetraversal.Route) float[source]

(estimated) energy cost to traverse this route

Parameters:

route – a route, either experienced, or, estimated

Returns:

energy cost of this route

nrel.hive.model.vehicle.mechatronics.powertrain.DEFAULT_MODELS: Dict[str, Type[powertrain.Powertrain]]
nrel.hive.model.vehicle.mechatronics.powertrain.build_powertrain(config: Dict[str, Any]) powertrain.Powertrain[source]