I got stucked with som huge project involving Simulink and Simscape, and to find a solution I tested very simple model containing AC current source and inductor.
The parameters of the inductor are as follows
and the current source
I measure the current and the voltage of the coil. Since L = 1 H I was expecting to observe voltage being a derivative of the current. However, using both voltage sensor and standard derivative I get a cosine wave (current is a sine wave), but with higher amplitude.
This is really weird because, when I calculate a derivative of a Sine Wave, at the bottom of the model, I got what I expect - cosine wave with same amplitude as input.
What I observed so far, that if I multiply the current amplitude by 2, then the voltage amplitude (measured and calculated by du/dt) is also multiplied by 2. It seems to me like some numerical problem. When I was playing with settings of Fixed-Step 14s method I also noticed an impact of those parameters.
Below Solver Configuration and Simulation parameters are presented.
I would be very grateful if anyone could explain me this behaviour. Is there a way to get rid of that?
Best regards, Michal