Pressure and density calculations