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
{{ message }}
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
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)?
using TinyModia
using ModiaBase
using ModiaPlot
# Cartesian pendulum model.
CPendulum = Model(
L = Var(1.0, parameter=true),
m = Var(1.0, parameter=true),
g_n = Var(9.80665, parameter=true),
x = Var(init=1/sqrt(2)),
y = Var(init=-1/sqrt(2)),
vx = Var(),
vy = Var(),
F = Var(),
equation = :[
der(x) = vx
der(y) = vy
m*der(vx) = (F/L)*x
m*der(vy) = (F/L)*y - m*g_n
x^2 + y^2 = L^2]
)
cPendulum = @instantiateModel(CPendulum)
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`
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?
The text was updated successfully, but these errors were encountered: