Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forefireAPI/firefront
ForeFire is an open-source code for wildland fire spread models
https://github.com/forefireAPI/firefront
cpp python
Last synced: 3 months ago
JSON representation
ForeFire is an open-source code for wildland fire spread models
- Host: GitHub
- URL: https://github.com/forefireAPI/firefront
- Owner: forefireAPI
- License: gpl-2.0
- Created: 2014-02-27T13:34:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T18:09:23.000Z (6 months ago)
- Last Synced: 2024-06-11T18:59:19.140Z (5 months ago)
- Topics: cpp, python
- Language: C++
- Homepage:
- Size: 8.51 MB
- Stars: 34
- Watchers: 7
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - ForeFire - An open-source code for wildland fire spread models. (Biosphere / Wildfire)
README
# ForeFire
![logo](./doc/images/forefire.jpg)
_Refer to the [Wiki](https://github.com/forefireAPI/firefront/wiki) for a more detailed guide on using ForeFire._
ForeFire is an [open-source code for wildland fire spread models](https://www.researchgate.net/publication/278769168_ForeFire_open-source_code_for_wildland_fire_spread_models), developed and maintained by Université de Corse Pascal Paoli.
Access the [demo simulator here](http://forefire.univ-corse.fr/sim/dev/).
![demo](./doc/images/sim-forefire.jpg)
It has been designed and runs on Unix systems. Three modules can be built with the source code.
The main binaries are
- An interpreter (executable)
- A shared library (with C/C++/Java and Fortran bindings)## 1. Requirements
The requirements and ForeFire can be installed by running `install-forefire.sh` (Ubuntu or Debian distributions)
```
cd forefiresudo sh install-forefire.sh
```The program will be built in: `./bin/forefire`
OR run the commands:
```
apt-get updateapt install build-essential -y
apt install libnetcdf-c++4-dev -y
apt install cmake -y
```To install
- The C++ compiler
- [NetCDF Library](https://www.unidata.ucar.edu/software/netcdf/) and [NetCDF-C++ ](https://www.unidata.ucar.edu/downloads/netcdf/netcdf-cxx/index.jsp)
- [Cmake](https://cmake.org/) build tool## 2. Build
### 2.1 Cmake
To build with cmake run the script
```
sh cmake-build.sh
```To make the program [executable from eveywhere](https://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere) (during the session) Add the bin folder to path
```
export PATH=$PATH:`pwd`/bin
```
If you want to change it permanently, paste
```
export PATH=":$PATH"```
at the end of your `~/.bashrc` file. The file can be edited with
```
nano ~/.bashrc
```
for example
```
export PATH="/mnt/c/gitrepos/forefire/bin:$PATH"
```### 2.2 Scons and Other build systems
More information on other build systems are available [here](./doc/buildSystems/readme.MD)## 3. Running an example
An example for the region of aullene in south France is provided. The example contains 3 files
- fuels.ff
- aullene.ff
- landscape.nc:Run the example with
```
cd firefront/examples/aullene/../../bin/forefire -i aullene.ff
```
The simulation result will be outputed in JSON format### 4. Running with python
Go and check [pyForeFire](https://github.com/forefireAPI/pyForeFire)
It may be included directly in this repo in futire releases## 5. Building with Docker
A sample Dockerfile can allow to build a Docker image with
```
docker build . -t forefire
```To run this image and interactively acces the continer use
```
docker run -it forefire bash
```