38
INSTRUCAL AUX PROCESS DATA CALCULATIONS. FLUID PROPERTIES. PIPE PRESSURE LOSS. LIQUID WATERHAMMER. Auxiliary Program Help Contents This is a program for calculating pressure loss in pipe, waterhammer and process data For help on each screen: Press F1. Overview Program Features Calculation Menu Program Lead Sheet Pressure Loss Calculation for liquids Data Calculation for liquids Calculation Engineering Units for liquids Water Hammer Calculation for liquids Calculation Printout Pressure Loss Calculation for Gases Data Calculation for Gases Summary Printout Calculation Engineering Units for Gases Calculation Routines Program Data File Specification Importing Data into a Calculation Pipe Size Data AUXILIARY PROGRAMS -- Overview Programs are available for -- · Liquid Line Friction Pressure Loss. · Gas Line Friction Pressure Loss. · Water Hammer Liquid Flow. · Process Liquid Data · Process Gas Data. The Pressure Loss Programs, knowing the source pressure will calculate the destination pressure. They have pipe material options for -- · Commercial Steel Pipe.

Instrucalc II

Embed Size (px)

Citation preview

Page 1: Instrucalc II

INSTRUCAL AUX PROCESS DATA CALCULATIONS. FLUID PROPERTIES. PIPE PRESSURE LOSS. LIQUID WATERHAMMER.

Auxiliary Program Help ContentsThis is a program for calculating pressure loss in pipe, waterhammer and process data

For help on each screen: Press F1.OverviewProgram FeaturesCalculation MenuProgram Lead SheetPressure Loss Calculation for liquidsData Calculation for liquidsCalculation Engineering Units for liquidsWater Hammer Calculation for liquidsCalculation PrintoutPressure Loss Calculation for GasesData Calculation for GasesSummary PrintoutCalculation Engineering Units for GasesCalculation RoutinesProgram Data File SpecificationImporting Data into a CalculationPipe Size Data

AUXILIARY PROGRAMS -- Overview

Programs are available for --· Liquid Line Friction Pressure Loss.

· Gas Line Friction Pressure Loss.· Water Hammer Liquid Flow.· Process Liquid Data· Process Gas Data. The Pressure Loss Programs, knowing the source pressure will calculate the destination pressure. They have pipe material options for --· Commercial Steel Pipe.

· Drawn Tubing.· Cast Iron Pipe.· Galvanized Iron Pipe.· Asphalted Iron Pipe.· Concrete Pipe.· Wood Stave Pipe.

Each have pipe conditions for --· New Pipe (Normal friction factor).

Page 2: Instrucalc II

· Good Pipe (Normal friction factor plus 20%).· Old Pipe (Normal friction factor plus 50%).

They have options for a sudden contraction inlet, a sudden expansion outlet, number of, gate, globe and check valves, number of 90deg, 45deg, through tee and branch tee. They will compensate for elevation changes and include an input for equipment losses.

The output data is, the destination pressure, the velocity, the equivalent line length, the pressure drop per 100ft, The liquid program displays the Reynolds Number and the gas program displays the sonic velocity.

The gas program divides the equivalent line length into 20 parts, it recalculates the density for each increment of length, sums the pressure loss, and checks for sonic velocity.

The Water Hammer program is for determining closing times for valves in long liquid filled lines. When a flow of liquid is suddenly stopped a pounding of the line is sometimes produced which can be large enough to damage equipment and pipe supports. The worst conditions are at the critical time or less. The critical time being the time it takes for the pressure wave to travel the length of the pipe and return.

The program will calculate the critical time, the pressure wave velocity, the pressure wave magnitude, the pipe support force and the minimum closing time to avoid over pressure. For a selected closing time it will calculate the magnitude of the pressure wave and the pipe support force

The Process Data programs are for liquid and gas. They will provide process data from the data bank at the pressure and temperature entered in the program. The data is for pure fluids or mixtures. The available data is --· Molecular weight.

· Specific gravity at pressure and temperature.· Specific gravity at base conditions.· Viscosity at pressure and temperature· Vapor pressure.· Density at pressure and temperature.· Critical pressure.· Critical temperature.· Normal boiling point.· Liquid bulk modulus.· Liquid flash point.· Ratio of specific heats.· Compressibility factor.· Latent heat of vaporization.

For user entered data the program will also calculate --· Densiity at pressure and temperature.

· Compressibility factor at pressure and temperature.· Vapor pressure.· Vapor temperature.· Latent heat of vaporization.

Page 3: Instrucalc II

General If changes are made to data recalled from file, the data will be displayed in the color selected for changed data. This will assist in recognising the affect the changes make to other calculations and the data sheet.

AUXILIARY PROGRAM Features

Perform calculationsCalculate pressure loss due to flowCalculate waterhammer critical timeCalculate fluid properties at flow conditionsCalculate steam dataSupply pipe sizesUse English or SI engineering units in any mixtureUse mass or volume flow unitsImport process dataPrint a calculation sheet using the Windows Print ManagerSave the data

Print a summary of saved recordsPrint all recordsPrint selected recordsPrint only records having required characteristics

AUXILIARY PROGRAM Menu Options

New calculationSelect the required calculation option and the fluid option, then select OK

(or doubleclick if at least one of the options is already selected).File

Default filesRecalls file data using the files in the default drives and paths.

Other filesRecalls file data using the Windows file selection procedure.

Data file maintenanceEdit Tag Numbers

Provides the facility to change the Tag Numbers on file.Or delete records from file.

Sort data fileRearrange the Tag Numbers in ascending order.Delete the items marked if the edit was saved.

(Version 5.0)Data files

Path for the default calculation data files.User units

Path for the user selection set of engineering units.Headings

Path for the printout headings.

Page 4: Instrucalc II

There are three paths. If a Drive and Path different from the Default Path and Drive provided in the initial Set Up Procedure was used, the program will update them to the Drive and Path which was installed. They are saved in sequential file AUXCALC.DRV which resides with the programs. To check or change the paths, either call up the Drive and Path for edit or use a text editor to or change the file contents. Exit

Exits from InstruCalc to Windows Program Manager.

Edit Tables (Version 5.0)InstruCalc uses Data Tables for Gas, Liquid,Pipe Size and Material properties, these

contain data from which exact properties for the flow conditions are calculated. This option provides an easy means of customizing them. Items can be added, inserted, deleted and changed.

Editing is performed by either clicking the appropriate line in the Grid or entering the line number in Row to Edit and clicking Recall Row. Edit the data and Load Row to the Grid. When a box in the edit line is clicked, information on the data required is displayed above. Save Grid overwrites the old file. A backup file is recommended before you start. The file name is in the heading of the Edit Form and the files are in the program directory.

Note that data cannot be edited directly in the grid.Color

Provides color options for InstruCalc displays, using the Windows palette.Note that colors for scroll bars, command buttons, disabled text, borders etc., are selected through the Windows Control PanelPrint Summary

Goes to the print summary program.

AUXILIARY PROGRAM Lead Sheet

The program will only stop at the Lead Sheet if it fails to find the default paths file.To continue, type in the paths and save the file. The Data Files are specific to a project and an instrument typeThe Units File may be common for all projects and specific for an instrument typeThe Headings File may be specific for a project and common for all instruments

AUXILIARY PROGRAM Liquid Pipe Loss Calculation

Engineering UnitsThere are four standard unit sets and one user selected set available -

Mass Flow - English units. Pounds per hour and degrees FahrenheitVolume Flow - English Units. US gallons per minute and degrees FahrenheitMass Flow - SI Units. Kilograms per second and degrees CentigradeVolume Flow - SI Units. Litres per second and degrees CentigradeUser Units. A set of units selected from the Liquid Flow Engineering Unit screen

To make or change a User Unit set select the option Review units.

Page 5: Instrucalc II

The Liquid Flow Engineering Unit screen will be displayed. It shows the available options and the current unit selection.

Select the required units and save the User file.Unit Selection

A new calculation loads the default units, which can be any of the five available options. It is set up by selecting the required units under the Engineering Units menu, then going back into the same menu and saving it as the default. Two defaults are available, one for liquids, set in the liquid calculation and one for gas, set in the gas calculation.

If process data is downloaded to a calculation which is displaying the wrong units, any of them can be overwritten with any of the five standard unit options without converting any of the data. To do this, under the Engineering Units menu, select the option Change units, no conversion , this will then allow one selection from the menu without conversion and then revert to normal operation.

The Unit Selection can be made at any time. The input data will be converted to the new units. If a volumetric flow unit set is selected and the specific gravity at base conditions is not available the flow is set to zero. Units for any individual input entry can be changed by the selecting the Review Units option and choosing from the Liquid Flow Engineering Unit screen.Base Conditions

The Base Conditions option will display the current values of base pressure, base temperature and barometric pressure. They should be checked and modified and saved to suit the operating conditions. AGA specifies a base pressure of 14.73 psia for natural gas, 14.696 for liquids with a vapor pressure equal or less than one atmosphere, and a base temperature of 60 degF. The ISO standard is 14.696 psia and 59 degFFluid Properties

The Fluid properties option is enabled when the pressure and temperature are entered. The properties required for a calculation are available for pure liquids and mixtures and are provided in the selected units. Caution should be used for mixtures of dissimilar fluids because the mixture law may not apply.

For a pure liquid find the name and select (or double-click) the name, the fluid properties will be entered.

For a mixture select the first component. In the component box, enter the percentage. Continue until the remaining percentage equals zero, then select calculate in the component box and the program will calculate and enter the mixture values. The fluid properties data base is user upgradableCalculation options.

Select the Pipe Material.Select the Pipe Condition.Check the Entrance if it is a large contractionCheck the Exit if it is a large expansion

Input DataThree cases are available, use only what is needed.

The enabled input boxes define the data required for the calculation.Enter the piping configuration and the pipe lengths and elevation change.Enter the process data

Page 6: Instrucalc II

CalculateClick the Case button. The program will validate the input data,Calculate the output dataDisplay the results

Editing DataThe output data should be examined for adequacy.A reasonable velocity for orifice plates is 2 to 10 feet per secondOr 2 to 25 feet per second for other devices.

Change data as required and recalculateFiling and Moving OnThe options in the File menu are --

Program menu -- Clears the calculation and returns to the main menu.Prepare data sheet --Is enabled after a calculation is made, it displays the screen to

prepare a data sheet form for the calculated item.New - Clears the screen for a new calculation.Save - Using the default path, it saves a new record if not previously saved or saves

changes to an existing record.Save New.-.Using the default path, it saves an existing record as a new record

( Used to duplicate similar items. i.e. Recall an existing record. Edit as required and Save New)

Save As.... - Uses the Windows file access system. Saves to a file anywhere.Import data - Select the units and read Input data supplied in sequential files.File default path - Changes the default paths for the calculation records

The default paths areThe Data Files. (AUXDAT.TAG and AUXDAT.DAT).The User Unit Files. (AUXDAT.UNS)The Printout Headings File (HEADINGS.DAT)

