Skip to content

Commit 4666154

Browse files
committed
adding place holder for the implementation of the model presented in Hoya_el_al 2007
1 parent e6653b0 commit 4666154

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

epidemic_hoya_et_al/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Disease Spread Model
2+
3+
This is the cell-devs-implementation of the celular automata model presented in Modeling epidemics using cellular automata
4+
https://doi.org/10.1016/j.amc.2006.06.126
5+
6+
7+
## How to run the model:
8+
9+
In the linux terminal, type:
10+
11+
> ./../cd++ -mSIR_Hoya.ma -lresults/SIR_Hoya.log

epidemic_hoya_et_al/SIR_Hoya.ma

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[top]
2+
components : population
3+
4+
[population]
5+
type : cell
6+
dim : (100,100)
7+
delay : transport
8+
defaultDelayTime : 1
9+
border : nowrapped
10+
neighbors : population(0,-1) population(0,0) population(0,1)
11+
neighbors : population(-1,0)
12+
neighbors : population(1,0)
13+
14+
initialvalue : 0
15+
InitialCellsValue : SIR_Hoya.val
16+
17+
localtransition : infections
18+
19+
[infections]
20+
21+
rule : {(0,0)} 1000 { t }
22+
23+
% neighbors : population(-1,-1) population(-1,0) population(-1,1)
24+
% neighbors : population(1,-1) population(1,0) population(1,1)

0 commit comments

Comments
 (0)