Implementing user tire model
Hello everyone,
Currently I am trying to implement an user defined tire model in Motion View. For this I want to use a matlab script (.m file) in which all the necessary tire forces/moments etc. get calculated. I understand that I need to make a .tir file which specifies the type to 'USER' so that Motion View knows to look for a user specified model.
However, the next step is loading a dll file with the matlab function inside. I tried creating a dll folder with the matlab coder, but when I am trying to run a model it is unable to load this dll file.
Does anyone know how to load a matlab script as a tire model in Motion View?
Thanks in advance,
Bart
Answers
-
Hello Bart - Would a User-defined force work for you?
Regards
Praful
0 -
Hello Praful, thanks for the quick reply!
When I use such a user-defined force, am I able to take some parameters from the model as inputs?
Especially inputs from the road which the vehicle will be driving over are required to model a tire. When an autotire entity is used, this road is also simulated and taken into account. But I am not sure how to access the road data with such a user defined force.
Kind regards,
Bart
0 -
Bart van de Sande said:
Hello Praful, thanks for the quick reply!
When I use such a user-defined force, am I able to take some parameters from the model as inputs?
Especially inputs from the road which the vehicle will be driving over are required to model a tire. When an autotire entity is used, this road is also simulated and taken into account. But I am not sure how to access the road data with such a user defined force.
Kind regards,
Bart
Yes, you should be able to pass parameters from the model. You may want to refer to the User Subroutine section of the help in MotionSolve.
Accessing road data part, I am not sure. You can pass the road data file and the position of the wheel to your code that may get the road interpolation.
If you are looking for using the MotionSolve tire feature where it provides the road data but with your own tire calculation, I don't think it is possible.
Regards
Praful0 -
Hi Bart,
Can you please share the log file of your simulation? And if possible, can you share the dll that you have created?
I want to check if the function is exposed in the dll.
Thanks,
Sonu0 -
Sonu Manjhi_20605 said:
Hi Bart,
Can you please share the log file of your simulation? And if possible, can you share the dll that you have created?
I want to check if the function is exposed in the dll.
Thanks,
SonuHey Sonu,
I created a simple tire model which just assigns some static values to some of the tire parameters for now, in order to test whether this structure with the dll worked.
I added the log and the dll file to this message
Kind regards,
Bart
0