- Index
- » Users
- » Supaswing
- » Profile
Posts
Posts
I could make it work. Thank you
It was a bad understanding of connectors. You can't have connection inside a model. The working model below:
Code:
model Motor_simple
Rotor1 Rot;
Stator1 Stat;
Friction1 F1;
Friction1 F2;
Speed w;
Angle theta;
initial equation
der(w) = 0;
//steadystate
equation
Rot.c.theta - Stat.c.theta = theta;
w = der(theta);
connect(Rot.c,F1.c);
connect(Stat.c,F2.c);
end Motor_simple;
I did others model and I have always the same issue using connector type Flange, flattening of the model add an equation xxx.tau=0.0 even if I try to impose another equation.
I am stuck on this problem and I would really appreciate some help
Hi,
Can somebody of the community help me with an issue I have with a simple motor model.
When I instantiate the model with OMEdit, it forces torque equation to zero. This issue rise only when I use connectors.
Many thanks.
David
Rotor.tau = 0.0;//?
Stator.tau = 0.0;//?
The resulting failure is that I end with too much equations. Below is the full model and the instantiated model.
Model as written:
- Index
- » Users
- » Supaswing
- » Profile