Find solutions to differential equations in 2D and 3D with discontinuities that are automatically computed using Filippov sliding mode.
Compute a solution in the plane where there is a discontinuity on the unit circle.
When the solution first reaches the circle, the vector field on both sides points towards the discontinuity, leading to sliding mode along the circle until the vector field on the outside no longer points inward.
Compute multiple solutions.
In higher dimensions, sliding mode is possible on more than one discontinuity surface at once. This happens for two discontinuity surfaces in 3D defined by the surface of a sphere and the plane , with the vector field given by .
Make a plot by forming contour surfaces for the discontinuities and using ParametricPlot3D for the solution curve.