If you are simulating a discrete system, then use the discrete solver with a fixed time step.
If your system has a 40kHz signal, you can't use a time step that is 1/40k. You need to use a time step that is not larger than 1/40k/2.
Preferably, the time step should be smaller than 1/40k/10.
Best Answer