Crates.io | fastsim-core |
lib.rs | fastsim-core |
version | 1.0.3 |
created_at | 2023-07-25 22:56:17.738568+00 |
updated_at | 2025-07-22 21:24:07.621743+00 |
description | Core FASTSim models for vehicle energy usage simulation |
homepage | https://www.nrel.gov/transportation/fastsim.html |
repository | https://github.com/NREL/fastsim |
max_upload_size | |
id | 926073 |
size | 1,051,496 |
This is the fastim-3
version of NREL's FASTSim.
It introduces numerous new enhancements and features, including:
save_interval
to None
, which means only the state at the last
time step, which includes fuel consumption and/or battery depletion, among other useful
cumulative state variables.fastsim-2
v. 60 mb in fastsim-3
fastsim-2
fastsim-2
Set up and activate a python environment (compatible with Python 3.8 - 3.10; we recommend Python 3.10) with the following steps.
conda create -n fastsim python=3.10
conda activate fastsim
There is some variation based on your Operating System:
PowerShell (windows):
python -m venv fastsim-venv
-- name is user decisionfastsim-venv/Scripts/Activate.ps1
Bash (i.e. unix/linux/mac):
python -m venv fastsim-venv
-- name is user decisionsource fastsim-venv/bin/activate
Command Prompt (windows):
python -m venv fastsim-venv
-- name is user decisionfastsim-venv/Scripts/activate.bat
pixi shell -e dev
-- this creates the environment, installs all the dependencies,
builds fastsim, and activates the environmentIn an active Python environment created above, run pip install fastsim
.
Developers might want to install the code in place so that FASTSim files can be editable (the -e
flag for
pip provides this behavior). This option can be handy since FASTSim will be installed in place from the
installation location and any updates will be propagated each time FASTSim is freshly imported. To do
this, you'll need to have the Rust toolchain installed.
sh build_and_test.sh
in root folder.pip install -e ".[dev]"
cargo test
pytest -v python/fastsim/tests/
Chad Baker -- Chad.Baker@nrel.gov
Aaron Brooker -- Aaron.Brooker@nrel.gov
Kyle Carow -- Kyle.Carow@nrel.gov
Jeffrey Gonder -- Jeff.Gonder@nrel.gov
Jacob Holden -- Jacob.Holden@nrel.gov
Jinghu Hu -- Jinghu.Hu@nrel.gov
Jason Lustbader -- Jason.Lustbader@nrel.gov
Sean Lopp -- sean@rstudio.com
Matthew Moniot -- Matthew.Moniot@nrel.gov
Grant Payne -- Grant.Payne@nrel.gov
Laurie Ramroth -- lramroth@ford.com
Eric Wood -- Eric.Wood@nrel.gov
Robin Steuteville -- Robin.Steuteville@nrel.gov