Print calculation - Is enabled after a calculation is made. It displays the screen to print a calculation.

Exit -- Leaves the program and returns to the Windows Program Manager

AUXILIARY PROGRAM Liquid Data Calculation

This program provides various process data which is required for many instrument calculations. It is integral with INSTRUCALC and is provided here for other calculationsEngineering Units

There are four standard unit sets and one user selected set available -Mass Flow - English units. Pounds per hour and degrees FahrenheitVolume Flow - English Units. US gallons per minute and degrees FahrenheitMass Flow - SI Units. Kilograms per second and degrees CentigradeVolume Flow - SI Units. Litres per second and degrees CentigradeUser Units. A set of units selected from the Liquid Flow Engineering Unit screen

To make or change a User Unit set select the option Review units.The Liquid Flow Engineering Unit screen will be displayed. It shows the available

options and the current unit selection.

Page 7: Instrucalc II

Select the required units and save the User file.Unit Selection

A new calculation loads the default units, which can be any of the five available options. It is set up by selecting the required units under the Engineering Units menu, then going back into the same menu and saving it as the default. Two defaults are available, one for liquids, set in the liquid calculation and one for gas, set in the gas calculation.

If process data is downloaded to a calculation which is displaying the wrong units, any of them can be overwritten with any of the five standard unit options without converting any of the data. To do this, under the Engineering Units menu, select the option Change units, no conversion , this will then allow one selection from the menu without conversion and then revert to normal operation.

The Unit Selection can be made at any time. The input data will be converted to the new units. If a volumetric flow unit set is selected and the specific gravity at base conditions is not available the flow is set to zero. Units for any individual input entry can be changed by the selecting the Review Units option and choosing from the Liquid Flow Engineering Unit screen.Base Conditions

The Base Conditions option will display the current values of base pressure, base temperature and barometric pressure. They should be checked and modified and saved to suit the operating conditions. AGA specifies a base pressure of 14.73 psia for natural gas, 14.696 for liquids with a vapor pressure equal or less than one atmosphere, and a base temperature of 60 degF. The ISO standard is 14.696 psia and 59 degFFluid Properties

The Fluid properties option is enabled when the pressure and temperature are entered. The properties required for a calculation are available for pure liquids and mixtures and are provided in the selected units. Caution should be used for mixtures of dissimilar fluids because the mixture law may not apply.

For a pure liquid find the name and select (or double-click) the name, the fluid properties will be entered.

For a mixture select the first component. In the component box, enter the percentage. Continue until the remaining percentage equals zero, then select calculate in the component box and the program will calculate and enter the mixture values. The fluid properties data base can be user upgraded.Calculation Options· Recall File Data Recalls data from the data base.

· Density Calculates with user input data.· Vapor pressure Calculates with user input data.· Vapor temperature Calculates with user input data.Input Data

The Calculating Options selected enable the input boxes of the data required for the calculation and disable the input boxes for the calculated outputs and the data not required. Three cases are available, use as many as required.

Recall File Data OptionEnter the pressure and temperature conditions for the output data.

Page 8: Instrucalc II

From the Input Data Option select the Case Properties.Select either Pure Liquid or Liquid Mixture

For Pure Liquid select the liquidFor Liquid Mixtures select the components until remaining % is zero.Select Calculate

The available data is displayed.Density

Enter Specific gravity.Select Case button to calculate.Display the Density.

Vapor PressureEnter the temperature, critical pressure, critical temperature and normal

boiling point.Select the Case button to calculateDisplay the vapor pressure.

Vapor TemperatureEnter the vapor pressure, critical pressure, critical temperature and normal

boiling point.Select the Case button to calculate.

Display the vapor temperatureCalculation Results

The output data should be examined for adequacy.Be sure that the mixture law applies to your mixture.

Change data as required and recalculate.Filing and Moving OnThe options in the File menu are --

Program menu -- Clears the calculation and returns to the main menu.New - Clears the screen for a new calculation.Save - Using the default path, it saves a new record if not previously saved or saves

changes to an existing record.Save New.-.Using the default path, it saves an existing record as a new record

( Used to duplicate similar items. i.e. Recall an existing record. Edit as required and Save New)

Save As.... - Uses the Windows file access system. Saves to a file anywhere.Import data - Select the units and read Input data supplied in sequential files.File default path - Changes the default paths for the calculation records

The default paths areThe Data Files. (AUXDAT.TAG and AUXDAT.DAT).The User Unit Files. (AUXDAT.UNS)The Printout Headings File (HEADINGS.DAT)

Print calculation - Is enabled after a calculation is made. It displays the screen to print a calculation.

Exit -- Leaves the program and returns to the Windows Program Manager

AUXILIARY PROGRAM Liquid Engineering Units

Page 9: Instrucalc II

The screen shows the process variables used in a liquid calculation and list the available options. To assure full coverage each (Except Flow Time Base) has an Other option. This is a user defined unit. Double click the option and it will display the name and multiplier to convert it to the standard units. The standard unit is always the first item in the list.

The screen shows the current selection. Any unit may be chosen and will be used in the calculation if OK is selected.

To create a User File for the User File Unit option in the calculation, select the desired units and click the save button

A double click on any unit option selects that option and returns to the calculation.Data conversion

For all items except flow, the unit change represents only a multiplier to convert the input data and the data is always converted. The Flow Quantity option has Mass and Volume options. The relationship between mass flow and volume flow is a multiplier and the specific gravity of the fluid. If the flow units are changed from mass to volume, or volume to mass and the specific gravity is not available the flow rate is set to zero.

