Compute Sliding-Mode Solutions
Find solutions to differential equations in 2D and 3D with discontinuities that are automatically computed using Filippov sliding mode.
When the solution first reaches the circle, the vector field on both sides points toward the discontinuity, leading to sliding mode along the circle until the vector field on the outside no longer points inward:
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: