Optimal Calculation Method of the Equation SGERG-88 for Compression Factor of Natural Gas

Long Zhang,Jiang Yang,Han Liu,Weisheng Zhong
2011-01-01
Abstract:The nature gas compression factor calculation method and diagram with high accuracy are described by the SGERG-88 equation in national standard GB/T 17747.3-1999. The compression factor algorithm procedure was developed on PC and the calculation accuracy had been checked with the data samples in the standard. The result shows that double floating data is needed to ensure the accuracy, and flow meters can not use the algorithm directly since the running time of the algorithm was too long. The optimal contents which were obtained by analyzing and debugging on PC, are to change the loop iteration control error from 10-6 to 10-5 in the middle calculation part and improve the method of calculating of Moore's heat HCH. The tests show that optimized algorithm was 99% reduction in the number of cycles, and the calculation error was 0.003%. The optimized algorithm had been tested on the flow meter hardware platform based on 32 bit micro processor.
What problem does this paper attempt to address?