An ideal fluid is defined as a fluid that is incompressible (density is constant) and non-viscous. Compressibility is a measure of how much the volume or density of a fluid changes under pressure.