28
Gas Condensate PVT Analysis Workbook Written by Robert Mott, August 2003 This worksheet analyses results from CVD and CCE tests on a gas condensate fluid Data should only be entered on yellow cells First enter CVD data (below the dew point) on the sheet 'CVD Data' Then enter CCE relative volumes (above the dew point) on the sheet 'CCE Data' These checks are described in 'Phase Behavior', SPE Monograph 20, by Whitson and Brule The material balance checks calculate liquid phase densities and compositions. Densities and K-values from the material balance calculation are displayed as charts. The Material Balance checks are shown on the sheet 'Material Balance'. 'Recovery factors' of CVD data Non-monotonic behaviour for the K-value or liquid density curves will cast some doubt on the the CVD measurements used. A 'Forward Material Balance' calculates the final liquid composition from the original compos liquid saturations, Z-factors, amounts of gas removed, and the gas compositions at each step. A 'Backward Material Balance' calculates the original composition from the final liquid compo final liquid saturation, final gas Z-factor, the amounts of gas removed, and the gas composit each step. This is a better check for lean condensates.

Excel Mass Balance CVD Nalaysai

Embed Size (px)

DESCRIPTION

analysis

Citation preview

ReadmeGas Condensate PVT Analysis WorkbookWritten by Robert Mott, August 2003This worksheet analyses results from CVD and CCE tests on a gas condensate fluidData should only be entered on yellow cellsFirst enter CVD data (below the dew point) on the sheet 'CVD Data'Then enter CCE relative volumes (above the dew point) on the sheet 'CCE Data'Recovery factors for individual components and for stock tank oil and gas are shown on the sheet 'Recovery factors'The sheet 'CVD analysis' contains material balance calculations which can be used as a consistency check of CVD dataThese checks are described in 'Phase Behavior', SPE Monograph 20, by Whitson and BruleThe material balance checks calculate liquid phase densities and compositions.Densities and K-values from the material balance calculation are displayed as charts.Non-monotonic behaviour for the K-value or liquid density curves will cast some doubt on the validity of the CVD measurementsIf the liquid composition is measured at the end of the CVD, two other material balance checks can be used.A 'Forward Material Balance' calculates the final liquid composition from the original composition, liquid saturations, Z-factors, amounts of gas removed, and the gas compositions at each step.A 'Backward Material Balance' calculates the original composition from the final liquid composition, final liquid saturation, final gas Z-factor, the amounts of gas removed, and the gas compositions at each step. This is a better check for lean condensates.The Material Balance checks are shown on the sheet 'Material Balance'.

Remap-compsJACK KNIFE 1Nitrogen0N20.000CarbonDioxide0CO20.000Methane0.002H2S0.000Ethane0.008C10.002Propane0.154C20.008Isobutane0.188C30.154n-Butane0.608iC40.1882,2Dimethylpropane0.004nC40.608Isopentane0.835iC50.839n-Pentane1.099nC51.0992,2Dimethylbutane0.055C63.234Cyclopentane0C7+93.8672,3Dimethylbutane0.3562Methylpentane0.843Methylpentane0.56n-Hexane1.423HeptanesPlus93.867

CVD DataCVD DataNo of pressures in CVDPlus fractionThe first pressure must be the dew point pressure2The number of pressure entries must be set to display the charts correctlyN_pres7N_plus7PlusFracC7+Number of pressure entriesPlus fraction1C6+Pressure (psig)5535450035002500170090022C7+Equilibrium3C8+Wellstream produced (cum %)07.97621.9839.96556.25973.95193.845Liquid4C9+Liquid volume (%)01722.84223.83222.30919.06314.967(last stage)5C10+Equilibrium gas Z-factor1.08230.92020.85150.83690.85680.906916C11+MWDensity7C12+Equilibrium gas compositionMwref(lb/ft3)8N20.3930.4050.4330.4420.4370.4280.3350.000N228.0139CO21.7761.8291.8631.8991.9361.9451.6120.000CO244.0110H2S0.0000.0000.0000.0000.0000.0000.0000.000H2S34.076C168.25071.91374.33975.53876.04974.72360.1180.002C116.04C27.0247.1787.2447.4647.6217.6917.1780.008C230.07C36.6256.5016.5016.5016.5017.1128.0910.154C344.09iC41.4181.3521.3121.3001.3241.4621.9910.188iC458.1235.01nC42.3192.1782.1132.1132.1132.3603.2430.608nC458.1236.45iC50.8570.8000.7660.7240.6900.8151.2130.839iC572.1539.13nC50.8420.7870.7570.7160.6810.7621.1511.099nC572.1539.3C60.9680.8570.7710.7010.6470.7011.2683.234C686.1741.19C7C7100.242.6C8C8114.244.2C9C9128.345.3C10C10142.345.7C11C11156.346C7+9.5296.2003.9002.6002.0002.00013.80093.867C7+C7+ molecular weight169.53149.703136.501126.627120.849116.4131.537189.3C7+ molecular weightC7+ specific gravity0.81630.80130.78970.78030.77460.76990.7850.8276C7+ specific gravityTotal composition100.00100.00100.00100.00100.00100.00100000100.00mol vol207.7186.8172.9162.3156.0151.2167.6182.408496Residual liq MWPlus fraction prod0.4945120.5461560.467610.325880.353842.745372Cum moles00.4945121.0406681.5082781.8341582.1879984.933374.933374.933374.933375.2%10.9%15.8%19.2%23.0%51.8%Vol prod92.38728308594.404001717175.883700461450.842076065153.4965268217460.022925814000Cum vol92.387283085186.7912848021262.6749852635313.5170613285367.0135881502827.03651396424.7%9.4%13.3%15.8%18.5%41.8%Initial moles9.529Vol1978.992245498

Robert Mott:This must be the dew point pressureCurtis Hays Whitson:says the reported value is crap! Use a reasonable value

CCE & other dataGeneral InformationNS-1 fluidReservoir temperature (deg F)263Initial pressure (psig)10440Definition of oil for surface oil and gas recoveriesC5+CCE Dataonly enter data at or above dew point pressureenter pressures in descending orderPressureRelativePressureRel volpsigvolumeP_CCEV_CCE104400.83715-104400.8371555351-55351000000000000C4+C5+C6+C7+Oil frac5Calculated oil gas ratio - assumes surface oil = C5+Tstd520deg RPstd14.7psia

Robert Mott:Volume relative to volume at dew point pressureRobert Mott:Table set up using -P to allow TabLook function - which needs data in ascending order

Material balanceForward material balanceBackward material balanceCalculates residual liquid compositionCalculates initial gas compositionCalculated density of residual liquid44.6lb/ft3Density to use in calculation51.280002lb/ft30.8214MeasuredCalculatedMeasuredCalculatedN20.000.10N20.390.39CO20.000.73CO21.781.73H2S0.000.00H2S0.000.00C10.0013.27C168.2567.46C20.010.75C27.026.98C30.151.31C36.636.56iC40.190.28iC41.421.41nC40.610.91nC42.322.30iC50.840.93iC50.860.85nC51.101.13nC50.840.84C63.233.07C60.970.98C70.000.00C70.000.00C80.000.00C80.000.00C90.000.00C90.000.00C100.000.00C100.000.00C110.000.00C110.000.00C7+93.8777.51C7+9.5310.51100.00100.00100.00100.00

Recovery factors0000000000.162850.162850.162850.162850.162850.162850.162850.162850.162850.23320471010.23108502860.22837133090.22592249840.22521945870.22196448240.20629429850.23232143270.2050066180.36089840170.35199143760.34341154120.3333691440.33030958360.31534029720.25427567070.35756693080.25340156420.52753736310.51198438960.49115491330.47087681110.45791903360.42437290120.29535655130.52090648890.29782627770.67952975360.65998327760.62500704040.59633165310.56799058040.51554457270.32398604470.67001314020.33066984380.8416853180.82215626640.78400299610.74780903740.70546393380.6228008880.35507190430.83147434620.36768712510.98838435520.99235030590.98739867110.98106675170.93719245420.84095795760.59626071420.98808377770.56672855060.98838435520.99235030590.98739867110.98106675170.93719245420.84095795760.59626071420.98808377770.56672855060.98838435520.99235030590.98739867110.98106675170.93719245420.84095795760.59626071420.98808377770.56672855060.98838435520.99235030590.98739867110.98106675170.93719245420.84095795760.59626071420.98808377770.5667285506

C1C2C3C4'sC5'sC6C7+GasOilabandonment pressure (psig)Recovery factorsRecovery factors from depletion, no water influx

OGR chart 196.9778989571119.530024334376.112395019553.573591299643.388115646445.1599890671250.3473860933

Oil-gas ratiopressure (psia)OGR (bbl/MMscf)Calculated oil gas ratio - assumes surface oil = C5+

K-value chart5549.75549.75549.75549.75549.75549.75549.75549.75549.75549.75549.75549.75549.75549.75549.71.29849721741.6779064391.20513661250.86867212730.72095526120.66080227550.63899743990.64344607690.49332527274514.74514.74514.74514.74514.70.19018793851.39753048121.9941173131.22912112030.89304522040.67007662250.62610425360.57995936680.5932230420.39218745363514.73514.73514.73514.73514.70.10229944191.6242322582.42265221491.50651683580.88993908230.64102084430.61849447310.4795391380.49046520710.30613619322514.72514.72514.72514.72514.70.0583790932.07525680433.32753873761.88700943420.87567657230.6451473530.58548544810.39564608810.40264523350.23855788061714.71714.71714.71714.71714.70.037867453.36930165547.48839350842.90991945741.24847755840.79851980980.72054551070.4875734010.43526046730.2188147411914.7914.7914.7914.7914.70.02885240132.20568837184.52902424729.52618320986.15316295917.03791248143.57167216871.31065268531.01765842180.413312289416.716.716.716.716.70.1780454242

CO2C1C2C3iC4nC4iC5nC5C6C7C8C9C10C11C7+pressure (psia)K-values calculated from material balance analysis of CVD data

Density chart5549.7394.5797709718650.0029491583311.0264443376661.5725143621230.063378002680.3483234401155.8007574935721.1755336924100.4055476896791.935574362851.4543260645

liquid density (kg/m3)gas density (kg/m3)pressure (psia)density (Kg/m3)Oil and Gas Densities calculated from material balance analysis of CVD data

MBO propsCalculated modified black oil propertiesPressure (psia)553545003500250017009002000Pressure (psia)P5549.74514.73514.72514.71714.7914.716.714.714.714.7Moles of GasCarbon_noup to C384.06887.82690.3891.84492.54491.89977.334000C43.7373.533.4253.4133.4373.8225.2340004C500000000005C600000000006Gas volume at surface (ft3/mol of equil gas)333.339346.820356.117361.629364.378363.391313.4570.0000.0000.000Moles of oiliC400000000004nC400000000004iC50.8570.80.7660.7240.690.8151.2130005nC50.8420.7870.7570.7160.6810.7621.1510005C60.9680.8570.7710.7010.6470.7011.2680006C700000007C800000008C900000009C10000000010C11000000011C7+9.5296.23.92.62213.80007Volume of OilMWDensity(lb/ft3)iC40.00000.00000.00000.00000.00000.00000.00000.00000.00000.000058.1235.01nC40.00000.00000.00000.00000.00000.00000.00000.00000.00000.000058.1236.45iC50.01580.01480.01410.01330.01270.01500.02240.00000.00000.000072.1539.13nC50.01550.01440.01390.01310.01250.01400.02110.00000.00000.000072.1539.30C60.02030.01790.01610.01470.01350.01470.02650.00000.00000.000086.1741.19C70.00000.00000.00000.00000.00000.00000.0000100.242.58C80.00000.00000.00000.00000.00000.00000.0000114.244.19C90.00000.00000.00000.00000.00000.00000.0000128.345.35C100.00000.00000.00000.00000.00000.00000.0000142.345.68C110.00000.00000.00000.00000.00000.00000.0000156.346.00C7+0.31710.18560.10800.06760.05000.04850.37060.00000.00000.0000Oil volume at surface (ft3/mol of equil gas)0.36870.23280.15220.10880.08880.09210.44060.00000.00000.0000Oil-gas ratio (bbl/MMscf)196.98119.5376.1153.5743.3945.16250.350.000.000.00GOR (scf/STB)50778366131381866623048221433994Gas FVF (res bbl/Mscf)0.80820.81180.93971.27121.89433.7688263.88030.00000.00000.0000

Rec factors calcCalculated recovery factorsCalculated recovery factors for each componentAbandonment pressure (psia)10440553545003500250017009002222ComponentC10.0%16.3%23.3%36.1%52.8%68.0%84.2%98.8%98.8%98.8%98.8%C20.0%16.3%23.1%35.2%51.2%66.0%82.2%99.2%99.2%99.2%99.2%V_Pinit0.83715C30.0%16.3%22.8%34.3%49.1%62.5%78.4%98.7%98.7%98.7%98.7%V_Pdew1C4's0.0%16.3%22.6%33.3%47.1%59.6%74.8%98.1%98.1%98.1%98.1%N_init0.83715C5's0.0%16.3%22.5%33.0%45.8%56.8%70.5%93.7%93.7%93.7%93.7%C60.0%16.3%22.2%31.5%42.4%51.6%62.3%84.1%84.1%84.1%84.1%C7+0.0%16.3%20.6%25.4%29.5%32.4%35.5%59.6%59.6%59.6%59.6%Gas0.0%16.3%23.2%35.8%52.1%67.0%83.1%98.8%98.8%98.8%98.8%Oil0.0%16.3%20.5%25.3%29.8%33.1%36.8%56.7%56.7%56.7%56.7%Moles produced at each stepN200.0320.0610.0790.0710.0760.0670.0000.0000.000CO200.1460.2610.3420.3150.3440.3210.0000.0000.000H2S00.0000.0000.0000.0000.0000.0000.0000.0000.000C105.73610.41013.58612.39113.22011.9600.0000.0000.000C200.5731.0141.3421.2421.3611.4280.0000.0000.000C300.5190.9101.1691.0591.2581.6100.0000.0000.000iC400.1080.1840.2340.2160.2590.3960.0000.0000.000nC400.1740.2960.3800.3440.4180.6450.0000.0000.000iC500.0640.1070.1300.1120.1440.2410.0000.0000.000nC500.0630.1060.1290.1110.1350.2290.0000.0000.000C600.0680.1080.1260.1050.1240.2520.0000.0000.000C7+00.4950.5460.4680.3260.3542.7450.0000.0000.000Moles of gas producedCarbon_noInitial gasup to C30.0007.00512.65716.51815.07916.25915.3850.0000.0000.00084.068C40.0000.2820.4800.6140.5600.6761.0410.0000.0000.00043.737C50.0000.0000.0000.0000.0000.0000.0000.0000.0000.00050.000C60.0000.0000.0000.0000.0000.0000.0000.0000.0000.00060.000Total0.0007.28713.13617.13215.63916.93516.4260.0000.0000.00087.805Initial gasCumulative total0.0007.28720.42337.55553.19470.12986.55586.55586.55586.555Moles of oil producedInitial oiliC40.0000.0000.0000.0000.0000.0000.0000.0000.0000.00040.000`nC40.0000.0000.0000.0000.0000.0000.0000.0000.0000.00040.000iC50.0000.0640.1070.1300.1120.1440.2410.0000.0000.00050.857nC50.0000.0630.1060.1290.1110.1350.2290.0000.0000.00050.842C60.0000.0680.1080.1260.1050.1240.2520.0000.0000.00060.968C7+0.0000.4950.5460.4680.3260.3542.7450.0000.0000.00079.529Volume of oil produced (ft3/mol of equil gas)MWDensity(lb/ft3)iC40.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.00058.1235.01nC40.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.00058.1236.45iC50.0000.0010.0020.0020.0020.0030.0040.0000.0000.0000.01672.1539.13nC50.0000.0010.0020.0020.0020.0020.0040.0000.0000.0000.01572.1539.3C60.0000.0010.0020.0030.0020.0030.0050.0000.0000.0000.02086.1741.19C7+0.0000.0150.0150.0120.0080.0090.0740.0000.0000.0000.317Total0.0000.0190.0210.0200.0140.0160.0880.0000.0000.0000.369Initial oilCumulative total0.0000.0190.0400.0590.0740.0900.1780.1780.1780.178

Robert Mott:Ratio between vol at dew point and vol at initial pressure

CVD analysistemperature (deg R)Tres722.67deg RUGC10.732pressure (psia)P5549.74514.73514.72514.71714.7914.716.714.714.714.7wellstream produced (cum fraction)Np00.079760.21980.399650.562590.739510.93845000liquid volume (fraction)SL00.170.228420.238320.223090.190630.14967000eq gas Z-factorZ1.08230.92020.85150.83690.85680.90691000Produced gas phase compositiongas phase compositionN20.3930.4050.4330.4420.4370.4280.335000CO21.7761.8291.8631.8991.9361.9451.612000H2S0000000000C168.2571.91374.33975.53876.04974.72360.118000C27.0247.1787.2447.4647.6217.6917.178000C36.6256.5016.5016.5016.5017.1128.091000iC41.4181.3521.3121.31.3241.4621.991000nC42.3192.1782.1132.1132.1132.363.243000iC50.8570.80.7660.7240.690.8151.213000nC50.8420.7870.7570.7160.6810.7621.151000C60.9680.8570.7710.7010.6470.7011.268000C70000000000C80000000000C90000000000C100000000000C110000000000C7+9.5296.23.92.62213.8000MW_plus169.53149.703136.501126.627120.849116.4131.537000MW_gas37.25930.69526.98725.10624.29224.70140.1640.0000.0000.000vol of 1 lb mole (ft3)V1.51251.58081.87902.58113.87547.6896464.41280.00000.00000.0000Vcell1.513Gas density (lb/ft3)gas density (lb/ft3)24.63419.41714.3639.7276.2683.2120.0860.0000.0000.000Init mass37.26Gas density (Kg/m3)gas density (kg/m3)394.58311.03230.06155.80100.4151.451.390.000.000.00Lb Moles gas producedNgas_p00.079760.140040.179850.162940.176920.19894-0.9384500Vol of gas in cellVgas1.51251.25541.16701.15211.17511.22421.28611.51251.51251.5125Lb moles of gas in cellNgas1.00000.79420.62110.44630.30320.15920.0028000Lb moles of liquidNliq0.00000.12610.15910.15400.13420.10130.0588000Mass removedMgas_p0.0002.4483.7794.5153.9584.3707.9900.0000.0000.000Mass of gas in cellMgas37.2624.3816.7611.217.373.930.110.000.000.00Mass of liquidMliq0.0010.4314.2715.3115.1914.2610.090.000.000.00MW of liquid82.7589.6999.41113.21140.74171.590.000.000.00Liquid density (lb/ft3)liquid density (lb/ft3)40.5841.3042.4745.0249.4444.550.000.000.00Liquid density (Kg/m3)liquid density (kg/m3)650.00661.57680.35721.18791.94713.670.000.000.00moles of each componentN20.3930.3610.3000.2210.1490.0740.0070.0070.0070.007remaining in cellCO21.7761.6301.3691.0280.7120.3680.0470.0470.0470.047(after extra gas has been removed)H2S00.0000.0000.0000.0000.0000.0000.0000.0000.000C168.2562.51452.10438.51826.12712.9070.9470.9470.9470.947C27.0246.4515.4374.0952.8531.4920.0640.0640.0640.064C36.6256.1065.1964.0272.9681.7090.1000.1000.1000.100iC41.4181.3101.1260.8930.6770.4180.0220.0220.0220.022nC42.3192.1451.8491.4691.1250.7080.0620.0620.0620.062iC50.8570.7930.6860.5560.4430.2990.0580.0580.0580.058nC50.8420.7790.6730.5440.4330.2990.0700.0700.0700.070C60.9680.9000.7920.6660.5600.4360.1840.1840.1840.184C700.0000.0000.0000.0000.0000.0000.0000.0000.000C800.0000.0000.0000.0000.0000.0000.0000.0000.000C900.0000.0000.0000.0000.0000.0000.0000.0000.000C1000.0000.0000.0000.0000.0000.0000.0000.0000.000C1100.0000.0000.0000.0000.0000.0000.0000.0000.000C7+9.5299.0348.4888.0217.6957.3414.5964.5964.5964.596Total100.00192.02578.02160.03643.74326.0516.1576.1576.1576.157moles of liquid in cellN20.0000.0390.0310.0230.0170.0060.0060.0000.0000.000CO20.0000.1780.2120.1800.1250.0580.0430.0000.0000.000H2S0.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C10.0005.4045.9324.8033.0671.0110.7800.0000.0000.000C20.0000.7510.9380.7630.5420.2680.0440.0000.0000.000C30.0000.9441.1581.1250.9960.5770.0770.0000.0000.000iC40.0000.2360.3120.3120.2750.1850.0170.0000.0000.000nC40.0000.4160.5370.5260.4840.3320.0530.0000.0000.000iC50.0000.1580.2100.2330.2340.1690.0540.0000.0000.000nC50.0000.1540.2030.2250.2270.1770.0670.0000.0000.000C60.0000.2190.3130.3530.3640.3250.1800.0000.0000.000C70.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C80.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C90.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C100.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C110.0000.0000.0000.0000.0000.0000.0000.0000.0000.000C7+0.0004.1116.0666.8607.0887.0234.5570.0000.0000.000MeasuredTotal0.00012.61015.91215.40413.42110.1315.8800.0000.0000.000liquidcompositionMW of C7+ fraction in liquid0.00.00.00.00.00.00.00.00.0189.3Calculated liquid phase composition (mol %)N20.310.200.150.130.050.100.000.000.000.00CO21.411.331.170.930.580.730.000.000.000.00H2S0.000.000.000.000.000.000.000.000.000.00C142.8637.2831.1822.859.9813.270.000.000.000.00C25.965.894.954.042.640.750.000.000.000.01C37.487.287.307.425.701.310.000.000.000.15iC41.881.962.032.051.830.280.000.000.000.19nC43.303.373.423.613.280.910.000.000.000.61iC51.251.321.511.741.670.930.000.000.000.84nC51.221.281.461.691.751.130.000.000.001.10C61.741.972.292.713.203.070.000.000.003.23C70.000.000.000.000.000.000.000.000.000.00C80.000.000.000.000.000.000.000.000.000.00C90.000.000.000.000.000.000.000.000.000.00C100.000.000.000.000.000.000.000.000.000.00C110.000.000.000.000.000.000.000.000.000.00C7+32.6038.1244.5452.8269.3277.510.000.000.0093.87K-valuesN21.30732.21372.92393.47987.88113.24670.00000.00000.0000CO21.29851.39751.62422.07533.36932.20570.00000.00000.0000H2S0.00000.00000.00000.00000.00000.00000.00000.00000.0000C11.67791.99412.42273.32757.48844.52900.00000.00000.0000C21.20511.22911.50651.88702.90999.52620.00000.00000.0000C30.86870.89300.88990.87571.24856.15320.00000.00000.0000iC40.72100.67010.64100.64510.79857.03790.00000.00000.0000nC40.66080.62610.61850.58550.72053.57170.00000.00000.0000iC50.63900.58000.47950.39560.48761.31070.00000.00000.0000nC50.64340.59320.49050.40260.43531.01770.00000.00000.0000C60.49330.39220.30610.23860.21880.41330.00000.00000.0000C70.00000.00000.00000.00000.00000.00000.00000.00000.0000C80.00000.00000.00000.00000.00000.00000.00000.00000.0000C90.00000.00000.00000.00000.00000.00000.00000.00000.0000C100.00000.00000.00000.00000.00000.00000.00000.00000.0000C110.00000.00000.00000.00000.00000.00000.00000.00000.0000C7+0.19020.10230.05840.03790.02890.17800.00000.00000.0000Backward material balance calculationCalculate original gas composition from residual liquid and produced gas compositions4514.73514.72514.71714.7914.716.714.714.714.7Residual gasResidual liquidMoles of residual liquidN20.38690.03230.06060.07950.07120.07570.06660.00000.00000.00000.00090.0000Gas molar vol464.4128CO21.73270.14590.26090.34150.31550.34410.32070.00000.00000.00000.00410.0000Liq molar vol3.5571H2S0.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.0000Total moles0.0616C167.45745.735810.410413.585512.391413.220011.95990.00000.00000.00000.15430.0001Liq sat0.1497C26.97870.57251.01441.34241.24181.36071.42800.00000.00000.00000.01840.0005Liq mole frac0.9583C36.55510.51850.91041.16921.05931.25831.60960.00000.00000.00000.02080.0091iC41.41210.10780.18370.23380.21570.25870.39610.00000.00000.00000.00510.0111Moles resid liq0.0590nC42.30080.17370.29590.38000.34430.41750.64520.00000.00000.00000.00830.0359Moles_resid_gas0.0026iC50.85180.06380.10730.13020.11240.14420.24130.00000.00000.00000.00310.0495nC50.84010.06280.10600.12880.11100.13480.22900.00000.00000.00000.00300.0648C60.97810.06840.10800.12610.10540.12400.25230.00000.00000.00000.00330.19080.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.0000C7+10.50540.49450.54620.46760.32590.35382.74540.00000.00000.00000.03545.536699.99917.976014.003917.984616.293817.691819.89400.00000.00000.00000.25675.8983

Robert Mott:Universal gas constant (field units)Robert Mott:Molar vol (cu ft/lb mol)Robert Mott:Volume of 1 lb mol at PdewRobert Mott:To use in backward material balance calculation

Attribute VB_Name = "Module1"Option ExplicitFunction TabLook(X, Array1, Array2)RemRem Table look up function where X array in ascending orderRemRem X is the value to be looked up

Rem Array1 is the array of X values (must be monotonic strictly increasing)

Rem The end of Array1 is the last value which is greater than the previous one

Rem Array2 is the array of Y valuesRemRem Constant value extrapolation off the ends of the tableRemRem Returns value of -999 if the table has only one valid entry''

Dim Index As IntegerDim F As Single

If X < Array1(1) Then TabLook = Array2(1)Else

Index = Application.Match(X, Array1, 1)

If Index > 0 Then If (Array1(Index + 1) > Array1(Index)) Then TabLook = Index F = (X - Array1(Index)) / (Array1(Index + 1) - Array1(Index))' If F > 1 Then F = 1 ElseIf F < 0 Then F = 0 End If TabLook = F * Array2(Index + 1) + (1 - F) * Array2(Index) Else TabLook = Array2(Index) End If Else TabLook = -999 End IfEnd If

End Function

Attribute VB_Name = "Chart6"Attribute VB_Base = "0{00020821-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Chart7"Attribute VB_Base = "0{00020821-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Module3"Sub Hide_Plus_Fraction_Rows()

' Hides and shows rows to allow for different definition of C7+ fraction' This is needed so that the Charts work sensibly'Dim Nplus As IntegerDim Row_No, Col_No As Integer' Nplus = Range("N_plus").Value

' Show / Hide rows on sheet CVD Data, Material balance and CVD analysis

For Row_No = 6 To Nplus Sheets("CVD Data").Rows(Row_No + 20).Hidden = False Sheets("Material balance").Rows(Row_No + 13).Hidden = False Sheets("CVD analysis").Rows(Row_No + 118).Hidden = False Next Row_No For Row_No = Nplus To 11 Sheets("CVD Data").Rows(Row_No + 21).Hidden = True Sheets("Material balance").Rows(Row_No + 14).Hidden = True Sheets("CVD analysis").Rows(Row_No + 119).Hidden = True For Col_No = 3 To 14 Sheets("CVD Data").Cells(Row_No + 21, Col_No).Value = "" Next Col_No Next Row_NoEnd Sub

Attribute VB_Name = "Chart8"Attribute VB_Base = "0{00020821-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Module2"Sub Hide_CVD_Columns()Attribute Hide_CVD_Columns.VB_Description = "Macro recorded 15/10/2002 by Robert Mott"Attribute Hide_CVD_Columns.VB_ProcData.VB_Invoke_Func = " \n14"'' Hides and shows columns on CVD sheets to allow' for different number of pressure entries'' This is needed so that the Charts work sensibly'Dim Col_No As IntegerDim Last_p As Integer'

Last_p = Range("N_pres").Value

' Hide columns on sheet CVD Data' and sheet CVD analysis

For Col_No = 3 To Last_p + 2 Sheets("CVD Data").Columns(Col_No).Hidden = False Sheets("CVD analysis").Columns(Col_No).Hidden = False Sheets("MBO props").Columns(Col_No).Hidden = False Next Col_No For Col_No = Last_p + 3 To 12 Sheets("CVD Data").Columns(Col_No).Hidden = True Sheets("CVD analysis").Columns(Col_No).Hidden = True Sheets("MBO props").Columns(Col_No).Hidden = True Next Col_No

End Sub

Attribute VB_Name = "Chart9"Attribute VB_Base = "0{00020821-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet7"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet2"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet1"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "ThisWorkbook"Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet6"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet5"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet4"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Sheet3"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True