Look up table for a dynamics problem
5 ビュー (過去 30 日間)
古いコメントを表示
I am currently running an analysis for a Quarter Car suspension Model using an M-file. I have manually derived the transfer functions and entered them into the M-file to get a magnitude plot which I am happy with.
This has been done using a constant spring force. I would now like to make this force variable dependant on the movement of the wheel. So basically the more the suspension compresses the higher the spring force becomes.
Is it possible to define this using a table? So eg. between values of suspension compression 10mm and 20mm the spring force is 30000N/m and between 20mm and 30mm the spring force is 35000N/m. I would then like to feed this back into the M-file to run it.
0 件のコメント
回答 (2 件)
Nirmal Gunaseelan
2011 年 7 月 15 日
One way to do this would be to create a MAT file with the data (there are some interpolation functions to generate the data automatically if you so desire) based on your variables and store them. While computing, you could load the MAT file and continue with your script.
0 件のコメント
Fangjun Jiang
2011 年 7 月 15 日
I see more serious problem with your approach. You are simulating your model using MATLAB. When you say transfer function, do you mean it in a general sense which means a mathematical function, or do you mean it in a specific sense, like the transfer function using Laplace transform.
I would assume you mean transfer function using Laplace transform. So keep in mind that will require your system to be linear. The spring force is likely to impact your transfer function. With a constant spring force, you derived your transfer function, then you want to simulate the transfer function but you want to change the spring force again dynamically? It's possible to do it in MATLAB or Simulink but you do need to think about whether it will give you the correct result. I'll find some useful link and post it later.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Assembly についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!