Improvements for rapid Simscape changes with discrete valves
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a Simscape model that consists of a few valves and constant volume chambers. Every time a valve is opened, the instantaneous change causes small time steps, Newton iteration exceptions, and infinite derivative exceptions.
Here is an example of the pressure in a manifold (which does match experimental results). There is a sharp change when the a valve is opened, which causes many solver exceptions:
Here is a diagram of the solver exceptions at this particular points. The time step gets very small at this point and causes the simulation to come to a very slow standstill at this point when the valve is opened:
Is there anything that can be done to get around this problem? or is it just a necessary process for the solver to be able to handle discrete elements in a Simscape model?
댓글 수: 0
답변 (1개)
Aniruddha Katre
2017년 8월 11일
The speed of simulation depends on your solver choice of both the global solver and the local solver for the physical networks in your model. As a first step, if you haven't done so already, try enabling the "Use Local Solver" option in the Solver Configuration block in your model and then simulating it.
For more information on how to make the appropriate solver choice for Simscape models, see these links: http://www.mathworks.com/help/physmod/simscape/ug/making-optimal-solver-choices-for-physical-simulation.html http://www.mathworks.com/help/physmod/simscape/ug/setting-up-solvers-for-physical-models.html http://www.mathworks.com/help/physmod/simscape/ref/solverconfiguration.html
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!