Dear users of SystemModeler
I am trying to build a steady-state analysis module in Mathematica that will take a model from WSM to simulate a base cycle and extrapolate the final conditions to reach the steady-state fastly. I do not have any trouble in nonsingular systems where the number of differential equations matches the number of energy-storing elements. But I am having some problems extending my algorithm to singular systems like the one I have attached here.
In Mathematica, I have checked that the selected state variables are:
{L1.i,c2.v} so I guested that it will suffice to give initial conditions for L1, but this is not the case. Instead, I got the following error:
“SystemModelSimulate::eva: The variables {L1.i} are computed from other variables,”
which is corroborated with the equation browser at the simulation center. The following equation may be found:
L1.i = L3.i. Shouldn’t it be the inverse assignation?
What is the right way to programmatically initialize this kind of system?
Also, can someone direct me to verify the circuit system approach that WSM used in the automated generation of equations.? Is it Modified Nodal Analysis? I cannot find this kind of documentation.
As always, I will appreciate any help you can give me.
Jesus
MartiExample.mo (2.86 KB)
package.mo (1.77 KB)