- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Upload a variable during simulation
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
- Arinomo23
- 120 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Upload a variable during simulation