Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

About the FASTSim Vehicle Database

This repository houses the publicly available collection of vehicle models for NLR’s FASTSim on-road vehicle powertrain simulation software. Additional information on FASTSim can be found at the FASTSim GitHub repository, the FASTSim documentation site, or on the NLR.gov FASTSim homepage.

Database Organizational Schema (v1)

LevelDescriptionExample
Schema versionDescribes the format of subsequent organizational levels.v1
FASTSim versionMajor FASTSim version.fastsim-3
PowertrainPowertrain type (e.g. conv/hev/phev/bev/fcev)conv
MakeVehicle make/manufacturer name.ford
ModelVehicle model name and any applicable trim information.fusion
YearModel year or year range.2012
VariantDescription of active modeling feature set.base
RevisionModel revision number for updates and corrections.r1

Example full filepath:

v1/fastsim-3/conv/ford/fusion/2012/base/r1.yaml

Loading from this Database

FASTSim provides the Vehicle.from_db method that loads from this database by default (requires internet access):

import fastsim

vehicle_path = "v1/fastsim-3/conv/ford/fusion/2012/base/r1"

veh = fastsim.Vehicle.from_db(path=vehicle_path)

Alternatively, you can supply path segments as individual fields, which is useful for programmatic searching and filtering.

fastsim.Vehicle.from_db(
    fastsim_version=3,  # optional, defaults to installed FASTSim major version
    powertrain="conv",  # required: "conv", "hev", "phev", "bev"
    make="ford",  # required
    model="fusion",  # required
    year="2012",  # required (string; supports ranges like "2020-2023")
    variant="base",  # optional, default "base"
    revision=1,  # required (int or "r1"/"R1" string)
    extension="yaml",  # optional, default "yaml"
)

For more information on Vehicle.from_db and how to load from alternate databases, see the Python docstring or the relevant page of the FASTSim documentation.

Developers

Rebuilding the vehicles.jsonl index

Install the index builder binary:

cargo install fastsim-schema --features cli --bin build-index

Run:

build-index .