Hey everyone, I’m trying to implement the social force model for pedestrian dynamics, which models pedestrians using physics. I’m not sure what the best course of action is, specifically in terms of which packages I could make use of. I know that it would be possible to stay strictly within the
DifferentialEquations.jl package by doing everything with Arrays, but I wanted to ask whether there were some convenient functions or features from other packages in the JuliaDynamics ecosystem (
Agents.jl ) that I could use to make the code more readable and modular.
I did some testing* earlier and it seemed that using structs in
DifferentialEquations.jl as opposed to arrays had a time penalty of about 2x, which I’m not sure justifies the nicer interface, but if someone can look at the functions and see something obvious that I’m doing wrong I’d appreciate it.
Edit: removed the link to my repo and made it private by request of my supervisor. I will make the repo public after submitting in March 2022