problem using ODE functions during simulation a nonlinear motion! please help!
1 回表示 (過去 30 日間)
古いコメントを表示
Hi Everybody,
I am trying to simulate the equation of motion for a rotor-bearing system in time-domain. the quations to solve are the rotor motions equations in x and y direction plus nonlinear unsteady reynold equation for the bearing (in order to obtain the reaction forces in bearing). following state variables are beeing concerned: y1 = x y2 = x_Dot y3 = y y4 = y_Dot y5 = P (pressure in bearing)
deriatives of first 4 variables can be easly formulated but the deriative of pressure need to be calculated as following:
P(n)-P(n-1) / time_step
Now my question: How can I calculate this deriative during solving these 5 variables using ODE functions? How can I save the used time step az previous step by ODE in order to calculate the deriative of pressure because I guess that ODE functions use adaptive time stepping.
many tnx in adavnce
1 件のコメント
Sriram Narayanan
2015 年 6 月 5 日
Hi Hossein, Can you please explain if you are simulating this in MATLAB using the ODE function or is it using Simulink? The variable step ODE solvers like the ODE45, ODE15 and ODE23 series allows for adaptive stepping where you can specify pressure derivative as dP in your ODE function similar to the following example.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!