You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simplified: var"der(i1)" = SVector / SMatrix
the correct function should be: var"der(i1)" = SMatrix^-1 * SVector
errormessage
ERROR: LoadError: DimensionMismatch("Both inputs should have the same number of columns")
Stacktrace:
[1] /(A::SVector{3, Float64}, B::SMatrix{3, 3, Float64, 9})
@ LinearAlgebra ~/julia-1.7.1/share/julia/stdlib/v1.7/LinearAlgebra/src/generic.jl:1149
[2] getDerivatives(_x::Vector{Float64}, _m::SimulationModel{Float64, Float64}, _time::Float64)
@ Main ~/.julia/packages/Modia/2gNMw/src/A-CodeGeneration.jl:1685
[3] #invokelatest#2
@ ./essentials.jl:716 [inlined]
workaround
in my particular case an additional method was helping.
Base.:/(A::SVector, B::SMatrix) = B^-1* A
The text was updated successfully, but these errors were encountered:
in my example I tried to simulate an induction machines in a 3~ system with position dependent coupling/inductance's.
part of the model for testing
code "saveCodeOnFile"
simplified:
var"der(i1)" = SVector / SMatrix
the correct function should be:
var"der(i1)" = SMatrix^-1 * SVector
errormessage
workaround
in my particular case an additional method was helping.
The text was updated successfully, but these errors were encountered: