Help with non-linear block spring mass system
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1605911/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1605916/image.jpeg)
How can I add a block for the nonlinear term so that I can simulate the system?
3 件のコメント
Fangjun Jiang
2024 年 2 月 1 日
The nonlinear part is the k() function. It is simple enough to construct it using blocks.
The block diagram is far from the correct implementation. Use two integrators to construct q1, two integrators for q2, two integrators for q3. And then construct the rest.
回答 (1 件)
Fangjun Jiang
2024 年 2 月 1 日
- Use two integrators connected in series to construct q1. The output is q1, the input is "q1 two dot". In the middle, it is "q1 dot".
- Do the same for q2 and q3
- Then you have Delta1=q1-q2, Delta2=q2-q3
- k(Delta1)=K0*Delta1+K1*(Delta1)^3 should be easy. You can even make it a function to apply the same for Delta2
- Then connect the signal lines in Simulink according to the last three lines of your equations. You will have the correct Simulink implementation of your mathmatical equations.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!