12.07.2015 Views

BCG 10A ISO GERG88 DOCUMENTATION - QuantityWare

BCG 10A ISO GERG88 DOCUMENTATION - QuantityWare

BCG 10A ISO GERG88 DOCUMENTATION - QuantityWare

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Notes:© Copyright 2007 <strong>QuantityWare</strong> GmbH. All rights reserved.SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and servicesmentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG inGermany and in several other countries all over the world. All other product and service names mentionedare the trademarks of their respective companies.Microsoft, Windows, SQL-Server, Powerpoint and Outlook are registered trademarks of MicrosoftCorporation.These materials and the information therein are subject to change without notice. These materials areprovided by the company <strong>QuantityWare</strong> GmbH for informational purposes only. There is no impliedrepresentation or warranty of any kind, and <strong>QuantityWare</strong> GmbH shall not be liable for errors or omissionswith respect to the materials provided. The only warranties for the products and services of <strong>QuantityWare</strong>GmbH are those set forth in the express warranty statements accompanying such products and services, ifany. No statement within this document should be construed as constituting an additional warranty.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 2-24


1. InstallationThe technical implementation is provided as a part of the initial <strong>BCG</strong> <strong>10A</strong> installation SAINTpackage.Please follow the <strong>QuantityWare</strong> SAINT installation instructions for <strong>BCG</strong> <strong>10A</strong>.SAP Oil & Gas must be installedCustomizing settings are included in this package, which are needed in every client in which thissolution will be used.On releases 4.72 and below, the related customizing transport must be imported into allnecessary clients, or distributed to them from client 000.On releases ERP 2005 (ERP 6.0) or newer, BC Set /QTYW/<strong>BCG</strong>_<strong>10A</strong> must be activated in therelevant clients.Please refer to the <strong>QuantityWare</strong> <strong>BCG</strong> <strong>10A</strong> Installation Guide for more information.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 5-24