Conversion factors and units are based on API 2564Definition of unitsMass flow units :

lb = poundskg = kilogramstonne = 1000 kg = 1Mgg = gramUKton = 2240 lb

USton = 2000 lbOther = user defined mass unit

Volume flow units :USgal = US gallonslitre = litresft3 = cubic feetUKgal = UK gallonsm3 = cubic metresbbl = barrels (42 US gallons)cm3 = cubic centimetresOther = user defined volumetric unit

Flow time base :/s = per second/m = per minute/h = per hour/d = per day

Gauge pressure :psig = pounds per square inch gaugekPag = kiloPascals gaugeatg = atmospheres gaugeinhgg = inches of mercury gaugeMPag = megaPascals gauge

Page 10: Instrucalc II

inH2Og = inches of water gauge

mmhgg = millimetres of mercury gaugebarg = bars gauge kg/cm2g = kilograms per square centimetre gaugeOther = user defined gauge pressure unit

Pressure drop :psi = pounds per square inchkPa = kiloPascalsat = atmospheresinhg = inches of mercuryMPa = megaPascalsinH2O = inches of watermmhg = millimetres of mercurybar = barskg/cm2 = kilograms per square centimetreOther = user defined pressure drop unit

Absolute pressure :psia = pounds per square inch absolutekPaa = kiloPascals absolute

ata = atmospheres absoluteinhga = inches of mercury absoluteMPaa = megaPascals absoluteinH2Oa = inches of water absolutemmhga = millimetres of mercury absolutebara = bars absolute kg/cm2a = kilograms per square centimetre absoluteOther = user defined absolute pressure unit

Temperature :degF = degrees FahrenheitdegF = degrees CentigradedegR = degrees RankinedegK = degrees KelvinOther = user defined temperature unit

Velocityft/s = feet per secondm/s = metres per secondOther = user defined velocity

Viscosity :cp = centipoisesPa.s = Pascal seconds

cs = centistokeskPa.s = kiloPascal secondsOther = user defined viscosity unit

Pipe size :

Page 11: Instrucalc II

in = inchesmm = millimetrescm = centimetresft = feetm = metresOther = user defined size

Valve size :in = inchesmm = millimetrescm = centimetresft = feetm = metresOther = user defined size

Length and elevation :ft = feetm = metresOther = user defined length

Bulk Modulus & Modulus of elasticity)psi = pounds per square inchkPa = kiloPascalsOther = user defined unit

AUXILIARY PROGRAM Liquid Water Hammer.Calculation

This program is for determining the closing time of valves to prevent water hammerEngineering Units

There are four standard unit sets and one user selected set available -Mass Flow - English units. Pounds per hour and degrees FahrenheitVolume Flow - English Units. US gallons per minute and degrees FahrenheitMass Flow - SI Units. Kilograms per second and degrees CentigradeVolume Flow - SI Units. Litres per second and degrees CentigradeUser Units. A set of units selected from the Liquid Flow Engineering Unit screen

To make or change a User Unit set select the option Review units.The Liquid Flow Engineering Unit screen will be displayed. It shows the available

options and the current unit selection.Select the required units and save the User file.

Unit SelectionA new calculation defaults to Mass English units.The Unit Selection can be made at any time. The input data will be converted to the

new units. If a volumetric flow unit set is selected and the specific gravity is not available the flow is set to zero. Units for any individual input entry can be changed by the selecting the Review Units option and choosing from the Liquid Flow Engineering Unit screen.Fluid Properties

The Fluid properties option is enabled when the pressure and temperature are entered. The properties required for a calculation are available for pure liquids and

Page 12: Instrucalc II

mixtures and are provided in the selected units. Caution should be used for mixtures of dissimilar fluids because the mixture law may not apply.

For a pure liquid find the name and select (or double-click) the name, the fluid properties will be entered.

For a mixture select the first component. In the component box, enter the percentage. Continue until the remaining percentage equals zero, then select calculate in the component box and the program will calculate and enter the mixture values. The fluid properties data base is user upgradable.

Input DataThe enabled input boxes define the data required for the calculation.

Enter the data and select the pipe elastic modulus and inside diameter.Calculate

Click the Calculate button. The program will validate the input data,Calculate the Critical closing time conditions, the closing time for the allowable

pressure and enable the selected time input box.Enter the Selected closing time.Calculate to display the selected time conditions.

Editing DataThe output data should be examined for adequacy.Is the closing time conservative enough?Change data as required and recalculate

Filing and Moving OnThe options in the File menu are --

Program menu -- Clears the calculation and returns to the main menu.New - Clears the screen for a new calculation.Save - Using the default path, it saves a new record if not previously saved or saves

changes to an existing record.Save New.-.Using the default path, it saves an existing record as a new record

( Used to duplicate similar items. i.e. Recall an existing record. Edit as required and Save New)

Save As.... - Uses the Windows file access system. Saves to a file anywhere.Import data - Select the units and read Input data supplied in sequential files.File default path - Changes the default paths for the calculation records

The default paths areThe Data Files. (AUXDAT.TAG and AUXDAT.DAT).The User Unit Files. (AUXDAT.UNS)The Printout Headings File (HEADINGS.DAT)

Print calculation - Is enabled after a calculation is made. It displays the screen to print a calculation.

Exit -- Leaves the program and returns to the Windows Program Manager

AUXILIARY PROGRAM Calculation Data PrintoutThis program will print the input and output calculation data and one associated

comment. The comment is included in the data sheet for reference purposes

Page 13: Instrucalc II

