Skip to main content

NREL's Transportation Technology Total Cost of Ownership tool

Project description

t3co_logo

homepage github documentation PyPI - Version GitHub License PyPI - Python Version

T3CO : Transportation Technology Total Cost of Ownership Tool

Description

This repo houses T3CO (Transportation Technology Total Cost of Ownership), software for modeling total cost of ownership for commercial vehicles with advanced powertrains.

To get started, read the Quick Start Guide

For information on the T3CO models, go to the Overview

Usage

T3CO is a general framework allowing a user to determine the total cost of ownership (TCO) of a FASTSim vehicle (paired with a FASTSim DriveCycle(s) for determining fuel efficiency). The user can also determine performance of gradeability, acceleration, and range. In addition to straight TCO computation there is also the option to optimize a vehicle powertrain such that it meets performance optional targets while also optionally minimizing TCO.

Installation

T3CO is available on PyPI and as a public access GitHub repository. This gives the user two ways of installing the T3CO Python Package.

1. Installing From PyPI

pip install t3co

2. Cloning the GitHub Repo

T3CO can also be installed directly from a clone of the GitHub repository which makes it easier to access input files and run the tool using a Command Line Interface.

First, clone the repository from GitHub from your desired directory:

git clone https://github.com/NREL/T3CO.git T3CO

From within the Python environment, navigate to the parent directory containing the T3CO repository (e.g. cd GitHub/T3CO/) and run:

pip install -e .

This installs the local version of the T3CO clone along with all its dependencies.

Copying the Demo Input Files

The t3co.resources folder contains all the necessary input files needed for running T3CO. To get an offline copy of this folder in your preferred directory, run:

install_t3co_demo_inputs

More information on the demo input files can be found in the Installation Guide

Running T3CO

T3CO needs three main input files (Vehicles, Scenarios, and Config) to run an analysis. The analysis settings, file paths to main and auxiliary input files, and other parameter overrides are saved as an entry on the Config file. The user is provided with 500+ Vehicle-Scenario pairs inputs and four Config sample analyses to choose from to modify parameters and/or run their first T3CO analysis. The main module for T3CO,t3co.sweep, can be run using:

python -m t3co.sweep --analysis-id=0 --config=<path/to/T3COConfig.csv>

Point the --config argument to the T3COConfig.csv file path (either the t3co/resource/T3COConfig.csv file in a repo clone or the demo_inputs/T3COConfig.csv file after copying the demo input files. This parameter defaults to the T3COConfig.csv file in the t3co.resources module) and --analysis-id to the desired config.analysis_id (either an existing row or a newly added "Analysis" row in the T3COConfig.csv file. Default = 0).

Additional information on the inputs, the Batch Mode feature, other CLI arguments, and description of T3CO results are mentioned in the Quick Start Guide

Acknowledgements

This tool was developed with funding support from the US Department of Energy's Office of Energy Efficiency and Renewable Energy (EERE)'s Vehicle Technology Office.

DOE NREL Software Record: SWR-21-54

To cite T3CO

Lustbader, Jason, Panneer Selvam, Harish, Bennion, Kevin, Payne, Grant, Hunter, Chad, Penev, Michael, Brooker, Aaron, Baker, Chad, Birky, Alicia, Zhang, Chen, and Carow, Kyle. "T3CO (Transportation Technology Total Cost of Ownership) Open Source [SWR-21-54]." Computer software. September 16, 2024. https://github.com/NREL/T3CO. https://doi.org/10.11578/dc.20240806.4.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t3co-1.0.11.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t3co-1.0.11-py3-none-any.whl (4.6 MB view details)

Uploaded Python 3

File details

Details for the file t3co-1.0.11.tar.gz.

File metadata

  • Download URL: t3co-1.0.11.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for t3co-1.0.11.tar.gz
Algorithm Hash digest
SHA256 f5c060f077d9457fca148de624e1f198f698628e606cc0236b09e2bf0f0a8312
MD5 13c21a5ae4e09e725273f0ae06c47615
BLAKE2b-256 a4e4f9d38acb284f0bf60e3372ecb3aab0c1df9bf6b813af0dce9d3458fcff53

See more details on using hashes here.

File details

Details for the file t3co-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: t3co-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for t3co-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0d06ba29884e99aea22978170ebe50649e8f32d454938dc007d8094297fbbf89
MD5 c39e09b3a979f062ec0778e813b0d088
BLAKE2b-256 8cb9a600ce9b0aaf20ee3a8dcf6168032fe4ca0ee7d5a0c7d91995744304fcad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page