There are a number of approaches to "flange leakage". The FEA approach taken by CAESAR II is discussed in the "October 1991" newsletter, which is available on this website.

As to the API question, you will have to refer to the Code to see the relationship between the various parameters, and which ones you may have the ability to adjust.
_________________________
Regards,
Richard Ay - Consultant