Lecture and exercise notes on fire simulations
https://firedynamics.github.io/LectureFireSimulation
Note: The following explicit commands are for bash / zsh on Linux / MacOS.
git clone https://github.com/FireDynamics/LectureFireSimulation.git
python -m venv .venv
source .venv/bin/activate
Requirements for different systems, see link:
Platform | Shell | Command to activate virtual environment |
---|---|---|
POSIX | bash/zsh | $ source /bin/activate |
fish | $ source /bin/activate.fish | |
csh/tcsh | $ source /bin/activate.csh | |
PowerShell Core | $ /bin/Activate.ps1 | |
Windows | cmd.exe | C:> \Scripts\activate.bat |
PowerShell | PS C:> \Scripts\Activate.ps1 |
Note: In Windows PowerShell there is a restriction to run scripts. If the Execution Policy is not changed it will raise a message like "cannot be loaded because the execution of scripts is disabled on this system". One can allow the execution of scripts for the active PowerShell session by Set-ExecutionPolicy Unrestricted -Scope Process
, see link.
pip install -r requirements.txt
jupyter-lab
cd book
jupyter-book build .
Note: Some notebooks are capable to turn the output of matplotlib figures on and off based on the environment variable JB_NOSHOW. It should be set (to any value) to prevent the rendering of dublicate figures, e.g.:
cd book
JB_NOSHOW=1 jupyter-book build .
8. If the build is sucessful, the location of the build book is stated. You can open it with a browser.
The simulation input files as well as the resulting simulation data is stored in the data
folder.
In all data subfolders, FDS input files as well as a run script case_run.sh
is located. You may have to adjust the execution command of FDS at the top of the script.
The case_download.sh
script inside the individual data subfolders can be used to download precomputed data.
Please for the development
branch and create a pull request based on that.
New section / content: Create a feature branch of development
. Once finished, merge it back and create a release branch with your changes that have to be pushed to main
. Assign Lukas as reviewer for the pull request.
Typos / Fixes: Push them directly to the development
branch and then directly to main
.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.