If you just need the equations, look in a copy of Crane technical paper 'flow of fluids through valves, fittings and pipe'. For compressible fluid, there's an expansion term for the gas that you have to look up in a table so I can't just give you a simple equation as for non-compressible fluids.