Closed gjaeger closed 4 years ago
This is rather a warning and not an error and means that the distance between two different agents is very small so that the inverse of the distance can not be calculated (division by zero). Since this behavior (overlapping) is typical for force-based models (like GCFM), there is elegant solution, unless we introduce some collision mechanisms or add contact forces.
The calculation is not aborted and continues.
According to this line
LOG_ERROR("GCFMModel::forcePedPed() ep12 cannot be computed.");
return F_rep; // FIXME: should never happen
continuing the simulation is with purpose. Abording would be too annoying. However, if this happens very often in a single simulation, then the results won't make any sense (for instance high flows at bottlenecks) and parameters should be changed accordingly to mitigate overlappings.
Already at a density of $1 m^{-2}$, agents stop moving.
could happen, when agents do not have any space left. See for example these screenshots:
As you can see, only the agents with enough space in the front can move. The rest will have to be patient.
I would recommend using a smaller time step (e.g. 0.001s), then an acceleration model needs more accuracy than a velocity model. We already use the very simple and inaccurate Euler method. Therefore, bigger time steps lead to more errors.
This is rather a warning and not an error and means that the distance between two different agents is very small so that the inverse of the distance can not be calculated (division by zero).
After the message, I assumed an error. If it's a warning, shouldn't we change the output?
Thank you for your comments. These are helpful background information.
I would recommend using a smaller time step (e.g. 0.001s), then an acceleration model needs more accuracy than a velocity model. We already use the very simple and inaccurate Euler method. Therefore, bigger time steps lead to more errors.
The manual explains that for force-based models the time step should be between $10^{-2} s$ and $10^{-3} s$. I used the time step of $10^{-2} s$. What is the best way to find a suitable time step?
JuPedSim - JPScore
Describe the bug
I get this error message
when using the GCFM model to simulate a fundamental diagram of a corridor with the following settings:
The calculation is not aborted and continues. The fundamental diagram resulting from the simulations is completely unrealistic. Already at a density of $1 m^{-2}$, agent stop moving.