It also creates the default printout headings. The headings are printed at the top of all printouts. They are saved in the HEADINGS.DAT file. This is the third default path. If all programs are set to the same path, this becomes the default headings for all program printouts

Save. Saves the headings

Cancel. Returns to the calculation form without printing

OK. Prints the headings and calculation using the Windows Print Manager, then returns to the calculation form

AUXILIARY PROGRAM Gas Pipe Pressure Loss Calculation

Engineering UnitsThere are four standard unit sets and one user selected set available -

Mass Flow - English units. Pounds per hour and degrees FahrenheitVolume Flow - English Units. Standard cubic feet per minute and degrees FahrenheitMass Flow - SI Units. Kilograms per second and degrees CentigradeVolume Flow - SI Units. Standard cubic decimeters per second and degrees CentigradeUser Units. A set of units selected from the Gas Flow Engineering Unit screen

To make or change a User Unit set select the option Review units.The Gas Flow Engineering Unit screen will be displayed. It shows the available

options and the current unit selection.Select the required units and save the User file.

Unit SelectionA new calculation loads the default units, which can be any of the five available

options. It is set up by selecting the required units under the Engineering Units menu, then going back into the same menu and saving it as the default. Two defaults are available, one for liquids, set in the liquid calculation and one for gas, set in the gas calculation.

If process data is downloaded to a calculation which is displaying the wrong units, any of them can be overwritten with any of the five standard unit options without converting any of the data. To do this, under the Engineering Units menu, select the option Change units, no conversion , this will then allow one selection from the menu without conversion and then revert to normal operation.

The Unit Selection can be made at any time. The input data will be converted to the new units. If a volumetric flow unit set is selected and the Molecular weight is not available the flow is set to zero. Units for any individual input entry can be changed by the selecting the Review Units option and choosing from the Gas Flow Engineering Unit screen.Base Conditions

The Base Conditions option will display the current values of base pressure, base temperature and the barometric pressure. They should be checked and modified and saved to suit the operating conditions. AGA specifies a base pressure of 14.73 psia for natural gas, 14.696 for liquids with a vapor pressure equal or less than one atmosphere, and a base temperature of 60 degF. The ISO standard is 14.696 psia and 59 degF.

Page 14: Instrucalc II

Fluid Properties

The Fluid properties option is enabled when the pressure and temperature are entered. The properties required for a calculation are available for pure gases and mixtures and are provided in the selected units. Caution should be used for mixtures of dissimilar fluids because the mixture law may not apply.

For a pure gas find the name and select (or double-click) the name, the fluid properties will be entered.

For a mixture select the first component. In the component box, enter the percentage. Continue until the remaining percentage equals zero, then select calculate in the component box and the program will calculate and enter the mixture values. The fluid properties data base can be user maintainedCalculation options.

Select the Pipe Material.Select the Pipe Condition.Check the Entrance if it is a large contractionCheck the Exit if it is a large expansion

Input DataThree cases are available, use only what is needed.

The enabled input boxes define the data required for the calculation.Enter the piping configuration and the pipe lengths and elevation change.Enter the process data

CalculateClick the Case button. The program will validate the input data,Calculate the output dataDisplay the results

Editing DataThe output data should be examined for adequacy.A reasonable velocity for orifice plates is 20 to 150 feet per secondOr 20 to 250 feet per second for other devices.Change data as required and recalculate

Filing and Moving OnThe options in the File menu are --

Program menu -- Clears the calculation and returns to the main menu.New - Clears the screen for a new calculation.Save - Using the default path,. it saves a new record if not previously saved or saves

changes to an existing record.Save New.-.Using the default path, it saves an existing record as a new record

( Used to duplicate similar items. i.e. Recall an existing record. Edit as required and Save New)

Save As.... - Uses the Windows file access system. Saves to a file anywhere.

Import data - Select the units and read Input data supplied in sequential files.File default path - Changes the default paths for the calculation records

The default paths are

Page 15: Instrucalc II

The Data Files. (AUXDAT.TAG and AUXDAT.DAT).The User Unit Files. (AUXDAT.UNS)The Printout Headings File (HEADINGS.DAT)

Print calculation - Is enabled after a calculation is made. It displays the screen to print a calculation.

Exit -- Leaves the program and returns to the Windows Program Manager

AUXILIARY PROGRAM Gas Data Calculation

This program provides various process data which is required for many instrument calculations. It is integral with INSTRUCALC and is provided here for other calculationsEngineering Units

There are four standard unit sets and one user selected set available -Mass Flow - English units. Pounds per hour and degrees FahrenheitVolume Flow - English Units. Standard cubic feet per minute and degrees FahrenheitMass Flow - SI Units. Kilograms per second and degrees CentigradeVolume Flow - SI Units. Standard cubic decimeters per second and degrees CentigradeUser Units. A set of units selected from the Gas Flow Engineering Unit screen

To make or change a User Unit set select the option Review units.The Gas Flow Engineering Unit screen will be displayed. It shows the available

options and the current unit selection.Select the required units and save the User file.

Unit SelectionA new calculation loads the default units, which can be any of the five available

options. It is set up by selecting the required units under the Engineering Units menu, then going back into the same menu and saving it as the default. Two defaults are available, one for liquids, set in the liquid calculation and one for gas, set in the gas calculation.

If process data is downloaded to a calculation which is displaying the wrong units, any of them can be overwritten with any of the five standard unit options without converting any of the data. To do this, under the Engineering Units menu, select the option Change units, no conversion , this will then allow one selection from the menu without conversion and then revert to normal operation.

The Unit Selection can be made at any time. The input data will be converted to the new units. If a volumetric flow unit set is selected and the molecular weight is not available the flow is set to zero. Units for any individual input entry can be changed by the selecting the Review Units option and choosing from the Gas Flow Engineering Unit screen.Base Conditions

The Base Conditions option will display the current values of base pressure, base temperature and barometric pressure. They should be checked and modified and saved to suit the operating conditions. AGA specifies a base pressure of 14.73 psia for natural gas, 14.696 for liquids with a vapor pressure equal or less than one atmosphere, and a base temperature of 60 degF. The ISO standard is 14.696 psia and 59 degFFluid Properties

The Fluid properties option is enabled when the pressure and temperature are entered. The properties required for a calculation are available for pure gases and mixtures

Page 16: Instrucalc II

and are provided in the selected units. Caution should be used for mixtures of dissimilar fluids because the mixture law may not apply.

For a pure gas find the name and select (or double-click) the name, the fluid properties will be entered.

For a mixture select the first component. In the component box, enter the percentage. Continue until the remaining percentage equals zero, then select calculate in the component box and the program will calculate and enter the mixture values. The fluid properties data base can be user upgraded.Calculation Options· Recall File Data Recalls data from the data base.

· Density Calculates with user input data.· Compressibility Factor Calculates with user input data· Vapor Pressure Calculates with user input data.· Vapor Temperature Calculates with user input data.· Latent Heat of Vaporization Calculates with user input dataInput Data

The Calculating Options selected enable the input boxes of the data required for the calculation and disable the input boxes for the calculated outputs and the data not required. Three cases are available, use as many as required.

Recall File Data OptionEnter the pressure and temperature conditions for the output data.From the Input Data Option select the Case Properties.Select either Pure Gas or Gas Mixture

For Pure Gas select the liquidFor Gas Mixtures select the components until remaining % is zero.Select Calculate

The available data is displayed.Density

Enter temperature, pressure, molecular weight, critical pressure, critical

temperature,.Select Case button to calculate.Display the Density.@ TP

. Compressibility FactorEnter temperature, pressure, critical pressure, critical temperature.Select Case button to calculate.Display the Compressibility @ TP.

Vapor PressureEnter the temperature, critical pressure, critical temperature and normal

boiling point.Select the Case button to calculateDisplay the vapor pressure.

Vapor TemperatureEnter the vapor pressure, critical pressure, critical temperature and normal

boiling point.

Page 17: Instrucalc II

Select the Case button to calculate.Display the vapor temperature.

Latent Heat of VaporationEnter the required latent heat temperature, critical temperature, known value

of latent heat of vaporization, temperature at known latent heat of vaporization

Select the Case button to calculate.Display the latent heat of vaporization at the required temperature.

Calculation Results The output data should be examined for adequacy.Be sure that the mixture law applies to your mixture.

Change data as required and recalculate.Filing and Moving OnThe options in the File menu are --

Program menu -- Clears the calculation and returns to the main menu.New - Clears the screen for a new calculation.Save - Using the default path, it saves a new record if not previously saved or saves

changes to an existing record.Save New.-.Using the default path, it saves an existing record as a new record

( Used to duplicate similar items. i.e. Recall an existing record. Edit as required and Save New)

Save As.... - Uses the Windows file access system. Saves to a file anywhere.Import data - Select the units and read Input data supplied in sequential files.File default path - Changes the default paths for the calculation records

The default paths areThe Data Files. (AUXDAT.TAG and AUXDAT.DAT).The User Unit Files. (AUXDAT.UNS)The Printout Headings File (HEADINGS.DAT)

Print calculation - Is enabled after a calculation is made. It displays the screen to print a calculation.

Exit -- Leaves the program and returns to the Windows Program Manager

AUXILIARY PROGRAM SummaryThe program will provide a printout summary of data sheet records on file.It can provide a printout of either --

All fieldsSelected fieldsFields equal toFields not equal to Fields equal to or less thanFields equal to or greater thanFields less thanFields more than

Procedure for a new SummarySelect Options

Clear checks Clears all check on the form

Page 18: Instrucalc II

Clear Other Data Clears all other data on the formMake new field selections

Each field has four boxes--A check box to select the fieldA box to specify the field widthA box to enter data to compareA box to specify the compare method (Double click for data)

Select data relationshipAnd or or

Click Print to print using Windows Print Manager

File OptionsSave print options

Saves a standard printoutGo to Program Menu Form

Returns to program menu for further work on this moduleExit

Returns to the Windows Program ManagerProcedure for a standard printoutSelect Options

Recall saved optionsPrint

Procedure to print all fieldsSelect Options

Check allPrint

Other OptionsSelect font

Windows font selection procedureSelect Printer

Windows Print manager

AUXILIARY PROGRAM Gas Engineering UnitsThe screen shows the process variables used in a liquid calculation and list the

available options. To assure full coverage each (Except Flow Time Base) has an Other option. This is a user defined unit. Double click the option and it will display the name and multiplier to convert it to the standard units. The standard unit is always the first item in the list.

The screen shows the current selection. Any unit may be chosen and will be used in the calculation if OK is selected.

To create a User File for the User File Unit option in the calculation, select the desired units and click the save button

A double click on any unit option selects that option and returns to the calculation.Data Conversion

For all items except flow, the unit change represents only a multiplier to convert the input data and the data is always converted. The Flow Quantity option has Mass and Volume options. The relationship between mass flow and volume flow is a multiplier and

Page 19: Instrucalc II

the molecular weight of the gas, conversion can only be made when the molecular weight has been entered.

Conversion factors and units are based on API 2564Definition of unitsMass flow units :

