Inconsistent results when simulating an LC series circuit with SimScape
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everybody,
Here is the setup of the simulation:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157775/image.png)
.
And here is the parameters of this simulation:
RS = 0; % ohm (internal resistance of voltage source)
RC = 0; % ohm (equivalent series resistance of capacitor)
C = 100e-6; % [F]
L = 680e-6; % [H]
LPC = 0; % [1/ohm] Inductor Parallel Conductance
With automatic solver, all other simulation parameters at their default value, I got this result:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157777/image.png)
.
With ADAMS solver, all other simulation parameters at their default value, I got this result:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157778/image.png)
.
You can see the inconsistency of these results.
Theoritically, this should be a resonance circuit, but this is not what I got from the simulations.
Could you please shed some light on this for me?
Thank you.
0 comentarios
Respuestas (1)
Joel Van Sickel
el 13 de Oct. de 2023
He issue is that the Adams solver is specifially for non-stiff problems and your problem being in simscape is typically a stiff problem and requires a solver that supports DAE's. In this case, you would want to use DAESSC or ODE23t as your solver. The other solvers would be expected to give poor results for an electrical simulation.
0 comentarios
Ver también
Categorías
Más información sobre Parameterization Methods en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!