Zero Crossing Detection in Simscape (specifically SimHydraulics)
Show older comments
I run a lot of simulations using Simscape, mostly in SimHydraulics. I find that for almost all of my simulations, which vary in physical complexity from moderate to heavy, attempting to run with zero crossing detection enabled brings the solver to its knees (at best, solutions take hours, at worst, they error out due to excessive zero crossings). I find that the most problematic blocks appear to be orifices (which I think fail due to the integral ABS function) and any component with a hard stop (such as a hydraulic cylinder).
I am close to giving up and running all of my models with zero crossing detection disabled by default, but I've read that it can compromise solution accuracy. The help documentation is vauge as to exactly what the consequences are, so I would like to know the implications of doing this. Is the global accuracy of the solution affected, or only the signals (states) with ZCD enabled? Is the solution compromised only around the zero crossing event, or for all simulated time?
Can you give me any information specific to SimHydraulics? For example, does an orifice block solve differently with ACD disabled?
Thanks in advance for any advice.
Accepted Answer
More Answers (0)
Categories
Find more on Model Statistics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!