Pressure profile calculation using finite element analysis that exploits the continuity of gas flow