Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Importing FastFuels #37

Open
emanuelegissi opened this issue Apr 24, 2022 · 1 comment
Open

Enhancement: Importing FastFuels #37

emanuelegissi opened this issue Apr 24, 2022 · 1 comment

Comments

@emanuelegissi
Copy link
Member

From Eric:

script to turn the 3D voxel data into FDS input data. The first step is to download voxel data from the FastFuels website. I’ve attached the downloaded data for a test I am working on, in case you want to try that first. There are then two scripts. They both need to point to the ‘voxels’ folder at the top of the fuel data file tree.

The second script ‘zarr2fdsInput.py’ creates input text that you would then paste into an FDS input file. It uses surface-area-to-volume-ratio (SAV) to determine if there are multiple types/species of vegetation. Then for each type of vegetation, it determines where it should be placed in 3D space. It is not very flexible at the moment. For example, it assumes the user has defined certain materials etc. in their own input file.

https://github.com/teamholtz/FastFuels-Python

image003

for_emanuele_v2 (1).zip

@ericvmueller
Copy link
Collaborator

In addition to the approach of writing all of the vegetation information directly to the input file, there is also now the ability to read in binary files:
https://github.com/firemodels/cad/tree/master/Binary_Bulk_Density_File

The format of the files is described in the User Guide, and there is a simple verification case:
https://github.com/firemodels/fds/blob/master/Verification/WUI/bulk_density_file.fds

The example works with a numpy array, but it can easily be converted to work with a zarr array from FastFuels (I can send you an example if you want). The FastFuels team is also working to give an option to download the pre-formatted binary files for FDS direct from their website, bypassing this step.
But the concept works for any 3D data on fuel arrangement, so it shouldn't be difficult if we want to allow users to import their own 3D data into qgis2fds and have it create the binary files for them.

@emanuelegissi emanuelegissi changed the title Importing FastFuels Enhancement: Importing FastFuels Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants