Compute Sliding-Mode Solutions

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:
In[24]:=
Click for copyable input
Out[25]=
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:
In[26]:=
Click for copyable input
Out[26]=
Compute multiple solutions:
In[27]:=
Click for copyable input
Out[28]=
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 :
In[29]:=
Click for copyable input
Make a plot by forming contour surfaces for the discontinuities and using ParametricPlot3D for the solution curve:
In[30]:=
Click for copyable input
In[34]:=
Click for copyable input
Out[35]=
New to Mathematica? Find your learning path »
Have a question? Ask support »