I’ve been building an Epidemic analysis tool in grasshopper that analyses the effect urban spatial form has on the spread of a disease.
The core system is an urban environment model with a series of “home” points and “place” points, with a path network connected them (such as pavements/sidewalks and park paths).
The way the tool analyses for infection spread is by plotting people’s movement from “home” to “place” (using “shortest walk” component), with time in the z axis, such as a Marey Chart. Then when curves intersect = an interaction = potential infection.
The issue I have is that, I need to find the curves the “infected” curve touches, and then find which other curves those newly infected curves touch (for each day cycle). Hopefully to show exponential growth:
Day 1: 1 => 4
Day 2: 4 => 11
Day 3: 11 = 29
and so on…
I have managed this so far with a cluster I have made, which is then duplicated for each day. Although it is very cumbersome and inefficient, therefore I am looking for a better, more streamlined, way of doing this - i.e. that doesn’t involve a bunch of components being duplicate for each day.
I hope that makes sense, and help here would be amazing, thanks in advance.
HenryResim v2.5 for forum.gh (2.4 MB)