Open crlaugh opened 3 years ago
There was a bug in derivative. I have fixed it now in the development branch. However, I get in the log:
`Sorted highest derivative equations: [assigned variable]: [differentiation] equation Strongly connected components are enclosed in [] [ 2: der(vy): m der(vy) = (F / L) y - m g_n 4: der(der(y)): der(der(y)) = der(vy) 5: der(der(x)): ((2 der(x)) der(x) + (2x) der(der(x))) + ((2 der(y)) der(y) + (2y) der(der(y))) = 0 3: der(vx): der(der(x)) = der(vx) 1: F: m der(vx) = (F / L) * x ]
Error message from getSortedAndSolvedAST for model CPendulum: Cannot transform to ODE because constraint equations cannot be explicitly solved by tearing Involved variables: y x Involved equations: x ^ 2 + y ^ 2 = L ^ 2
Model error: Aborting Aborting instantiateModel for CPendulum in Main.TestLaughman`
This is a limitation in Modia at the moment. See:
https://modiasim.github.io/TinyModia.jl/stable/Tutorial.html#.4-State-selection-(DAEs)
I tried to implement a single pendulum model in Cartesian coordinates, but got an error when I tried to instantiate it. Should this model work with the current release (0.7.2)?
When I try to instantiate this, I get
Is TinyModia able to compile the Cartesian pendulum at this point, or is this functionality still in process?