lb = poundskg = kilogramstonne = 1000 kg = 1Mgg = gramUKton = 2240 lbUSton = 2000 lbOther = user defined mass unit

Volume flow units :sft3 = standard cubic feetsdm3 = standard cubic decimetressm3 = standard cubic metresMsft3 = million standard cubic feetOther = user defined volume unit

Flow time base :/s = per second/m = per minute/h = per hour/d = per day

Gauge pressure :psig = pounds per square inch gaugekPag = kiloPascals gaugeatg = atmospheres gaugeinhgg = inches of mercury gaugeMPag = megaPascals gaugeinH2Og = inches of water gaugemmhgg = millimetres of mercury gaugebarg = bars gauge kg/cm2g = kilograms per square centimetre gauge

Other = user defined gauge pressure unitPressure drop :

psi = pounds per square inchkPa = kiloPascalsat = atmospheresinhg = inches of mercuryMPa = megaPascalsinH2O = inches of watermmhg = millimetres of mercurybar = barskg/cm2 = kilograms per square centimetreOther = user defined pressure drop unit

Page 20: Instrucalc II

Absolute pressure :psia = pounds per square inch absolutekPaa = kiloPascals absoluteata = atmospheres absoluteinhga = inches of mercury absoluteMPaa = megaPascals absoluteinH2Oa = inches of water absolute

mmhga = millimetres of mercury absolutebara = bars absolute kg/cm2a = kilograms per square centimetre absoluteOther = user defined absolute pressure unit

Temperature :degF = degrees FahrenheitdegF = degrees CentigradedegR = degrees RankinedegK = degrees KelvinOther = user defined temperature unit

Velocityft/s = feet per secondm/s = metres per secondOther = user defined velocity

Viscosity :cp = centipoisesPa.s = Pascal secondscs = centistokeskPa.s = kiloPascal secondsOther = user defined viscosity unit

Pipe size :in = inchesmm = millimetres

cm = centimetresft = feetm = metresOther = user defined size

Length and elevation :ft = feetm = metresOther = user defined length

Densitylb/ft3 = pounds per cubic footkg/m3 = kilograms per cubic metreg/cm3 = grams per cubic centimetrelb/in3 = pounds per cubic inchOther = user defined density unit

Latent Heat :

Page 21: Instrucalc II

btu/lb = British thermal units per poundkJ/lb = kiloJoules per poundOther = user defined latent heat

Page 22: Instrucalc II

Auxiliary Programs Data FilesINSTRUCALC V4 Random access file specification for Auxiliary programs AUXDAT.Dat.

Page 23: Instrucalc II

Tag Numbers are stored in the sequential file AUXDAT.TAG. Its number in the file is the record number in the random access file._________________________________________________Type FileDataProgNums As Integer 2 bytesPipeConds As Integer 2 bytesPipeMatls As Integer 2 bytesGasBasiss As String * 3 3 bytesLiqBasiss As String * 3 3 bytes.FS(0 To 27) As Single 112 bytes.Units conversion factorGS0(0 To 27) As Single 112 bytes.GS1(0 To 27) As Single 112 bytes.GS2(0 To 27) As Single 112 bytes.UnS(0 To 27) As String * 8 224 bytes.Unit NamePDSs(1 To 6) As Single 24 bytes.PDIs(1 To 14) As Integer 28 bytes.Services(1 To 5) As String * 25 125 bytes.Data sheet service,Date, By,Fluid,,PipeMatl

Notess As String * 60 60 bytes.Data sheet notesEnd Type Record len=921__________________________________________GasBasiss "Mas" for a gas mass calculation, "Vol" a volumeLiqBasiss "Mas" for a liquid mass calc, "Vol" a volume ______________________________________If ProgNum = 1 Then Program = "Line Loss - Liquid flow"If ProgNum = 2 Then Program = "Line Loss - Gas Flow"Common dataPipeCond Percentage increase in friction factor, 0,20 or 50 PipeMatl = 1 Commercial steelPipeMatl = 2 Drawn tubingPipeMatl = 3 Cast IronPipeMatl = 4 Galvanised IronPipeMatl = 5 Ashphalt linedPipeMatl = 6 ConcretePipeMatl = 7 Wood stavePDS(1) = Pipe length FS(25) UnS(25)PDS(2) = Pipe inside diameter FS(18) UnS(18)PDS(3) = Pipe elevation FS(25) UnS(25)PDS(4) = Entrance type

PDS(5) = Exit typePDI(1) = Number of gate valvesPDI(2) = Number of globe valvesPDI(3) = Number of check valvesPDI(4) = Number of 90deg elbowsPDI(5) = Number of 45deg elbowsPDI(6) = Number of thru tees

Page 24: Instrucalc II

PDI(7) = Number of branch tees__________________________________________________Liquid dataGSx(1) = Flow rate FS(1) UnS(1)GSx(2) = Temperature UnS(2)GSx(3) = Pressure FS(3) UnS(3)GSx(4) = Equipment pressure loss FS(4) UnS(4)GSx(6) = Specific gravity at flow conditionsGSx(7) = Viscosity at flow conditions FS(7) UnS(7)__________________________________________________Gas dataGSx(0) = Flow rate FS(0) UnS(0)GSx(2) = Temperature UnS(2)GSx(3) = Pressure FS(3) UnS(3)GSx(4) = Equipment pressure loss FS(4) UnS(4)GSx(5) = Molecular weightGSx(7) = Viscosity FS(7) UnS(7)GSx(10) = Ratio of specific heatsGSx(11) = Critical pressure FS(11) UnS(11)

