how to format the codes to compute the differential-algebraic equations using ode15s?
4 次查看(过去 30 天)
显示 更早的评论
Hi guys,
I’m trying to use ode15s to solve the dynamic model of a mechanical system in the form of ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659551/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659551/image.png)
where M is the mass matrix, q is the vector containing all the state variables, F is the generalised force vector, λ is the Lagrange multiplier vector, and
is the constraint Jacobian matrix.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659556/image.png)
To address this problem, I change the system of equations into ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659561/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659561/image.png)
where
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1659566/image.png)
Then how to format the codes in Matlab? Many thanks!
0 个评论
回答(1 个)
Torsten
2024-4-4
I don't see a way to use a MATLAB ode integrator to solve your system.
Take a look at
Section Mechanical Systems
for suitable solvers.
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!