Page 1 of 1

Problem with cosine function

Posted: December 6th, 2014, 10:06 am
by rosenm
Hello!
I am fascinated from the sysdyn tool! Big thanks to it's developers.
I am trying to simulate a simple model, spring_mass system, in which cosine function is used, please see attached file. Unfortunately, I got an error message "Simulation failed. No value for xdd". I have a feeling, that the program doesn't understand that the cosine function exist in it's list of functions.
Please help!

Regards,
Rosen MITREV, TU-Sofia, Bulgaria

Re: Problem with cosine function

Posted: December 8th, 2014, 10:00 am
by rosenm
Problem solved!
Just switched to OpenModelicaSolver.

Re: Problem with cosine function

Posted: December 8th, 2014, 10:27 am
by Tuomas Miettinen
Yup, the Internal solver in under development and thus lacking some Modelica features. In the upcoming release the Internal solver will be improved a lot and it will be better than OpenModelica in many applications.

BR,
Tuomas

Re: Problem with cosine function

Posted: December 9th, 2014, 12:21 pm
by rosenm
Tuomas, thanks for the answer, community is looking forward to the next version:)
Another question - is it possible to use random numbers in the sysdyn tool?
Regards,
Rosen

Re: Problem with cosine function

Posted: December 10th, 2014, 9:01 am
by Tuomas Miettinen
The only way that I know of how to use randomness is with sensitivity analysis experiments. We tried to implement a random variable as such a couple of years ago but didn't succeed too well. I think it was due to Modelica not supporting random numbers.

BR,
Tuomas

Re: Problem with cosine function

Posted: December 10th, 2014, 9:46 am
by rosenm
Thank you one more time!