GSx(12) = Critical temperature FS(12) UnS(12)________________________________________-If ProgNum = 3 Then Program = "Water Hammer - Liquid flow"GS0(1) = Flow rate FS(1) UnS(1)GS0(2) = Temperature UnS(2)GS0(3) = Operating pressure FS(3) UnS(3)GS1(3) = Allowable pressure FS(3) UnS(3)GS0(6) = Specific gravityGS0(27) = Bulk modulus FS(27) UnS(27)GS1(27) = Line Elastic modulus FS(27) UnS(27)GS0(25) = Line length FS(25) UnS(25)GS0(18) = Pipe inside diameter FS(18) UnS(18)GS2(18) = Pipe wall thickness FS(18) UnS(18)GSO(10) = Selected time secs_____________________________________________If ProgNum = 4 Then Program = "Process Liquid Data"GSx(0) = Molecular weightGSx(1) = Liquid flash point UnS(2)GSx(2) = Temperature UnS(2)GSx(3) = Pressure FS(3) UnS(3)

GSx(4) = Normal boiling point UnS(2)GSx(5) = Specific gravity at base conditionsGSx(6) = Specific gravity at flow conditionsGSx(7) = Viscosity FS(7) UnS(7)GSx(8) = Vapor pressure FS(8) UnS(8) GSx(9) = Density FS(9) UnS(9)

Page 25: Instrucalc II

GSx(11) = Critical pressure FS(11) UnS(11)GSx(12) = Critical temperature UnS(12) GSx(27) = Bulk modulus FS(27) UnS(27) ____________________________________________If ProgNum = 5 Then Program = "Process Gas Data GSx(0) = Compressibility factorGSx(2) = Temperature UnS(2)GSx(3) = Pressure FS(3) UnS(3)GSx(4) = Normal boiling point UnS(2)GSx(5) = Molecular weightGSx(7) = Viscosity FS(7) UnS(7)GSx(8) = Vapor pressure FS(8) UnS(8)GSx(9) = Density FS(9) UnS(9)GSx(10) = Ratio of specific heatsGSx(11) = Critical pressure FS(11) UnS(11)GSx(12) = Critical temperature UnS(12)GSx(13) = Required latent heat of vaporization FS(16) UnS(16)GSx(16) = Known latent heat of vaporization FS(16) UnS(16)

GSx(15) = Known latent heat temperature UnS(2)_____________________________________________________Miscellaneous filesAUXDAT.UNS Sequential file. User unit dataAUXDAT.STP Sequential file. Base conditionsHEADINGS.DAT Sequential file. Printout titlesAUXCALC.DRV Sequential file. Default drives and pathsAUXCALC.COL Sequential file. Color selections

AUXILIARY PROGRAMS Import Process DataTo Import process data into a calculation -Make a sequential file for each calculation. Files to have a filename(Suggest the tag number) with no extension (ie AUX-100.). After INSTRUCALC reads the file it will rename the file to "FILENAME.OK". This will divide the files into two lists, those which have been processed and those which have not. To read a file. 1. Go to the required calculation and select the required units.2. Take the Import data menu option.3. Find the required file. (Using standard Windows procedures)4. Select the file and the data will be loaded.5. Proceed with the calculation and save the data. (Now in the INSTRUCALC file)6. The sequential file will be assigned the extension ".OK". and will disappear from the list.7. If a review is required, use the Windows file procedures for files with an extension ".OK"

8. Revised process data should be provided without extensions. The Instrument engineer will then have an instant review of work not yet performed.

Page 26: Instrucalc II

Data input sequential file requirements -(In input order)________________________________________ Water Hammer calculation Variable name 1 Tag number (Seq file) 2 Fluid name Service(3) 3 Maximum flow G(0,1) 4 Maximum allowable pressure G(1,3) 5 Temperature G(0,2) 6 Operating pressure G(0,3) 7 SG @ flow conditions G(0,6) 8 Liquid bulk modulus G(0,27) 9 Pipe elastic modulus G(1,27)10 Line length G(0,25)11 Pipe inside diameter G(0,18)12 Pipe wall thickness G(2.18)

13 Pipe material Service(5)___________________________________________Pressure loss calculation Liquid Flow Variable name 1 Tag number (Seq file) 2 Fluid name Service(3) 3 Maximum flow G(Case,1) 4 Temperature G(Case,2) 5 Pressure G(Case,3) 6 SG @ flow conditions G(Case,6) 7 Viscosity G(Case,7) 8 Pipe size PDS(2) __________________________________________________Pressure loss calculation Gas Flow Variable name 1 Tag number (Seq file) 2 Gas name Service(3) 3 Gas Flow G(Case, 0) 4 Temperature G(Case, 2) 5 Pressure G(Case, 3) 6 Barometric pressure G(0,23) 7 Gas MW G(Case, 5)

8 Cp/Cv G(Case, 10) 9 Viscosity G(Case,7) 10 Critical pressure G(Case, 11)11 Critical temperature G(Case, 12)12 Pipe inside diameter PDS(2)

Auxiliary Program Pipe Dimensions

Page 27: Instrucalc II

The pipe sizes are available in a program look-up table. To find the size, select the Pipe ID button to display the pipe size screen, enter the nominal size of the pipe and select the search button. The available wall thickness and the corresponding inside diameters for the nominal size are displayed. Select the required size and the data will be downloaded to the calculation.

Metric dimensions are in millimeters and nominal sizes are base on 25 mm per nominal inch. If units other than inches or millimeters are used, the data transferred back to the calculation will be converted to the calculation units.