Generativeart:感染シミュレーションに感染力と人流のパラメーターをつけた『感染拡大シミュレーション+パラメーター』

以前に作った感染拡大シミュレーションに、感染力と人流のスライダーを追加してみました。
p5.jsで作ったものにp5.dom.jsでスライダーを付けています。

赤い点が感染者で青い点が非感染者です。
すべての点には引力が設定されていて、お互いに引き寄せあって動き続けます。
お互いに引き寄せあう点は時間経過でクラスターを形成します。

最初の人口は50~500人の間でランダムに設定されます。
最初の感染者数は1~5人の間でランダムに設定されます。

青い点は赤い点に1秒間接触しているごとに約10%の確率で感染します。
赤い点は7秒間で回復して青い点に戻ります。
回復までの7秒間に約2%の確率で消滅します。
「人口」「感染者数」「死亡者数」としてリアルタイムに表示されます。

「感染力」と「人流」のパラメーターを追加しています。
感染力は感染確率を設定でき、人流は引力の大きさを設定できます。
どちらも最初は1倍になっています。

感染力は0倍〜10倍の範囲でリアルタイムで変更できます。
感染力を上げるとクラスター内での感染が急速になります。
感染力を0倍にすると7秒後にはすべての点が青くなります。

人流も0倍〜5倍の範囲でリアルタイムに変更できます。。
人流を大きくするとすべての点が広範囲に活発に動き回るようになります。
人流を0倍にすると引力がなくなりクラスターは分散され、感染者数が減少していきます。

画面内をクリックすると反発力でクラスターを分散させることができます。

統計データに基づいていないので断定的なことは言えませんが、デルタ株が流行しているし、できるだけステイホームで過ごしたいと思います。

The red dots are the infected and the blue dots are the non-infected.
All the points have a set gravitational force and keep moving, attracting each other.
Points that are attracted to each other will form clusters over time.

The initial population will be randomly set between 50~500 people.
The initial number of infected people is randomly set between 1 and 5.

A blue dot has about a 10% chance of being infected for every second it is in contact with a red dot.
The red dot will recover and return to the blue dot in 7 seconds.
The red dot will recover and return to the blue dot in 7 seconds, and has a 2% chance of disappearing in the 7 seconds before it recovers.
“The data is displayed in real time as “Population,” “Infected,” and “Dead.

This time, I set up the “Infectivity” and “Human Flow” parameters.
Infectivity allows you to set the probability of infection, and human flow allows you to set the magnitude of attraction.
Both are initially set to 1X.

Infectivity can be changed in real time in the range of 0 to 10 times.
Increasing the infectivity will cause rapid infection within the cluster.
If you set the infectivity to 0 times, all the dots turn blue after 7 seconds.

You can also change the human flow in real time in the range of 0 to 5 times.
If you increase the human flow, all the points will be active in a wide area.
If you set the human flow to 0, the attraction will disappear, the cluster will disperse, and the number of infected people will decrease.

You can click in the screen to disperse the cluster by repulsive force.

I can’t say anything definitive because it’s not based on statistical data, but the delta strain is prevalent and I’d like to stay home as much as possible.

infection spread + control | 感染拡大シミュレーション+パラメーター | Generative Design >>

Leave a Comment

2021年8月8日 Generative Art