Given the following state-space model:
der(x) = f(x,t);
Time reversal can be achieved by placing a minus sign in front of each state equation:
der(x) = -f(x,t);
The Reverse_Level model contains a modulating variable dir that determines the direction of time flow:
der(x) = dir*f(x,t);