MATLAB: Do I observe negative hydraulic pressure and similar non-physical quantities when simulating a model with SimHydraulics 1.6 (R2009b)

Simscape Fluids

I have built a simple hydrostatic system using SimHydraulics 1.6 (R2009b). I am able to simulate my model without any errors, however, I observe physically unattainable quantities, such as negative hydraulic pressure (of large magnitudes).

Best Answer

Models built using SimHydraulics may display physically unattainable values during simulation because of an irregularity with the model itself. SimHydraulics does not stop simulation if one or more variables assume non-physical value(s) such as gauge pressures below -1 bar, negative value of fluid volume in the reservoir, etc. This is so that, at the end of simulation, the user knows the extent of the irregularity rather than just the fact that the reservoir is short of fluid or pressure drop below vaporization level.
In order to resolve this situation, you must analyze your model and iteratively modify your design to smooth out the irregularities.