2. Basic definitions of natural gas quantities and behaviourBesides serving as basic feedstock for the chemical industry, natural gas is predominantly usedfor heat production as a fuel in large industry sites and millions of households worldwide.In order to define a trading value for natural gas and to ensure natural gas interchangeability,certain quantities that characterize natural gas must be defined and recorded in businesstransactions for various processes e.g. inventory management, quality assurance, pricing andexcise duty payments. For a comprehensive list of such quantities we recommend <strong>ISO</strong> standard<strong>ISO</strong> 6976 as a reference.With <strong>BCG</strong> 1.0A <strong>QuantityWare</strong> delivers conversion groups that are designed for all globallyknown standard reference conditions for natural gas in the gas phase (high and low pressureregime (CNG), as well as conversion groups for NGL (Natural Gas Liquids). With the release of<strong>BCG</strong> 1.0A, LNG (Liquefied Natural Gas) support is also in scope.In order to aid the comprehension of this documentation, we cite the most important definitionsfrom standard <strong>ISO</strong> 6976 & <strong>ISO</strong> 6578.Common definitions:Superior calorific value:The amount of heat which would be released by the complete combustion in air of a specifiedquantity of gas, in such a way that the pressure p 1 at which the reaction takes place remainsconstant, and all the products of combustion are returned to the same specified temperature t 1as that of the reactants, all of these products being in the gaseous state except for water formedby combustion, which is condensed to the liquid state at t 1 .A synonym for calorific value is the term heating value. Calorific values can bespecified on a molar or mass basis. Then the calorific value depends on thecombustion reference conditions t 1 and p 1 . More commonly, calorific values aredetermined based upon a volumetric basis ;in this instance, the calorific valueneeds to be specified with the combustion reference conditions t 1 and p 1 as wellas the volumetric reference conditions t 2 and p 2 .<strong>ISO</strong> 12213-3 (SGERG-88 equation) 6-24


Inferior calorific value:The amount of heat which would be released by the complete combustion in air of a specifiedquantity of gas, in such a way that the pressure p 1 at which the reaction takes place remainsconstant, and all the products of combustion are returned to the same specified temperature t 1as that of the reactants, all of these products being in the gaseous state.Density:The density is the mass of a gas sample divided by its volume at specified conditions ofpressure and temperature.Relative density:The density of a gas divided by the density of dry air of standard composition (see Annex B <strong>ISO</strong>6976:1995 for a definition of dry air) at the same specified conditions of pressure andtemperature.Wobbe index:The superior calorific value on a volumetric basis at specified reference conditions, divided bythe square root of the relative density at the same specified metering reference conditions.The Wobbe index is an important quality designation for natural gas, which iscommonly used to determine trade prices and the interchangeability of naturalgas.The SAP QCI does not calculate the Wobbe index for natural gas. <strong>BCG</strong>contains functions to perform these calculations within the delivered globaltemplates.Gas interchangeability:An important business requirement when trading natural gas is that natural gas combustion iskept at a defined quality levels that are e.g. required by burners. The Wobbe index (sometimesalso referred to as Wobbe number) can serve as one important quality number to ensureinterchangeability of natural gas batches with e.g. an apparent different composition.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 7-24


Ideal gas and real gas:An ideal gas is one that obeys the ideal gas law:p . V m = R . Twherep is the absolute pressureT is the thermodynamic temperatureV mRis the volume per mole of gasis the molar gas constant, in coherent units.…(1)No real gas obeys this law. For real gases, equation (1) must be rewritten asp . V m = Z(T,p) . R . Twhere Z(T,p) is a variable often close to unity, and is known as the compression factor.…(2)Compression factor:The actual (real) volume of a given mass of a gas at specified pressure and temperature dividedby its volume, under the same conditions, as calculated by the ideal gas law.Combustion reference conditions:The specified temperature t 1 and pressure p 1 . These are the conditions at which the fuel(natural gas) is notionally burned.Metering reference conditions:The specified temperature t 2 and pressure p 2 . These are the conditions at which the amount ofthe fuel to be burned is notionally determined; there is no a priori reason for these to be thesame as the combustion reference conditions.A range of reference conditions is in use throughout the world. In order toensure ease of trade, exact conversions of natural gas quantities betweendifferent sets of reference conditions is required, based on internationalstandards. This range of different reference conditions is also one of the mainreasons why natural gas quantity conversions are complex, even in the lowpressure regime.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 8-24


Standard reference conditions of selected countries:Country t 1 p 1 t 2 p 2Argentina - 101,325 kPa 15 °C 101,325 kPaAustralia 15 °C 101,325 kPa 0 °C 101,325 kPaAustria 25 °C 101,325 kPa 0 °C 101,325 kPaBelgium 25 °C 101,325 kPa 0 °C 101,325 kPaBrazil - 101,325 kPa 0 °C 101,325 kPaCanada 15 °C 101,325 kPa 15 °C 101,325 kPaChina 20 °C 101,325 kPa 20 °C 101,325 kPaCzechoslovakia 25 °C 101,325 kPa 20 °C and 0 °C 101,325 kPaDenmark 25 °C 101,325 kPa 0 °C 101,325 kPaEgypt - 101,325 kPa 15 °C 101,325 kPaFinland - 101,325 kPa 15 °C 101,325 kPaFrance 0 °C 101,325 kPa 0 °C 101,325 kPaGermany 25 °C 101,325 kPa 0 °C 101,325 kPaHong Kong - 101,325 kPa 15 °C 101,325 kPaHungary - 101,325 kPa 0 °C 101,325 kPaIndia - 101,325 kPa 0 °C 101,325 kPaIndonesia - 101,325 kPa 0 °C 101,325 kPaIran - 101,325 kPa 15 °C 101,325 kPaIreland 15 °C 101,325 kPa 15 °C 101,325 kPaItaly 25 °C 101,325 kPa 0 °C 101,325 kPaJapan 0 °C 101,325 kPa 0 °C 101,325 kPaNetherlands 25 °C 101,325 kPa 0 °C 101,325 kPaNew Zealand - 101,325 kPa 15 °C 101,325 kPaNorway - 101,325 kPa 15 °C 101,325 kPaPakistan - 101,325 kPa 15 °C 101,325 kPaRomania 25 °C 101,325 kPa 15 °C and 0 °C 101,325 kPaRussia 25 °C 101,325 kPa 20 °C and 0 °C 101,325 kPaSpain 0 °C 101,325 kPa 0 °C 101,325 kPaSweden - 101,325 kPa 0 °C 101,325 kPaUnited Kingdom 15 °C 101,325 kPa 15 °C 101,325 kPaUSA 15 °C 101,325 kPa 15 °C 101,325 kPaYugoslavia 0 °C 101,325 kPa 0 °C 101,325 kPa<strong>ISO</strong> 12213-3 (SGERG-88 equation) 9-24


Source: <strong>ISO</strong> 13443 and <strong>ISO</strong> 12213.On the other hand, <strong>ISO</strong> 6976 specifies six sets of reference conditions for heating values on avolumetric basis (Table 5 therein), which can be extracted from the above table, and oneadditional set (25/15) is apparently in usage in some countries. <strong>QuantityWare</strong> thus defines aglobal template for the SI system based on seven sets of combustion and metering referenceconditions, plus an additional three sets of U.S. customary conditions.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 10-24


3. Components of the InstallationWithin this implementation, we provide conversion groups and reading groups together withformula implementations that allow the calculation of base density, base heating value and theWobbe Index as well as quantity values (energies, masses, volumes at any desired referencecondition set) for natural gas (HIGH PRESSURE) at REAL GAS CONDITIONS.Customizing data:SI system:The following conversion groups are provided within <strong>BCG</strong> 1.0A using SI measurement unitswith standard reference pressure values p 1 and p 2 of 101,325 kPa,t 1 /°C = combustion reference temperaturet 2 /°C = volumetric or metering reference temperatureHeating value types:01: Energy / Volume02: Energy / Mass03: Energy / MolHeating value classes:SD: Superior,drySW: Superior, wetID: Inferior,dryIW: Inferior,wetConversiongroup:Description: t 1 t 2 Density Type: Heating value Type& classIdeal/realgasconversionQV30 Natural gas, 15°C/15°C, real 15 15 Rel.density Energy/Volume; SD RealQV31 Natural gas, 15°C/15°C, real 15 15 Density Energy/Volume; SD RealQV32 Natural gas, 15°C/15°C, real 15 15 Rel.density Energy/Mass; SD RealQV33 Natural gas, 15°C/15°C, real 15 15 Density Energy/Mass; SD RealQV34 Natural gas, 0°C/ 0°C, real 0 0 Rel.density Energy/Volume; SD RealQV35 Natural gas, 0°C/ 0°C, real 0 0 Density Energy/Volume; SD Real<strong>ISO</strong> 12213-3 (SGERG-88 equation) 11-24


QV36 Natural gas, 0°C/ 0°C, real 0 0 Rel.density Energy/Mass; SD RealQV37 Natural gas, 0°C/ 0°C, real 0 0 Density Energy/Mass; SD RealQV38 Natural gas, 20°C/20°C, real 20 20 Rel.density Energy/Volume; SD RealQV39 Natural gas, 20°C/20°C, real 20 20 Density Energy/Volume; SD RealQV3A Natural gas, 20°C/20°C, real 20 20 Rel.density Energy/Mass; SD RealQV3B Natural gas, 20°C/20°C, real 20 20 Density Energy/Mass; SD RealQV3C Natural gas, 25°C/20°C, real 25 20 Rel.density Energy/Volume; SD RealQV3D Natural gas, 25°C/20°C, real 25 20 Density Energy/Volume; SD RealQV3E Natural gas, 25°C/20°C, real 25 20 Rel.density Energy/Mass; SD RealQV3F Natural gas, 25°C/20°C, real 25 20 Density Energy/Mass; SD RealQV3G Natural gas, 25°C/15°C, real 25 15 Rel.density Energy/Volume; SD RealQV3H Natural gas, 25°C/15°C, real 25 15 Density Energy/Volume; SD RealQV3I Natural gas, 25°C/15°C, real 25 15 Rel.density Energy/Mass; SD RealQV3J Natural gas, 25°C/15°C, real 25 15 Density Energy/Mass; SD RealQV3K Natural gas, 25°C/0°C, real 25 0 Rel.density Energy/Volume; SD RealQV3L Natural gas, 25°C/0°C, real 25 0 Density Energy/Volume; SD RealQV3M Natural gas, 25°C/0°C, real 25 0 Rel.density Energy/Mass; SD RealQV3N Natural gas, 25°C/0°C, real 25 0 Density Energy/Mass; SD RealQV3O Natural gas, 15°C/0°C, real 25 0 Rel.density Energy/Volume; SD RealQV3P Natural gas, 15°C/0°C, real 25 0 Density Energy/Volume; SD RealQV3Q Natural gas, 15°C/0°C, real 25 0 Rel.density Energy/Mass; SD RealQV3R Natural gas, 15°C/0°C, real 25 0 Density Energy/Mass; SD Real<strong>ISO</strong> 12213-3 (SGERG-88 equation) 12-24


The following reading groups are provided:Reading group:QV30QV31QV32QV33QV38QV39QV3AQV3BQV3GQV3HQV3IQV3JDescription<strong>ISO</strong> 12213 GAS 4,<strong>GERG88</strong>,REL.DENSITY,E/V<strong>ISO</strong> 12213 GAS 4,<strong>GERG88</strong>,DENSITY,E/V<strong>ISO</strong> 12213 GAS 4,<strong>GERG88</strong>,REL.DENSITY,E/MAS<strong>ISO</strong> 12213 GAS 4,<strong>GERG88</strong>,DENSITY,E/MASS<strong>ISO</strong> 12213 GAS 5,<strong>GERG88</strong>,REL.DENSITY,E/V<strong>ISO</strong> 12213 GAS 5,<strong>GERG88</strong>,DENSITY,E/V<strong>ISO</strong> 12213 GAS 5,<strong>GERG88</strong>,REL.DENS.,E/MASS<strong>ISO</strong> 12213 GAS 5,<strong>GERG88</strong>,DENSITY.,E/MASS<strong>ISO</strong> 12213 GAS 6,<strong>GERG88</strong>,REL.DENSITY,E/V<strong>ISO</strong> 12213 GAS 6,<strong>GERG88</strong>,DENSITY,E/V<strong>ISO</strong> 12213 GAS 6,<strong>GERG88</strong>,REL.DENS.,E/MASS<strong>ISO</strong> 12213 GAS 6,<strong>GERG88</strong>,DENSITY,E/MASSU.S.customary system:The following conversion groups are provided using U.S. customary measurement units:t 1 /°C = combustion reference temperature = 60 °Ft 2 /°C = volumetric or metering reference temperature 60°Fp 2 /PSI = volumetric or metering reference pressure , variable (different in different U.S. states)Heating value types:01: Energy / Volume02: Energy / Mass03: Energy / MolHeating value classes:SD: Superior,drySW: Superior, wetID: Inferior,dryIW: Inferior,wet<strong>ISO</strong> 12213-3 (SGERG-88 equation) 13-24


Conversiongroup:Description: p 2 t 2 DensityType:Heating value Type& classIdeal/realgasconversionQV40 Natural gas, 60°F/14.65 Psi, real 14.65 60 Rel.density Energy/Volume; SD RealQV41 Natural gas, 60°F/14.65 Psi, real 14.65 60 Density Energy/Volume; SD RealQV42 Natural gas, 60°F/14.65 Psi, real 14.65 60 Rel.density Energy/Mass; SD RealQV43 Natural gas, 60°F/14.65 Psi, real 14.65 60 Density Energy/Mass; SD RealQV44 Natural gas, 60°F/14.73 Psi, real 14.73 60 Rel.density Energy/Volume; SD RealQV45 Natural gas, 60°F/14.73 Psi, real 14.73 60 Density Energy/Volume; SD RealQV46 Natural gas, 60°F/14.73 Psi, real 14.73 60 Rel.density Energy/Mass; SD RealQV47 Natural gas, 60°F/14.73 Psi, real 14.73 60 Density Energy/Mass; SD RealQV48 Natural gas, 60°F/15.02Psi, real 15.02 60 Rel.density Energy/Volume; SD RealQV49 Natural gas, 60°F/15.02Psi, real 15.02 60 Density Energy/Volume; SD RealQV4A Natural gas, 60°F/15.02 Psi, real 15.02 60 Rel.density Energy/Mass; SD RealQV4B Natural gas, 60°F/15.02 Psi, real 15.02 60 Density Energy/Mass; SD RealThe following reading groups are provided:Reading group:QV40QV41QV42QV43DescriptionU.S. GAS E/VOLUME, REL. DENSITY, <strong>GERG88</strong>U.S. GAS E/VOLUME, DENSITY, <strong>GERG88</strong>U.S. GAS E/MASS, REL. DENSITY, <strong>GERG88</strong>U.S. GAS E/MASS, DENSITY, <strong>GERG88</strong>Programs & Test Tools:The following programs are provided:Test report/QTYW/SGERG_88_TESTFunction Group: /QTYW/SGERG_88Function Group: /QTYW/<strong>ISO</strong>NGBAdI Implementations:In order to pass the Wobbe Index and all heating values and densities (calculated within<strong>QuantityWare</strong> Function /QTYW/SGERG_88_CONNECTOR) to the calling application, you haveto implement SAP QCI BAdI OIB_QCI_CUST_PARAM:<strong>ISO</strong> 12213-3 (SGERG-88 equation) 14-24


QTYW/NATGAS ActiveMove additional natural gas parameters to applOIB_QCI_CUST_PARAMThis BAdI provides exactly one method which has to be implemented as defined in thisexample:METHOD if_ex_oib_qci_cust_param~move_cust_par_to_result .*/ QW Implementation to pass additional natural gas results to*/ calling applicationDATA: ls_naturalgas_export TYPE /qtyw/naturalgas_export.CALL FUNCTION 'OIB_QCI_MOVE_ITAB_TO_STRUC'EXPORTINGi_ddic_reference= '/QTYW/NATURALGAS_EXPORT'IMPORTINGe_structure= ls_naturalgas_exportTABLESt_oib_a10= it_paramEXCEPTIONSstructure_not_exists = 1field_type_not_valid = 2inconsistent_customizing = 3OTHERS = 4.IF sy-subrc 0.MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgnoWITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4RAISING calculation_failure.ENDIF.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 15-24


MOVE-CORRESPONDING ls_naturalgas_export TO cs_customer.ENDMETHOD.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 16-24


4. Formula and requirementsImplemented formulaThis is an implementation of natural gas conversion groups which is based on:<strong>ISO</strong> 12213-3, Second edition 2006-11-15, “Calculation of compression factor – Part 3:Calculation using physical properties”.The formulas utilized by the conversion groups described in this document areimplemented within the SAP QCI and <strong>QuantityWare</strong> <strong>BCG</strong> <strong>10A</strong> functions. Together theyallow conversions between different sets of standard (base) reference conditions.Although <strong>ISO</strong> 13443 defines a temperature value of 15 °C (288,15 K) and a pressurevalue of 101,325 kPa as standard reference conditions for measurements andcalculations for real dry gas (natural gases, natural-gas substitutes, similar fluids in thegaseous state), it is recognized that in certain circumstances it may be impracticable oreven forbidden to use these <strong>ISO</strong> standard reference conditions (e.g. forced by nationallegislation or contractual obligations). Thus, conversion formulas are provided in <strong>ISO</strong>13443 which enable values of properties (relating to any known other referenceconditions) to be converted to values for the <strong>ISO</strong> standard reference conditions.In addition to the formulas provided within <strong>ISO</strong> 13443, calculation formulas based on<strong>ISO</strong> 6976:1995 (E) are utilized by the SAP QCI.<strong>QuantityWare</strong> offers a global conversion group template which can be used tovalidate the SAP QCI formulas (see document <strong>BCG</strong> <strong>10A</strong> <strong>ISO</strong> QCIVALIDATION).The S<strong>GERG88</strong> routines are implemented in <strong>QuantityWare</strong> functions - provided within<strong>BCG</strong> 1.0A - that implement and connect the S<strong>GERG88</strong> equation procedure via theprovided conversion groups to the SAP QCI; these formulae and implementationprocedures are based on <strong>ISO</strong> 6976:1995(E), <strong>ISO</strong> 13443 and <strong>ISO</strong> 12213-3, Secondedition 2006-11-15 (S<strong>GERG88</strong> implementation procedure).<strong>ISO</strong> 12213-3 (SGERG-88 equation) 17-24


Implementation requirementsIn order to use the conversion groups delivered with this package, you have to activate the SAPbasic natural gas conversion routines in customizing: If not already activated, go to:Industry Solution Oil & Gas (Downstream) HPM (Hydrocarbon Product Management) Petroleum Measurement Standards Quantity Conversion Interface (QCI)Configuration Activate SAP conversion routines for natural gasHere, you can activate the SAP natural gas routines. Afterwards, run the validation and testreport. If no errors are reported, productive usage of the SAP QCI with <strong>BCG</strong> <strong>10A</strong> for natural gasis possible.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 18-24


5. Installation TestIncluded in the <strong>BCG</strong> 1.0A package, are test & validation programs that can be used to test theinstallation and also to validate the natural gas conversions based on <strong>ISO</strong> 12213-3:/QTYW/SGERG_88_TEST (execute with transaction SA38):You have four selection options.1) You select “Run installation test”The program executes all 60 calculation examples provided by standard <strong>ISO</strong> 12213-3 andchecks the results against the expected data documented in the standard. The program thenperforms template trial conversions for all global <strong>BCG</strong> <strong>10A</strong> S<strong>GERG88</strong> 36 conversion groupsand compares the results with the alternatively calculated expected results. If the installationtest is successful, the final screen list should look like this:<strong>ISO</strong> 12213-3 (SGERG-88 equation) 19-24


<strong>ISO</strong> 12213-3 (SGERG-88 equation) 20-24


2) You select “Run all 60 <strong>ISO</strong> examples”:The report executes all 60 <strong>ISO</strong> examples and provides a detailed list. The calculation detailscan be displayed by clicking on a result line.<strong>ISO</strong> 12213-3 (SGERG-88 equation) 21-24


Details:<strong>ISO</strong> 12213-3 (SGERG-88 equation) 22-24


3) You select the “Run one specific example” option:The report allows you to run one specified example (no screen shots).4) You select “List all conversion group sc.”:The report lists all data for the conversion group scenarios:<strong>ISO</strong> 12213-3 (SGERG-88 equation) 23-24


6. Integration into SAP - QCI desktop calculatorThis configuration implementation (global S<strong>GERG88</strong> template) is fully integrated into the QCIand thus into all logistics processes like the SAP Trader’s & Schedulers Workbench (TSW). Thedesktop calculator (transaction O3QCITEST) can be used to calculate natural gas quantities forall of the above defined conversion groups:<strong>ISO</strong> 12213-3 (SGERG-88 equation) 24-24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!