Skip to main content

FDSReader

Fast and easy-to-use Python reader for FDS data

PyPI version CI codecov Documentation

FDS Version Compatibility

fdsreader FDS 6.7 FDS 6.8 FDS 6.9 FDS 6.10
≤ 1.11.x ✅ ✅ ✅ ⚠️ (Geometry bug, #TODO)
1.12.x (planned) ✅ ✅ ✅ ✅

Tested against FDS outputs. If you find a compatibility issue please open an issue.

Installation

The package is available on PyPI and can be installed using pip:

pip install fdsreader

The Jupyter explorer needs a plotting stack, which is an optional extra:

pip install "fdsreader[notebook]"

Its command line counterpart needs nothing beyond numpy and is always installed.

FDS Version 6.7.5 and above are fully supported. Versions below 6.7.5 might work, but are not guaranteed to work.

Usage example

import fdsreader as fds

# Creates an instance of a simulation master-class which manages all data for a given simulation
sim = fds.Simulation("./sample_data")

# Examples of data that can be easily accessed
print(sim.meshes, sim.surfaces, sim.slices, sim.data_3d, sim.smoke_3d, sim.isosurfaces, sim.particles, sim.obstructions)

More advanced examples can be found in the respective data type directories inside of the examples directory.

Configuration

The package provides a few configuration options that can be set using the settings module.

fds.settings.KEY = VALUE

# Example
fds.settings.DEBUG = True
KEY VALUE Default Description
LAZY_LOAD boolean True Load all data when initially loading the simulation (False) or only when specific data is needed (True).
ENABLE_CACHING boolean True Cache the loaded simulation to reduce startup times when loading the same simulation again.
DEBUG boolean False Crash on non-critical errors with an exception (True) or output non-critical errors as warnings (False).
IGNORE_ERRORS boolean False Ignore any non-critical errors completely.

Data structure

Data structure

Beware that not all attributes and methods are covered in this diagram. For a complete documentation of all classes check the API Documentation below.

Explorer

fdsreader.explorer looks at a simulation without writing plotting code for it: a time bar driving a 2D slice, and any number of device or HRR quantities plotted against time. In Jupyter that is an interactive widget; in a terminal you can either explore it interactively or draw a single view and exit.

In Jupyter

from fdsreader.explorer import explore

explorer = explore()

That renders the whole interface — a directory browser, the time bar, the slice on the left and the curves on the right. Browse to a case and press Load simulation.

explore("./sample_data")            # skip the browser and load this case
explore(start_dir="/data/cases")    # open the browser somewhere specific
explore(interactive_canvas=False)   # static images instead of ipympl canvases
explore(caching=True)               # allow the .pickle cache (writable data only)

explore() returns the explorer, so the simulation and the current selection stay available in later cells:

sim = explorer.sim
explorer.current_time               # where the time bar is, in seconds
explorer.selection                  # the curves currently ticked
explorer.field.frame(400)           # the slice on screen, at time step 400

ipympl is optional; with it each plot gains a toolbar to zoom, pan and save. If the plots come up as Failed to load model class 'MPLCanvasModel', its browser-side extension is not loading — pass interactive_canvas=False.

In a terminal

The command line front end needs nothing but numpy, so it works over SSH on a machine with no plotting stack and no browser.

-i opens a full-screen interactive view, where the slice and the curves are chosen from lists rather than named on the command line:

fdsreader-explorer-cli ./sample_data -i
key
← → or h l step through time
page up / page down ten steps
home / end first / last step
space play, pause
+ - play speed
f pick the slice from a list
c pick the curves from a list (space ticks, enter accepts)
[ ] previous / next slice
g / s colour scale over the whole run / this step
? help
q quit

Without -i it draws one view and exits, which is what you want in a script:

fdsreader-explorer-cli ./sample_data                        # what is in it
fdsreader-explorer-cli ./sample_data --list                 # slices and curves by name
fdsreader-explorer-cli ./sample_data --slice 0 --time 4.4   # draw a slice
fdsreader-explorer-cli ./sample_data --curve TC_1 --curve HRR
fdsreader-explorer-cli ./sample_data --json                 # for scripting
TEMPERATURE [C] — x = 0 m  #0   ·   t = 4.401 s (step 630 of 749)

  10.00 |                  
        |                  
   8.82 |                  
        |                  
        |                  
        |          ...     
        |        .....     
   5.88 |       .....      
        |      ...:...     
        |       .....      
        |        ....      
        |        ...       
   2.94 |       .:..       
        |       -.         
        |       -:-.       
        |       .-*:       
        |        +%+.      
   0.00 |        +#:       
        +------------------
         -2.5           2.5   y [m]
         scale 20 … 1412   ramp ' .:-=+*#%@'   grid 18x18

--save FILE writes the current view as an image or an animation instead (.png/.pdf/.svg/.gif/.mp4, needs matplotlib).

The interactive view uses curses, which is in the standard library everywhere except Windows; there, pip install windows-curses provides it.

Slices are read one time step at a time, so stepping through a long run costs a few hundred kilobytes rather than loading the whole series into memory.

API Documentation

https://fdsreader.readthedocs.io

Releasing a new version

Versioning is handled automatically via Git tags using setuptools-scm.

# New release
git tag -a v1.12.0 -m "Version 1.12.0"
git push origin v1.12.0

This triggers the release workflow which builds the package and publishes it to PyPI.

Meta

Distributed under the LGPLv3 (GNU Lesser General Public License v3) license. See LICENSE for more information.

https://github.com/FireDynamics/fdsreader

Contributing

See CONTRIBUTING.md for development setup, how to run tests, and the PR checklist.

Metadata

Release files for fdsreader 1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fdsreader 1.12.0
File Size Uploaded
fdsreader-1.12.0.tar.gz 225.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fdsreader 1.12.0
File Interpreter ABI Platform
fdsreader-1.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 370.8 kB

Release files / fdsreader-1.12.0.tar.gz

Download URL fdsreader-1.12.0.tar.gz
Size 225.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b7049a48ecb460c8a2f7277b85c494ec7779f17998bb7380e4bc07e149f7148d
BLAKE2b-256 checksum
How to use checksums
f8935b8171b3df839b9a3ee55ab87f73167dbc8ac769ec682997c16bff6408af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / fdsreader-1.12.0-py3-none-any.whl

Download URL fdsreader-1.12.0-py3-none-any.whl
Size 145.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3777be3c682842811cb3b925b3bd5e19248beaad051e04d55491af58a3afe74
BLAKE2b-256 checksum
How to use checksums
ddc123ec4a181fd78dedb6bdba46c8ff66f0e678991083a1e608cd643a4f70ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

1.12.1

2 release files

This release

1.12.0 This release

2 release files

1.11.9

2 release files

1.11.6

2 release files

1.10.4

2 release files

1.10.0

2 release files

1.9.13

2 release files

1.9.11

1 release file

1.9.10

1 release file

1.9.9

2 release files

1.9.8

2 release files

1.9.7

2 release files

1.9.6

2 release files

1.9.5

2 release files

1.9.4

2 release files

1.9.3

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.7

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.7.5

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

1 release file

1.6.3

1 release file

1.6.2

1 release file

1.6.1

1 release file

1.6.0

1 release file

1.5.9

1 release file

1.5.8

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.12

1 release file

1.3.11

1 release file

1.3.10

1 release file

1.3.7

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.0

1 release file

1.2.12

1 release file

1.2.10

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

0.9.22

1 release file

0.9.21

1 release file

0.9.20

1 release file

0.9.19

1 release file

0.9.18

1 release file

0.9.17

1 release file

0.9.16

1 release file

0.9.15

1 release file

0.9.14

1 release file

0.9.12

1 release file

0.9.11

1 release file

0.9.10

1 release file

0.9.9

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.10

1 release file

0.4.9

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.3

1 release file

0.4.1

1 release file

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page