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

Upload a variable during simulation

Upload a variable during simulation

Hello,
I'm new to modelica programming and modelling, so forgive me if  this question is somehow stupid. I need to change the mass value of a "point mass" block (multibody), when a certain boolean condition is met. I wrote the code but the system tells me that the mass value of a point mass is a parameter, and so I cannot change it during simulation.  Is there any other way of doing so or I'm trying to do something that's simply not possible?

Re: Upload a variable during simulation

No, you can not change the value of parameter during simulation. You could write your point mass model and make the mass a variable, that way it can be cahnged during simulation.

Hope it helps.

Cheers

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