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 gradability, 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

From PyPI

pip install t3co

From Github

First, clone the repository from NREL GitHub:

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

t3co depends on python 3.8 to 3.10. One way to satisfy this is to use conda:

conda create -n t3co python=3.10
conda activate t3co

After creating the environment, navigate to the parent directory containing the T3CO repository e.g. cd github/T3CO/ and run:

pip install -e .

from within the t3co python environment you created.

This will install T3CO with minimal dependencies such that t3co files can be editable. Developers will find the -e option handy since t3co will be installed in place from the installation location, and any updates will be propagated each time t3co is freshly imported.

Demo

Using the T3CO Config file

Create a new analysis_id on ./t3co/resources/T3COConfig.csv or update the existing rows and use them to run T3CO.

cd t3co
python sweep.py --analysis-id=0

Using Command Line Arguments

cd t3co
python sweep.py --skip_all_opt --selections  [1,2,3,4,5] --dst_dir .t3co_results/demodata

using optimiztion in sweep module see

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.8.tar.gz (6.2 MB view hashes)

Uploaded Source

Built Distribution

t3co-1.0.8-py3-none-any.whl (6.1 MB view hashes)

Uploaded Python 3

Supported by

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