In hydraulic mode, the pipe element calculates pressure and velocity losses. The calculation method depends on the medium type:
Incompressible Media
For incompressible fluids, velocity remains constant along the pipe. Pressure loss is calculated based on elevation changes, friction, and local losses (e.g., $\zeta$).
Compressible Media
For compressible fluids, density and velocity change along the pipe axis. Pandapipes uses the law of ideal gases and reference state variables (normal temperature and pressure) to calculate pressure drops.
Increasing Resolution: Because velocity changes along the axis for compressible fluids, you can use the sections parameter to split a pipe into multiple internal sections, increasing the calculation resolution.