- Index
- » Programming
- » Modelica Language
- » Error molding blocks
Error molding blocks
Error molding blocks
Hello everybody,
I'm molding a joint in Modelica, I know that modelica library already has it .
I create the model with 2 flanges where flow variable is torque tau and the potenzial variable is the angle phi.
I want to simulate a joint loss, so i choose a boolean input K to decide when the event occurs. Then this equations are used:
if not k then
flange_a.tau+flange_b.tau = 0;
flange_a.phi = flange_b.phi;
else
flange_a.tau = 0;
flange_b.tau = 0;
end if ;
Unfortunatly this model doesn't work, the simulation stop after a correct compilation. How can i solve?
- Index
- » Programming
- » Modelica Language
- » Error molding blocks