Newbie: Variables are missing from the variable map: PMSM model

Another remark from myself:-)

The code above produces garbage results. By changing the equation above from: Θ*D(ω) = M - Mw to D(ω) = 1/Θ*(M - Mw) it suddenly works.

I wonder whether this should be a bug in DifferentialEquations.jl or ModelingToolkit.jl?

1 Like