You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-9Lines changed: 23 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
# Wildfire simulation using paralleled cellular automaton
2
+
Simulation of wildfire using cellular automaton and used mpi4py to parallel the program.
3
+
Final Project for High Performance Computing and Parallel Computing
4
+
May.2018
2
5
3
6
## Environment Specification
4
7
In order to achieve best compatibility, this program only needs very basic prerequisite.
@@ -11,6 +14,12 @@ However, to generate a better visualization, this program needs additional packa
11
14
If the program failed to import these two packages, then it will automatically run in pure text mode.
12
15
13
16
## Usage
17
+
18
+
### Run the code:
19
+
Clone the code from github using:`git clone https://github.com/XC-Li/Parallel_CellularAutomaton_Wildfire.git`
20
+
After loading the module(openmpi and python), you can use `mpirun -n [n] python Parallel_Wild_Fire.py` to run this code.
21
+
You can specify the number of workers in `n` if you have multiple CPU.
22
+
14
23
### Easiest place to change
15
24
This program is carefully designed, so the places you can change is very few.
16
25
The easiest part to change is surrounded by `-----Quick Change-----`.
@@ -39,9 +48,14 @@ Or you can do some custom changes on the environment initial functions:
39
48
40
49
**Please don't change anything below the line `Do not change anything below this line`**
41
50
42
-
### Run the code:
43
-
After loading the module, you can use `mpirun -n [n] python Parallel_Wild_Fire.py` to run this code.
44
-
You can specify the number of workers in `n` if you have multiple CPU.
51
+
52
+
## Parallel Programming is the key to save time
53
+

54
+
<imgsrc="images/c1.JPG"width="400"height="300">
55
+
Based on the experiment on GW's high-performance computing cluster colonial one, I found the execution time of this program is inversely proportional with the number of parallel workers.
56
+
And the execution time has a linear relation with the number of rows that each worker has to compute.
57
+
Which shows parallel computing can greatly reduce execution time when the problem is parallelable.
58
+
45
59
46
60
## Interesting Findings
47
61
No special environment: boundary of fire is round(Visualize in matplotlab and pure text)
@@ -68,10 +82,10 @@ All of the environment factor is on: `altitude` and `wind` are the most powerful
68
82
69
83
70
84
71
-
# Technical Detail
72
-
## Cellular Automaton Model
73
-
The model I use here is based on the research paper: "A cellular automata model for forest fire spread prediction: The case
74
-
of the wildfire that swept through Spetses Island in 1990"
85
+
##Technical Detail
86
+
###Cellular Automaton Model
87
+
The model I use here is based on the research paper: ["A cellular automata model for forest fire spread prediction: The case
88
+
of the wildfire that swept through Spetses Island in 1990" ](https://github.com/XC-Li/Parallel_CellularAutomaton_Wildfire/blob/master/A%20cellular%20automata%20model%20for%20forest%20fire%20spread%20prediction%20The%20case%20of%20the%20wildfire%20that%20swept%20through%20Spetses%20Island%20in%201990.pdf)
75
89
76
90
Each cell has 4 states:
77
91
State = 1: The cell contains no forest fuel. This state may describe the cells corresponding to parts of the city with no vegetation,
0 commit comments