Closed GreroDe closed 4 months ago
So, you would like to change the FMU interface?
Yes I would like to test it in different platforms and also setting different timesteps on them.
So it is not good idea to define internally the Steptime. In other words I would like to get the h
value from outside or from the <defaultExperiment
data
Ok, best way to do this is:
Done.
I have implemeted a simple Pendulom Example in the FMU generator and It worked. Now I would like to implementthe same logic but this time withuot depending on a internal time factor
h
, but depending ona external time factor which is giving by the simulator (in this case Matlab) or more direct by the<defaultExperiment.
data placed on the modelDescription.xml.Implementation of the Rungakutta Solver in to the UpdateIfModified Function
`
`
With the ODE function
float dydx(double x, double v,double g,double l,double b, double m) { return((-(g/l)*sin(x))-(b/m)*v); }