Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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?

Re: Error molding blocks

Problem solved

There are 0 guests and 0 other users also viewing this topic
You are here: