Download xls - Compressor Pressure

Transcript

Sheet1CompressorPressure.xls0Description: This spreadsheet calculates required pressure from compressor.Don't change data in red!Instruction: 1) Select a unit system; 2) Click "Slotion" button; and 3) View result.Input Data:110Depth of operating valve (Dv):5,000ft1524m5,000.00ftLength of the mail distribution line (Lg):1miles1.61km1.00milesI.D. of the mail distribution line (D):4.00in.0.1mFor z in well:4.00in.Gas flow rate in main distribution line (qg,l):16MMscf/d450km3/dTpc=169.0+314.0*SGFG=373.1oR16.00MMscf/daySurface temperature (Ts):70oF25oCPpc=708.75-57.5*SGFG=671.245psia70.00oFTemperature at valve depth (Tv):120oF50oCTpr=(T+460.0)/Tpc=1.4875120.00oFGas specific gravity (gg):0.65air=10.75air=1t=1/Tpr=0.67230.65air=1Gas specific heat ratio (k):1.251.3Ppr=p/Ppc=0.84351.25Tubing pressure at valve depth (pt,v):500psia4.2MPa500.00psiaValve pressure differential (Dpv):100psia0.6MPaA=0.06125*t*EXP(-1.2*(1.-t**2)=0.0362100.00psiaBase temperature (Tb):60oF20oCB=t*(14.76-9.76*t+4.58*t*t)=6.903160.00oFBase pressure (pb):14.7psia0.1MPaC=t*(90.7-242.2*t+42.4*t*t)=-35.6014.70psiaPressure safety factor (Sf):1.11.1D=2.18+2.82*t=4.07581.10Y ==0.0332600psia4.08MPaF=-A*Ppr+(Y+Y*Y+Y**3-Y**4)/(1.-Y)**3-B*Y*Y+C*Y**DAverage z -factor in annulus:0.91890.92-0.000152716532psia3.62MPaFor z in lines:For P,c,s:-0.000004904533.3333333333532psia3.62MPaTpr=(T+460.0)/Tpc=1.4205969psia6.59MPat=1/Tpr=0.7040Average z -factor at surface:0.82780.83Ppr=p/Ppc=1.51381,063psia7.23MPaFor Pl:-0.00001,170psia7.96MPaA=0.06125*t*EXP(-1.2*(1.-t**2)=0.0388B=t*(14.76-9.76*t+4.58*t*t)=7.1516C=t*(90.7-242.2*t+42.4*t*t)=-41.38D=2.18+2.82*t=4.1652Y ==0.0710F=-A*Ppr+(Y+Y*Y+Y**3-Y**4)/(1.-Y)**3-B*Y*Y+C*Y**D-0.0002428438

SolutionSI UnitsUS Units

Sheet2

Sheet3

MBD023BB0F3.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD02462E66.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD023D1B95.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD0238D792.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD0238E4BC.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD0236AFBD.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

MBD02385222.unknownAttribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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

Attribute VB_Name = "Module1"

Attribute VB_Name = "Module3"

Attribute VB_Name = "Module2"

Attribute VB_Name = "Module5"Sub UsFieldUnits()'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+F'

Range("e4").Select ActiveCell.FormulaR1C1 = "1" Range("e5").Select For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 2 Next i

Range("B5").SelectEnd Sub

Sub SiUnits()Application.Run "CompressorPressure.xls!UsFieldUnits"'' UsFieldUnits Macro' Macro recorded 11/11/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+I' Range("e4").Select ActiveCell.FormulaR1C1 = "0" Range("e5").Select

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

For i = 5 To 17

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 5 To 17

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 2).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 3).Select Selection.Font.ColorIndex = 2 Next i

For i = 19 To 26

Cells(i, 4).Select Selection.Font.ColorIndex = 0 Next i

For i = 19 To 26

Cells(i, 5).Select Selection.Font.ColorIndex = 0 Next i

Range("D5").SelectEnd SubSub Solution()Attribute Solution.VB_Description = "Macro recorded 11/3/2005 by Dr. Boyun Guo"Attribute Solution.VB_ProcData.VB_Invoke_Func = "S\n14"'' Solution Macro' Macro recorded 11/3/2005 by Dr. Boyun Guo'' Keyboard Shortcut: Ctrl+Shift+S' ActiveWindow.SmallScroll Down:=4 Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") Range("G20").Select Range("G20").GoalSeek Goal:=0, ChangingCell:=Range("I18") Range("I21").Select Range("I21").GoalSeek Goal:=0, ChangingCell:=Range("b21") ActiveWindow.ScrollRow = 7 ActiveWindow.SmallScroll Down:=12 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 22 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") ActiveWindow.ScrollRow = 19 Range("G32").Select Range("G32").GoalSeek Goal:=0, ChangingCell:=Range("I30") ActiveWindow.ScrollRow = 19 Range("I25").Select Range("I25").GoalSeek Goal:=0, ChangingCell:=Range("b25") Range("a26").SelectEnd Sub

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 = "Module4"

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 = "Module6"

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 = "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


Recommended