https://github.com/keyskey/evacuation
Evacuation simulation by Static Floor Field Model
https://github.com/keyskey/evacuation
Last synced: 3 months ago
JSON representation
Evacuation simulation by Static Floor Field Model
- Host: GitHub
- URL: https://github.com/keyskey/evacuation
- Owner: keyskey
- Created: 2018-06-25T06:13:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T06:24:17.000Z (about 8 years ago)
- Last Synced: 2025-01-11T10:49:57.225Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 3.76 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User guide
計算と可視化に必要なファイルは
1.Agent.py
=> 歩行者の持つパラメータ、移動確率を計算する関数などが書かれています
2.Field.py
=> メイン実行プログラム
3.field.csv
=> 人間が移動する空間を描いたエクセルシートをcsvに変換したもの
4.animation.py
=> outputファイルをpng画像に変換してgifアニメにするスクリプト
の4つです。
計算実行時はターミナルで
$ python Field.py
と打ってください。output*.csvというファイルが大量に吐き出されます。
次にアニメーションを作成します。
$ python animation.py
と打つと収束までにかかったタイムステップ数を聞かれるので、Field.pyのログの最後に出力されている〜timestepの〜に当たる数字を入力してください。
animation.gifという名前でgifアニメが作られているのが確認できます。
