DATACON Users Guide
DATACON Users Guide
1
User’s Guide
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 The software described in this guide is furnished under a license agree-
User’s Guide ment and may be used only in accordance with the terms of that agree-
ment. Information in this document is subject to change without notice.
Simulation Sciences Inc. assumes no liability for any damage to any hard-
ware or software component or any loss of data that may occur as a result
of the use of the information contained in this manual.
Copyright Notice Copyright © 1999 Simulation Sciences Inc. All rights reserved. No part of
this publication may be copied and/or distributed without the express writ-
ten permission of Simulation Sciences Inc., 601 Valencia Ave., Brea, CA
92823-6346.
Trademarks DATACON is a trademark of Simulation Sciences Inc.
SIMSCI is a registered mark of Simulation Sciences Inc.
@aGlance/IT is a trademark of Intuitive Technology Corporation.
PI is a registered trademark of OSI Software, Inc.
Windows, Windows 95, Windows 98, Windows NT, and MS-DOS are reg-
istered trademarks and/or trademarks of Microsoft Corporation.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Contents
Introduction
About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii
About DATACON 3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
About SIMSCI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
Where to Find Additional Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Online Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Authorized SIMSCI Technical Support Centers. . . . . . . . . . . . . . . . . . . . .xviii
Chapter 3 Tutorial
Problem Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Selecting the Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Defining the Thermodynamic Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Building the Flowsheet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Adding Process Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
iv Contents
Adding Process Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-6
Importing the Raw Tag Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-7
Specifying the Process Stream Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-8
Stream Conditions and Tag Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-8
Specifying the Calculation Options and Standard Deviations . . . . . . . . . .3-11
Setting the Print Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-12
Running the Reconciliation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13
Analyzing the Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13
Output File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13
Displaying Stream Properties on the PFD . . . . . . . . . . . . . . . . . . . .3-13
Exporting the PFD to the Windows Clipboard . . . . . . . . . . . . . . . . .3-14
Chapter 9 Interfaces
Supported Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-1
PI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-1
Open Database Connectivity (ODBC) . . . . . . . . . . . . . . . . . . . . . . . .9-2
@aGlance/IT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-2
Server Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-2
Connecting to the Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-2
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-5
External Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-7
Creating External Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-7
Refreshing External Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-8
Modifying External Tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-9
Exporting External Tag Values to the Server . . . . . . . . . . . . . . . . . . .9-9
Glossary
Index
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
x Contents
Introduction
Chapter 1 Using DATACON Introduces the basic features of the PFD and
describes how to manage DATACON files.
Chapter 2 Reconciliation Outlines the steps for building and running a
Basics reconciliation.
Chapter 3 Tutorial Provides a step-by-step guide through a
reconciliation example problem.
Chapter 4 Global Defaults Describes how to change reconciliation
defaults.
Chapter 5 Building a Describes how to place unit operations and
Flowsheet connecting streams onto the PFD.
Chapter 6 Manipulating Describes how to move, resize, delete, rotate,
Objects and flip objects.
Chapter 7 Component, Describes how to select and specify compo-
Thermodynamic nent, assay and thermodynamic data.
and Stream Data
Chapter 8 Unit Operations Outlines the procedure for entering process
unit data.
Chapter 9 Interfaces Introduces the DATACON interfaces.
Chapter 10 Running a Describes how to run a reconciliation and view
Reconciliation the calculation history or results.
Chapter 11 Analyzing the Describes how to print your PFD and output
Output reports.
Chapter 12 Customizing Your Describes ways to control the look and feel of
PFD Workplace your PFD.
Appendix A Technical Presents the theoretical basis behind
Reference DATACON.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide xi
About DATACON 3.1
DATACON turns real time process data that are subject to random
errors as well as gross errors into consistent and reliable informa-
tion. Such information is essential for effective plant operation and
management. DATACON uses statistically sound techniques to rec-
oncile flow, temperature, and composition measurements such that
material, enthalpy, and component balances around each unit in a
plant are satisfied.
Uses
DATACON performs plant data reconciliation based on an
advanced, sum of weighted least squares optimization technique,
subject to a set of heat and material balance equality constraints. In
summary, DATACON adjusts the measured data and gives estimates
to unmeasured variables where possible, in such a way that this set
of measured as well as estimated data satisfies heat and material
balance equations. This reconciled data can then be used for process
monitoring, process analysis and evaluation, process optimization
and what if studies. In the process of building a plant model, DATA-
CON can identify erroneous measurements and locate inaccurate
instruments. In terms of plant instrumentation analysis, DATACON
can be a powerful tool for the generation of strategic placement of
instruments to produce cost effective designs. In a study, DATA-
CON can be used to generate a snapshot of the plant to determine
instrumentation adequacy and/or redundancy.
■ Flow measurements
■ Temperature measurements
■ Pressure measurements
■ Stream composition measurements
DATACON handles ten types of unit operations—block diagram,
calculator, column, flash drum, heater, heat exchanger, mixer, reac-
tor, splitter, and tank.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
xii Introduction
DATACON can generate the following balances for any unit
operation:
■ Redundant, or
■ Non-redundant
DATACON calculates:
About SIMSCI
DATACON 3.1 is backed by the full resources of Simulation Sci-
ences Inc. (SIMSCI), a leader in the process simulation business
since 1966. SIMSCI provides the most thorough service capabilities
and advanced process modeling technologies available to the pro-
cess industries. SIMSCI’s comprehensive support around the world,
allied with its training seminars for every user level, is aimed solely
at making your use of DATACON 3.1 the most efficient and effec-
tive that it can be.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
xiv Introduction
Where to Find Additional Help
Online Documentation
DATACON 3.1 online documentation is provided in the form of
.PDF files that are most conveniently viewed using Adobe Acrobat
Reader 3.0 or Acrobat Exchange 3.0. You can install Adobe Acro-
bat Reader 3.0 from the product CD, which requires 5 MB of disk
space beyond that required to for DATACON 3.1. Online manuals
are stored in the Manuals directory and they remain on the CD when
you install the program. To access these files, open the welcome.pdf
file in the Manuals directory.
Online Help
DATACON 3.1 comes with online Help, a comprehensive online ref-
erence tool that accesses information quickly. In Help, commands,
features, and data fields are explained in easy steps. Answers are
available instantly, online, while you work. You can access the elec-
tronic contents for Help by selecting Help/Contents from the menu
bar. Context-sensitive help is accessed using the F1 key or the
What’s This? button by placing the cursor in the area in question.
Technical Support
SIMSCI and its agents around the world provide technical support
and service for DATACON 3.1. If you have any questions regarding
the use of the program or the interpretation of output produced by
the program, contact your local SIMSCI representative for advice or
consultation.
When calling one of the Technical Support Centers, be prepared to
describe your problem or the type of assistance required. Also, to
expedite your call, complete the following steps before calling
Technical Support:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
xvi Introduction
Chapter 1
Using DATACON
This chapter describes how to start and exit DATACON and how to
open, save, close, delete, and copy reconciliation files. This chapter
outlines how to import a DATACON keyword file or export a flow-
sheet. The desktop working environment is also explored.
Starting DATACON
If you have not installed DATACON on your system, see the DATA-
CON Installation Guide.
To start DATACON:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 1-1
➤ Click OK to enter the DATACON program.
■ Stream connections
■ Text
■ Drawings
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
1-2 Using DATACON
Working with On-Screen Color Coding Cues
DATACON provides the standard visual cue for menu items, toolbar
buttons, and entry fields that are currently unavailable or undefined.
You can customize the color coding by selecting Options/Colors…
from the menu bar.
Color Significance
Red Required data; actions or data required from the user.
Green Optional or default data.
Blue Data supplied by user.
Yellow Questionable data; a warning that the value supplied is
outside the normal range.
Gray Data field not available to user.
Black Data entry not required.
■ Viewport/Palette buttons
■ Go To buttons
■ Run buttons
■ View buttons
■ Help button
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 1-3
Toolbar buttons duplicate options available from the menus on the
menu bar.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
1-4 Using DATACON
Button Menu Item Description
File/Import/Server Allows DATACON to interface directly with
plant data historians.
Using Go To Buttons
The Go To buttons enable you to jump to a selected unit or stream.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 1-5
Button Menu Item Description
View/ Zoom/Zoom AreaDisplays the selection rectangle used to zoom in
on a selected area of the PFD.
Button Description
Displays context sensitive help for the active data entry field,
or for the dialog box itself (if there is no active field).
Displays the main help dialog box for the data entry window.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
1-6 Using DATACON
Opening a New Reconciliation File
When you start DATACON, the program does not automatically
bring up a new, untitled reconciliation.
➤ Choose File/Save from the menu bar. If you have not previously
saved this reconciliation, DATACON displays the Save As dia-
log box.
➤ Type a name for this reconciliation.
➤ Choose OK or press <Enter>.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 1-7
Saving a Reconciliation to Another Name
If you’ve made changes to an existing reconciliation file and you
don’t want to alter the original reconciliation, but do want to keep
the changes, use the Save As option. You can save a reconciliation
to another name. Changes you made to the reconciliation since the
last save are saved as part of the reconciliation under its new name.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 1-9
Figure 1-3: Importing Tag Files
➤ Choose File/Export from the menu bar. The Export dialog box
appears which lists the data export options.
Figure 1-4: Available Data Export Options
➤ Click OK .
DATACON converts the current reconciliation flowsheet data into a
DATACON keyword input file in ASCII format. The name of the
keyword file will be YYY.INP, and the name of the tag data file will
be YYY.RAW, where YYY.DC1 is the name of the reconciliation flow-
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
1-10 Using DATACON
sheet DATACON database file. The Simulation Data to Keyword
File option exports both .INP and .RAW files in the same session.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
1-12 Using DATACON
Chapter 2
Data Reconciliation Basics
General Approach
➤ Define the units of measurement.
➤ Select the components.
➤ Select thermodynamic method.
➤ Build the flowsheet.
➤ Supply the operating conditions.
➤ Run the reconciliation.
➤ Analyze the results.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 2-1
Defining the Input Units of Measure
Every model application has a specific units of measure set. The
three general sets of dimension provided within DATACON are:
■ English
■ Metric
■ SI
Your choice of a units of measure set impacts the data entry for
component, assay, and unit operation data.
Thermodynamic Methods
Thermodynamic methods are defined in the Thermodynamic Data
main window which is reached by clicking on the Thermodynamic
button on the toolbar or by selecting Input/Thermodynamic Data
from the menu bar. Note that this icon is initially outlined in red,
indicating that thermodynamic methods must be defined for the
problem.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 2-3
For most problems, a predefined set of thermodynamic methods for
calculating K-values, enthalpies, entropies, and densities may be
used. DATACON offers numerous Categories of method sets. After
a category has been selected, you may select a method set within
that category as a Defined System for the problem and modify it by
clicking Modify… to access the Thermodynamic System-Modifica-
tion dialog box. Note that transport property calculations are not
included in the predefined method sets. If they are required for the
problem, you must add them to the predefined thermodynamic
method set in this dialog box.
Assay Data
You can modify the data obtained from the selected Assay Set. To
select assay data for this reconciliation, click the Assay Character-
ization button on the toolbar, or select Input/Assay Characterization
from the menu bar. DATACON always supplies the Primary TBP
Cutpoint set. You can modify the primary set or define a new cut-
point set or set characterization options.
Reaction Data
You use this option to define reactions and enter heat of reaction,
equilibrium, or kinetic data for reaction data sets. To specify reac-
tion data sets for this reconciliation, click the Reaction Data button
on the toolbar, or select Input/Reaction Data from the menu bar.
Streams
Streams are the connectors for the process calculations, with infor-
mation passed from one unit operation to another via the process
streams. Click the Streams button on the top of the floating PFD
palette. The PFD is now in stream mode and a S is attached to the
cursor. You will notice that all possible (inlet and outlet) ports for
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
2-4
each unit operation are now marked. Required ports are colored in
red; green is used to mark optional ports.
To add a stream, click the left mouse button at the point of origin for
the stream, and then click again at the desired terminus, whether it
be a port or an unoccupied portion of the PFD. A stream identifier is
automatically assigned to each stream as it is added to the PFD.
As soon as a valid flowsheet has been built, the red border around
the Streams button on the PFD palette changes to blue. A flow-
sheet is valid when all required inlet, outlet, and connector streams
have been added for all the process units.
Stream Information
The identifiers for feed streams requiring input data are marked
with red borders indicating that information is missing. Stream
information is supplied in the Stream Data main data entry window
which is reached by double-clicking a stream identifier. The pre-
defined stream identifier may also be changed in this dialog box.
Unit Operations
Unit operation identifiers for which data entries are needed are
marked with red borders. To enter information for a unit operation,
double-click its icon to retrieve the Unit data entry window.
Required information is always bordered in red; data entry fields for
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 2-5
items with supplied defaults are always bordered in green. After
you have supplied information in a data entry field, the border color
changes to blue. Information you have supplied which lies outside
the normal range for the field is marked with a yellow border.
You can also change the default unit identifier in this dialog box and
furnish a longer, more descriptive name for the unit operation.
Notice that when you return to the flowsheet, the unit identifier on
the PFD has a black instead of red border, signifying that all data
entry requirements are satisfied. If the border is still red, you must
return to the data entry window for the unit operation and supply the
missing data.
Double-click the icon for each unit operation to access the data
entry windows. The color codes tell you what data you must supply
and what data have default values. You can also use the online help
to learn more about the calculation options, data entry items, etc.,
for each unit operation.
You can also associate calculated results from the Calculator with
tag values. Tags can be set to the calculated values, then used in the
flowsheet and updated by the Calculator during solution. This pro-
vides a means to incorporate pressure drop calculations, exchanger
efficiencies, compressor/turbine performance into the reconciliation
model.
Generalized Specifications
You can enter generalized specifications for process units or
streams in the flowsheet by clicking Generalized Specifications .
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
2-6
Miscellaneous Data
Miscellaneous data categories include problem descriptive informa-
tion, calculation options, standard deviations/tolerances, instrument
design data, and printout options.
Problem descriptive information is optional; however, it can be ben-
eficial to document a simulation model for future users. This infor-
mation includes a project name, problem name, user name, date,
site, and problem description. This information is supplied in the
Problem Descriptive Information dialog box, which is accessed by
clicking the Problem Description button on the toolbar or by select-
ing Input/Problem Description from the menu bar.
Color Indicators
Default Data
To simplify data input, DATACON supplies default options and val-
ues wherever practical. Default values supplied by DATACON are
printed in black in a data entry field with a green border, or in the
case of linked text, in green. Required entries are indicated with a
color red because they have no default values.
While you do not need to replace a default entry to satisfy the input
requirement for DATACON, default data should be inspected care-
fully to ascertain that they meet your requirements. When you
replace a default value, the border color for the data entry field
changes to blue, indicating that you have supplied this value. For
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 2-7
linked-text strings, the color of the linked text is also changed to
blue, indicating that you have replaced the default value.
Optional Data
Optional data, which are displayed in black, are data or options not
specifically necessary for the unit operations to proceed. For exam-
ple, the Description entry is optional for all unit operations.
Data options which do not apply to a particular combination of
input data appear in the color gray, and are not available for data
entry.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
2-8
Chapter 3
Tutorial
Problem Description
The process flowsheet for this session is shown in Figure 3-1.
Figure 3-1: Mass Balance Problem
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 3-1
Table 3-1: Stream Flowrate Measurements
i Fi σi
S1 100.1 1%
S2 41.1 2%
S3 78.0 1%
S4 30.6 5%
S5 106.3 2%
S6 19.8 2%
S7 — —
S8 — —
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-4 Tutorial:overview
Figure 3-6: Thermodynamic Data Entry Dialog Box
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 3-5
Adding Process Streams
Streams mode is used to lay out the connections between units and
feed and product streams. The product ports for each unit automati-
cally appear when you depress the Streams button. Required
product ports are red, while optional product ports are green. For
some unit operations, an entire side of the unit will be red or green
denoting multiple connections to that port.
➤ Click Streams on the floating PFD palette. You are now able
to add streams to your flowsheet (note the different cursor, an
arrow with an attached).
➤ Use Figure 3-1 as a guide when adding streams to the PFD.
➤ Add streams by clicking at the origin of the stream (either a
unit exit port or, for an external feed stream, on an unoccupied
part of the PFD), then clicking again at the destination of the
stream.
Notice that while each stream is being placed on the PFD, all
valid inlet entry ports only appear, and are colored red.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-6 Tutorial:overview
➤ Click Streams again, right-click, or press the <Esc> key to
exit the Streams mode.
By default, the names of the process units and streams are automat-
ically assigned by the program based on the global format you have
already defined, e.g., S1, for the feed stream, SP1 for the first split-
ter unit, and so on.
At this point it is worth noting the way unsatisfied data are indicated
on the PFD. Units that have unsatisfied internal data (none on this
flowsheet at this point) have red identification strings. Streams have
black identification strings.
By default, DATACON assumes that all streams are non-composi-
tional, that is, no additional data are required; however, you will be
specifying that all streams are compositional, and you must supply
temperature, pressure, and flowrates in all data stream dialog boxes.
It is a good idea to save the data and flowsheet entered so far, and
give the session a name.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 3-7
➤ Click OK .
The temperature and pressure conditions for all streams are 65°F
and 15 psia. The remaining stream conditions are shown in
Table 3-2.
Table 3-2: Stream Conditions and Tag Data
Stream ID Rate (lbm/hr) Rate Tag Rate Standard
Deviation
S1 FC001 0.01
S2 FC002 Default
S3 FC003 0.01
S4 FC004 0.05
S5 FC005 Default
S6 FC006 Default
S7 50 Default
S8 40 Default
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-8 Tutorial:overview
Figure 3-10: Stream Data Dialog Box
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-10 Tutorial:overview
➤ Click OK to return to the main Stream Data dialog box.
➤ Click OK to save the changes and return to the main PFD.
➤ Repeat these steps for the other streams using the data in
Table 3-2.
➤ Click OK to continue.
The default gross error options (The Error Detection method is
Measurement Z-test; the Error Elimination method is Manual) are
acceptable.
➤ Click OK to continue.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-12 Tutorial:overview
Running the Reconciliation
Once you have built the flowsheet and entered all required data, you
can run the reconciliation.
➤ Click the Run button to check the data and run the reconcilia-
tion in a single step.
If there are any errors or warnings, and the Run palette is not
already in view, DATACON displays the palette and outlines the
Status button in red.
Output File
One of the easiest ways to view the complete set of output data is
through the output (.OUT) file. This file is automatically generated
after the reconciliation is finished running. It automatically appears
in a Programmer’s File Editor window.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 3-13
The default property list is the Material Balance List, which dis-
plays the stream name, the temperature, the pressure, and the flow-
rate of the stream.
Note: To change all the stream labels at once, click the Zoom
Area toolbar button and draw a selection rectangle around the
entire flowsheet. With all the units and streams highlighted, select
Display... from the right-click menu and make the appropriate
changes.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
3-14 Tutorial:overview
Chapter 4
Global Defaults
This chapter describes the various defaults that may apply to your
simulation on a global, simulation, or unit level. DATACON enables
you to set global defaults for problem descriptions information,
units of measure and thermodynamic systems. These global
defaults apply to all reconciliations unless you specifically override
them either for a particular reconciliation or unit operation.
On a reconciliation level, you can set problem-specific input and
output units of measure defaults. Problem-level settings override
global defaults. In addition, you can change units of measure set-
tings for a specific unit. This setting overrides both reconciliation
and global defaults.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 4-1
Figure 4-1: Global Default for Problem Descriptive Information
Reconciliation Level
Before building a flowsheet, you might want to update the reconcil-
iation problem description for this reconciliation. DATACON uses
the global defaults for all reconciliations unless you specifically
override the data for a particular reconciliation.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
4-2 Global Defaults
Setting the Units of Measure
Units of measure can be set globally, on a reconciliation level or on
a unit/stream level. A reconciliation setting overrides the global
defaults. A unit setting overrides both reconciliation and global
defaults.
Global Defaults
By default, DATACON uses the English units of measure set for all
input data and for output reports. These defaults apply to all new
reconciliations. You can override the default set for either input data
or output reports (or both) for all new reconciliations. DATACON
maintains a library of units of measure sets that you can select from
and add to.
To set the unit of measure global defaults:
➤ Select the desired default units of measure set for entering rec-
onciliation data (the default is English units).
➤ Select the desired default units of measure set for generating
the first output report. The default choice is Same as Input, i.e.,
the first output report will be printed in the default English
units.
If any choice other than the default is selected, the second out-
put report will no longer be available, and the list for selecting
the alternate units of measure set for the second output report
will be disabled.
➤ Select different dimensional units for data input for each indi-
vidual category or choose Initialize from UOM Library... to
automatically fill in the defaults from another set.
➤ Click Standard Vapor Conditions... to enter the Problem Stan-
dard Vapor Conditions dialog box. The default temperature and
pressure bases are shown in data entry fields and can be
replaced or the standard vapor volume per mole can be
replaced, but not both. DATACON default values are as
follows:
Temperature Pressure Vapor Volume
English 60°F 14.696 psia 379.48 ft3/lbmol
Metric 0°C 1.0332 kg/cm2 22.414 m3/kgmol
SI 273.15 K 101.32 kpa 22.414 m3/kgmol
➤ Supply a name for the new set in the data entry field provided.
➤ Select the basis for the set with the appropriate radio button—
English, Metric, or SI and click OK to continue.
The units for the standard dimensional unit sets in DATACON are
assigned to the new set and the edit feature can now be used to cus-
www.cadfamily.com tomize the set.
EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 4-5
Note: An alternate way to create a new set is to highlight an exist-
ing set in the Units of Measure Set Name and Description list box
and click Copy . The name for the new set is then entered in the
Copy Units of Measure Set dialog box.
To delete, rename or edit a set:
➤ Select the set in the Units of Measure Set Name and Descrip-
tion field.
➤ Click Delete , Rename , or Edit on the Units of Measure
Library dialog box.
Global Defaults
By default, there is no global thermodynamic method, which means
you must select a thermodynamic method each time you open a new
reconciliation; unless, that is, you set a global default method.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
4-6 Global Defaults
Note: This global default will not become effective until the next
time File/New is selected.
Reconciliation Level
To set the thermodynamic method for the current reconcilia-
tion:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 4-7
Figure 4-8: Calculation Options
➤ Select from the Global Stream Rate Basis and Global Composi-
tion Basis listboxes, and click OK .
You cannot change the default Gross Error Options method glo-
bally. The method is reset to the program default with each new
reconciliation.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
4-8 Global Defaults
Figure 4-9: General Drawing Defaults Dialog Box
Miscellaneous
Fill Icons
By default this option is selected which means the unit icons are
filled with the default color. Deselecting this option causes the icons
to be displayed as outlines only.
Unit Snapping
By default, when connecting two units DATACON will adjust or
snap the unit icon positions to straighten the connecting stream. You
can turn grid snapping off by unchecking this option.
➤ Select Options/Colors... from the menu bar. The Set Colors dia-
log box appears.
Figure 4-10: Set Colors
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
4-10 Global Defaults
Chapter 5
Building a Flowsheet
This chapter describes how to select unit icons, streams, and other
objects on the PFD main window and how to move, resize, rotate,
or flip them. In addition, this chapter describes how to edit and align
text.
The PFD palette shows icons for each unit operation that you can
select to place on the flowsheet. The PFD palette appears automati-
cally when you open a new or existing file, or when you import a
keyword file.
Deleting a Unit
To delete a unit already on the flowsheet:
Relabeling a Unit
DATACON automatically labels each unit icon you place on the
PFD main window. You can change the label for a unit by modify-
ing the label on its data entry window. By default, the label consists
of a character and a one-digit auto incrementing number.
Drawing Streams
Streams mode is used to lay out the connections between units and
feed and product streams. The product ports for each unit automati-
cally appear when you depress the Streams button. Required
product ports are red, while optional product ports are green. For
some unit operations, an entire side of the unit will be red or green
denoting multiple connections to that port.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 5-3
Drawing Product Streams
To draw a product stream:
➤ Click the left mouse button on a product port.
➤ Click the left mouse button again where you want the stream to
end.
Figure 5-4: Drawing Product Streams
Drawing a Connection
To connect units:
➤ Click the left mouse button on a port to anchor or start a stream.
The ports and port colors for some unit operations change depend-
ing on the port you selected.
➤ Click the mouse again at the other unit you want to connect.
DATACON draws an orthogonal line to connect the ports.
To cancel a stream connection:
➤ Click the right mouse button or press <Esc>.
Changing a Connection
To change a connection:
➤ Click the end (port) of the stream and hold down the mouse
button.
➤ Drag the end of the stream to a new port.
➤ Release the mouse button.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
5-4 Building a Flowsheet
scroll bars, the Pan View window, Go to Unit, or Go to Stream tool
to display the end port.
Relabeling a Stream
DATACON automatically labels each stream you place on the PFD
main window. By default, the label consists of an S followed by an
auto incrementing number. You can change the label for a stream by
changing the label on its data entry window.
To relabel a stream:
Moving Streams
You can change the route of a stream as desired.
To move a stream:
➤ Click on the end of the stream you want to move. Drag the
stream to the new location.
➤ Release the mouse button to drop the stream in place.
Re-routing Streams
As you add new connections, DATACON automatically performs a
stream route calculation. When you move a stream or a unit opera-
tion icon, this calculation may no longer be valid. You can recalcu-
late an unobstructed, orthogonal path for selected streams.
To re-route a stream:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 5-5
Searching for a Unit or Stream
DATACON builds two lists that identify the units and the streams
you have placed on the flowsheet. DATACON repositions the flow-
sheet to place the selected unit or stream at the center of the main
window. You can also use these lists to enter data directly into the
selected data entry window and review of output results for the
selected stream or unit. These search tools are only available on the
toolbar if the Standard Toolbar is active.
Going to a Unit
The Unit List identifies each unit by name.
Going to a Stream
The Stream List identifies each stream by name.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
5-6 Building a Flowsheet
Drawing Freehand Objects
DATACON provides six objects that you can place on the flow dia-
gram to customize the look and increase understanding of the flow
diagram without interfering with reconciliation data. DATACON
allows you to draw the following objects: text, line, polygon, rectan-
gle, ellipse, and page.
➤ Choose Draw/Text from the menu bar. The Draw Text dialog
box appears.
Figure 5-6: Draw Text Dialog Box
Editing Text
You can change the text, size and or rotation of any text object on
the PFD.
To edit text:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 5-7
Aligning Text
You can align text in two or more text boxes to the left, right or cen-
ter of the box they are drawn in.
To align text:
➤ Select the text you want to align (you must select at least two)
by clicking on the first text box, then click on the other box(es)
while holding down the <Shift> key.
➤ Select Edit/Align Text from the menu bar.
➤ Choose Left, Center or Right from the sub-menu.
Drawing Lines
You use the line option to add connected lines to the diagram with-
out interfering with reconciliation data. DATACON provides an
orthogonal polyline feature.
To draw a line:
Drawing Shapes
You can draw shapes to enclose figures on a diagram without inter-
fering with reconciliation data.
To draw a polygon:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 5-9
To draw a square or circle:
Drawing Pages
You can divide your PFD into pages and define separate page setup
options for each page. Pages can be individually printed or copied
to the clipboard, and pasted into numerous word processing pro-
grams.
To add a page:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 5-11
➤ Choose one of the following layouts:
Single Line—lays units in a single line from left to right.
Multi-line Type 1—left-aligns the feed streams on the PFD.
Multi-line Type 2—right-aligns the feed streams on the PFD.
Multi-line types 1 and 2 are mirror images.
Figure 5-9: Sample PFD
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
5-12 Building a Flowsheet
Chapter 6
Manipulating Objects
This chapter describes how to select unit icons, streams, and other
objects on the PFD main window and how to move, resize, rotate,
or flip them. In addition, this chapter describes how to edit and align
text. This chapter also describes how to use the DATACON scroll,
pan, and multiple viewport features to display portions of your
flowsheet diagram in the PFD.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 6-1
Figure 6-1: Multiple Unit Selection Handles
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
6-2 Manipulating Objects
Deselecting Objects
If you change your mind after selecting objects, you can reverse any
selection.
Resizing an Object
You can change the height, width, or overall size of any object or a
group of objects on your flowsheet.
➤ Click and drag the cursor until the object is the desired size.
➤ Release the mouse button.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 6-3
Figure 6-2: Resize Column
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
6-4 Manipulating Objects
To restore an icon to its original size:
➤ Choose Edit/Restore Icon Size from the menu bar. You can also
click the right mouse button on a selected icon, and then choose
Restore Icon Size.
➤ Select an object(s).
➤ Select Edit/Flip from the menu bar and select Horizontal or
Vertical from the sub-menu. Or, select a unit icon, right-click,
and select Flip from the menu to display the flip options.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 6-5
Scrolling the Flowsheet
You can scroll the PFD left, right, up, or down using the horizontal
and vertical scroll bars. Both bars enable you to scroll in small or
large increments or to scroll to a general location. You can change
the actual value for the scroll increments by altering the Pan Incre-
ment value on the General Drawing Defaults dialog box.
➤ Select Zoom In or Zoom Out from the View menu, or click the
Zoom button on the toolbar, or press <PgUp> or <PgDn>.
➤ Click the Zoom Full button on the toolbar, Select Zoom Full
from the View menu, or press <Home>.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
6-6 Manipulating Objects
Opening Multiple Viewport Windows
You can open multiple viewports of a single reconciliation problem
to display different views of the flowsheet. If the multiple viewports
button is not displayed on your toolbar, check the Standard menu
option from the View/Toolbar menu (i.e., select this option).
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 6-7
Figure 6-4: Selected Area of PFD
➤ Right-click and select the Collapse item from the right mouse
menu.
The selection will be collapsed into a block diagram (called BD1 by
default) as shown in Figure 6-5.
Figure 6-5: Selected Section Collapsed into a Block Diagram
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
6-8 Manipulating Objects
Panning
The Pan View window is a thumbprint of the entire flowsheet. For a
large flowsheet, the Pan View window is used to quickly switch
from one area of the flowsheet to another.
You can change the settings for the pan increment in the General
Drawing Defaults dialog box.
➤ Click the mouse inside the box and drag to a new location. The
area enclosed fills the PFD.
To change the size of the bounding box:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 6-9
Panning - Using the Menu Options
You can pan the image in the PFD up, down, left, or right using the
panning options on the Zoom menu.
➤ Choose Large Pan or Small Pan from the View menu. The pop-
up menu appears.
➤ Choose Left, Right, Up, or Down.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
6-10 Manipulating Objects
Chapter 7
Specifying Component,
Thermodynamic, and Stream Data
Component Data
DATACON provides considerable flexibility in the definition of
component data. No limit is set on the number of components
which may be used for any problem. Furthermore, component data
may originate from a variety of sources such as SIMSCI databanks,
user-prepared databanks, user-defined components, and compo-
nents derived from petroleum assay data for feed streams. More-
over, you may stipulate a preferential search order when multiple
databanks are used.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-1
Selecting Library Components
You may select library components, from both SIMSCI and user-
supplied databanks, through the Component Selection main data
entry window.
To select components:
If you know the library access name for a component, you may
enter it directly into the data entry field. Click Add -> or press
<Enter> to retrieve the component from the component databank
and add it to the List of Selected Components. If the component can-
not be located by the name you have entered, a warning will recom-
mend that you use the Select from Lists... feature to locate the
component in the SIMSCI and PROCESS databanks.
Note: At this point, you have only entered the name of the user-
defined component in the database. You must supply the properties
for the component as described below in Modifying Component
Properties section.
To delete a component:
DATAPREP
The most commonly used features of DATAPREP, particularly
relating to point properties and temperature-dependent correlations
for pure components, are now accessible in the graphical user inter-
face of DATACON. DATACON allows you to input data, view data-
base correlation information, override database information as
desired, and plot parameters over a temperature range.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-8 Specifying Component, Thermodynamic, and Stream Data
To use the Fill from Structure procedure:
Assay Data
For many petroleum-based streams, the composition is not fully
known in terms of defined components. These stocks must be char-
acterized by pseudocomponents for which the necessary physical
and thermodynamic properties have been estimated. DATACON has
extensive procedures for translation of petroleum stream laboratory
assay data into pseudocomponents.
For this reason, you are allowed to define additional cutpoint sets.
For example, an additional cutpoint set may be defined to represent
the products from an FCC reactor. Note that it is not necessary or
desirable to define a separate cutpoint set for each assay stream.
Similar streams may be grouped by using the same cutpoint set
without a serious loss of accuracy. This also minimizes the number
of components in the simulation, keeping calculation times smaller.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-10 Specifying Component, Thermodynamic, and Stream Data
Figure 7-5: Assay Cutpoints and Characterization
The default cutpoint ranges are usually reasonable for crude oil
problems. They may be modified in the Assay Data Primary TBP
Cutpoints Definition dialog box which is accessed by clicking
Modify... on the Assay Cutpoints and Characterization main data
entry window. A convenient tabular form is provided for editing the
primary cutpoint set.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-11
ing Delete... . This action removes the secondary cutpoint set from
the problem.
The Default Cutpoint Set is used for all streams for which a cutpoint
set is not specified. Initially, it is defined as the Primary Cutpoint
Set by DATACON. After one or more secondary cutpoint sets have
been defined, the default cutpoint set may be changed via the drop-
down list box on the Assay Cutpoints and Characterization main
data entry window. It is convenient to define the cutpoint set which
is used the most often as the default cutpoint set.
Several groupings of options are shown in this dialog box, with all
options selectable with radio buttons. The option groups are as
follows:
Molecular Weight: SIMSCI (Twu) method (the default), Old (1967) API
method, or Extended 1980 API method.
D86/TBP Conversion Method: API 1987 (the default), API 1963, API 1994,
or Edmister-Okamoto.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-12 Specifying Component, Thermodynamic, and Stream Data
Distillation Curve Fitting Procedure: Cubic Spline (default), Quadratic
Polynomials, or Probability Density Function (PDF).
Include in PDF: Include initial boiling point in fit, and/or include end
point in fit.
Thermodynamic Data
The selection of appropriate thermodynamic methods is an impor-
tant and necessary step in the solution of flowsheet problems.
DATACON provides a wide range of methods to allow solution of
the wide variety of systems which occur in the chemical process
industries.
Thermodynamic properties are an integral part of the flowsheet cal-
culations. The equilibrium K-values (both VLE and LLE) are used
to determine the phase separations. The enthalpies for the streams
are used to determine the energy required to take a system of com-
ponents from one set of thermal conditions to another. Entropies
are used in the calculation of the isentropic operations and the
Gibbs free energy minimization reactor. Liquid and vapor densities
are used in heat transfer, pressure drop, and column tray sizing.
Transport properties are selected in conjunction with the thermody-
namic methods in DATACON and are comprised of liquid and
vapor viscosities, liquid and vapor thermal conductivities, and liq-
uid diffusivities. While not strictly a transport property, liquid sur-
face tension is also included.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-13
A facility is also provided to modify the thermodynamic methods in
the predefined method sets. Certain parameters for some of the ther-
modynamic methods may also be supplied.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-14 Specifying Component, Thermodynamic, and Stream Data
The following Categories of method sets are provided:
Most Commonly Used: These method sets may be used for a wide variety
of problems. Nearly all gas processing and oil refining calculations are
handled satisfactorily. Method sets in this category are: Soave-Redlich-
Kwong (SRK), Peng-Robinson (PR), Grayson-Streed (GS), Braun K-10
(BK10), Ideal, NRTL, UNIQUAC, and UNIFAC.
Liquid Activity: Liquid activity methods use liquid phase activity coeffi-
cient models to represent the liquid mixture in phase equilibrium calcula-
tions. This approach is useful for modeling strongly non-ideal liquid
solution behavior. Methods available in DATACON include: NRTL,
UNIQUAC, Wilson, van Laar, Margules, Regular Solution, Flory-Hug-
gins, UNIFAC, UNIFAC TDep-1, UNIFAC TDep-2, UNIFAC TDep-3,
UNIFAC Free Volume, and Ideal.
All Primary Methods: This category includes all of the primary thermody-
namic sets that are listed above.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-15
User-Added Methods: This category includes all of the 15 user-added
method sets that may be defined by the user.
Property specific data which apply only to the liquid activity meth-
ods include: fill options for missing parameters, Henry’s Law
options, and Poynting correction options. For the liquid activity
methods, a vapor fugacity method may also be selected.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-17
Equation of State Alpha Data
The form to be used for equation of state alphas may be specified on
the Alpha Selection dialog box. This dialog box is reached by click-
ing the appropriate Enter Data... button on the Thermodynamic
Property Modification-Property Specific Data dialog box. The
source of the alphas to be used in the equation of state may be des-
ignated by selecting the appropriate radio button.
Henry’s Law
The Henry’s Law dialog box is used to specify whether or not
Henry’s Law is to be used in conjunction with a liquid-activity
K-value method. This dialog box is brought up by clicking on the
appropriate Enter Data... button on the Thermodynamic Property
Modification-Property Specific Data dialog box. Checking the box
on the Henry’s Law dialog box causes Henry’s Law to be used to
determine the solubility of certain components. Designation of sol-
ute components may either be determined by the program or
selected explicitly, by choosing the appropriate radio button. If the
solute components are to be designated explicitly, the desired solute
components must be selected from the list box on the Henry’s Law
dialog box.
If either of the first two options is selected, then the molar volume
calculation method may be selected from the following choices—
Standard (25°C) Volumes, Rackett, Rackett One-Fluid, or Library
Density Correlations. The default method is Standard (25°C)
Volumes.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-18 Specifying Component, Thermodynamic, and Stream Data
Amine Residence Time Correction Factor
The Amine Residence Time Correction dialog box is available only
for the Amine special data package thermodynamic method for
K-values. It is accessed by clicking Enter Data... on the Thermo-
dynamic Property Modification-Property Specific Data dialog box,
then LLE Key Components... on the LLE K-values dialog box. A
value for the residence time correction factor for systems containing
amines MDEA or DGA may be entered in this window. The default
value for this factor is 0.30.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-20 Specifying Component, Thermodynamic, and Stream Data
Defining Transport Properties
Transport property methods are selected in the Thermodynamics -
Transport Properties dialog box which is accessed by clicking
Transport Properties... on the Thermodynamic System - Modifica-
tion dialog box.
Figure 7-9: Thermodynamics - Transport Properties
Optionally, you may also check a check box to use GPSA Data
Book values for calculating the water partial pressure.
More details on decant of free water are given in the online help text
and in the DATACON Reference Manual.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-22 Specifying Component, Thermodynamic, and Stream Data
Table 7-1: Predefined Thermodynamic Method Sets
Most Commonly Used Vapor Liquid Vapor Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Entropy Entropy Density Density Fugacity
Soave-Redlich-Kwong (SRK) SRK SRK SRK SRK SRK API NONE
Peng-Robinson (PR) PR PR PR PR PR API NONE
Grayson-Streed (GS) CP CP CP CP SRK API NONE
Braun-K10 (BK10) JG JG CP CP IDEAL API NONE
NRTL (NRTL) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIQUAC (UNIQUAC) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC (UNIFAC) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
Note: CP= Curl-Pitzer method, JG = Johnson-Grayson method, API= API Method
Equations of State Vapor Liquid Vapor Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Entropy Entropy Density Density Fugacity
BWRS (BWRS) BWRS BWRS BWRS BWRS BWRS BWRS NONE
Peng-Robinson (PR) PR PR PR PR PR API NONE
PR-Huron-Vidal (PRH) PRH PRH PRH PRH PRH API NONE
PR-Panagiotopoulos-Reid (PRP) PRP PRP PRP PRP PRP API NONE
PR-Modified-Panag.-Reid (PRM) PRM PRM PRM PRM PRM API NONE
Soave-Redlich-Kwong (SRK) SRK SRK SRK SRK SRK API NONE
SRK-Kabadi-Danner (SRKKD) SRKKD SRKKD SRKKD SRKKD SRKKD API NONE
SRK-Huron-Vidal (SRKH) SRKH SRKH SRKH SRKH SRKH API NONE
SRK-Panagiotopoulos-Reid SRKP SRKP SRKP SRKP SRKP API NONE
(SRKP)
SRK-Modified-Panag.-Reid SRKM SRKM SRKM SRKM SRKM API NONE
(SRKM)
SRK-SIMSCI (SRKS) SRKS SRKS SRKS SRKS SRKS API NONE
SRK-Hexamer (HEXA) HEXA HEXA HEXA HEXA HEXA API NONE
Lee-Kesler-Plöcker LKP LKP LKP LKP LKP API NONE
Uniwaals (UNIW) UNIW UNIW UNIW UNIW UNIW UNIW NONE
Generalized Correlations Vapor Liquid Vapor Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Entropy Entropy Density Density Fugacity
Braun-K10 (BK10) JG JG CP CP IDEAL API NONE
Chao-Seader (CS) CP CP CP CP SRK API NONE
Chao-Seader-Erbar (CSE) CP CP CP CP SRK API NONE
Grayson-Streed (GS) CP CP CP CP SRK API NONE
Grayson-Streed-Erbar (GSE) CP CP CP CP SRK API NONE
Improved-Grayson-Streed (IGS) CP CP CP CP SRK API NONE
Ideal (IDEAL) IDEAL IDEAL NONE NONE IDEAL IDEAL NONE
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-23
Table 7-1: Predefined Thermodynamic Method Sets
Special Packages Vapor Liquid Vapor Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Entropy Entropy Density Density Fugacity
Alcohol (NRTL) SRKM IDEAL SRKM SRKM SRKM IDEAL IDEAL
Amine (AMINE) SRKM AMINE SRKM SRKM SRKM IDEAL NONE
Glycol (GLYCOL) SRKM SRKM SRKM SRKM SRKM API NONE
Sour Water (SOUR) SRKM IDEAL SRKM SRKM SRKM IDEAL NONE
GPA Sour Water (GPSWAT) SRKM IDEAL SRKM SRKM SRKM IDEAL NONE
Liquid Activity Vapor Liquid Vapor Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Entropy Entropy Density Density Fugacity
NRTL (NRTL) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIQUAC (UNIQUAC) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC (UNIFAC) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
van Laar (VANLAAR) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
Margules (MARGULES) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
Regular Solution (REGULAR) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
Flory-Huggins (FLORY) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC TDep-1 (UNIFAC TDep-1) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC TDep-2 (UNIFAC TDep-2) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC TDep-3 (UNIFAC TDep-3) IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
UNIFAC Free Volume (UNIFAC IDEAL IDEAL NONE NONE IDEAL IDEAL IDEAL
Free Volume)
Ideal (IDEAL) IDEAL IDEAL NONE NONE IDEAL IDEAL NONE
Stream Data
This section of data is used to specify the thermal conditions and
compositions for all feed streams in the flowsheet. It may also be
used to furnish initial estimates of the composition and thermal con-
ditions for recycle tear streams to enhance recycle convergence.
Supplied data for tear streams or any other streams which are prod-
ucts from unit operations are used as estimates only and always
replaced by the next calculated set of values. Finally, reference
streams may be defined to eliminate thermal recycles.
● Non-compositional
● Composition defined
● Petroleum assay
● Referenced
● Mixed
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-25
Figure 7-10: Stream Data Entry Dialog Box - Feed Stream
➤ Within the Stream Data main data entry window, select the
Composition Defined radio button.
➤ Click Flowrate and Composition to access the Flowrate and
Composition dialog box.
Figure 7-11: Stream Flowrate and Composition
Radio buttons are used to select the stream flowrate basis as: Total
Fluid Rate, or Individual Component Flowrates. A data entry box
adjacent to the Total Fluid Rate button is used to enter the total
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-26 Specifying Component, Thermodynamic, and Stream Data
stream flow in mole, mass, standard liquid volume, or standard
vapor volume units.
Laboratory Distillation
➤ Click Define/Edit Assay... on the Petroleum Assay Stream dia-
log box to enter the Assay Definition dialog box, which is used
to enter the laboratory assay data for the petroleum stream.
➤ Select the type of distillation via radio buttons as: True Boiling
Point (TBP), ASTM D86, ASTM D1160, or ASTM D2887.
The basis for the distillation may be chosen as: Liquid Volume or
Weight. Liquid Volume is the default for all distillations except the
ASTM D2887 which is defaulted as weight. Note that gravity and
molecular weight curves must be on the same basis, volume or
weight, as the distillation curve. The distillation data for TBP,
ASTM D86, and ASTM D1160 are assumed to be at a pressure
basis of 14.696 psia. If not, enter the laboratory pressure in the data
field provided. For ASTM D86 distillations, a Correct for Cracking
check box is provided for application of the API Data Book crack-
ing correction to the distillation temperatures.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-28 Specifying Component, Thermodynamic, and Stream Data
The distillation data are entered in the table provided. At least two
points are required when the cubic spline fitting method is used.
When only two points are given, DATACON uses a probability den-
sity function to fill in the curve. For the quadratic fitting option, at
least three points must be given for TBP’s and five points for other
types of distillations. DATACON needs the entire distillation curve
from zero percent to one hundred percent and extrapolates and
interpolates as necessary.
Gravity Data
The type of gravity data is denoted by radio buttons on the Assay
Definition dialog box as: API Gravity, Specific Gravity, or Watson
K-Factor. The stream average value must be supplied in the data
entry dialog box provided. Optionally, a gravity curve for the stream
may be given by clicking Gravity Curve... on this dialog box to
access the Assay Gravity Curve dialog box which provides a conve-
nient tabular form for entry of the gravity curve.
Lightends Data
Lightends data may be optionally provided by clicking
Lightends... on the Assay Definition dialog box to access the
Assay Lightends Data dialog box. The lightends composition may
be entered on a mole, mass, standard liquid volume, or standard
vapor volume basis. Any library component or petroleum compo-
nent that was defined as a PETRO component can be designated as
a lightend. Several choices are available for specification of the total
lightends flow. These choices are selected via radio buttons and are:
Match to TBP Curve: The lightends rate is determined such that the normal
boiling point for the mid percent of the highest boiling lightend exactly
matches the TBP curve. The lightend components are kept in the same
proportions as the supplied composition (the default).
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 7-29
Fraction of Assay: The lightends rate is a specified fraction of the total
stream rate. A basis of liquid volume or weight may also be selected in
the Basis drop-down list. If no basis is selected, the basis for the distilla-
tion curve is assumed. When this option is chosen and the lightends com-
position does not add to the specified fraction or to 100.0 ± 1.0 or 1.00 ±
0.01 (indicating composition percentage or fraction) an error is signaled.
Lightends Rate: The lightends rate is supplied directly in the data entry
field provided. When this option is chosen and the lightends composition
does not add to 100.0 ± 1.0 or 1.00 ± 0.01 (indicating composition per-
centage or composition fraction) an error is signaled.
Optionally, a check box is provided to normalize the composition
based on the specified total lightends rate, in which case no error is
signaled for a composition total which does not equal fraction, per-
cent or a supplied rate and does not add to 100.0 ± 1.0 or 1.00 ±
0.01.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-30 Specifying Component, Thermodynamic, and Stream Data
Optionally, a temperature and pressure may be specified for the ref-
erence stream. If it is not specified, the thermal conditions of the
parent stream are used.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
7-32 Specifying Component, Thermodynamic, and Stream Data
Chapter 8
Unit Operations
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-1
Grids and the X-Y Grid
Grids are used to supply data in tabular form. There may be several
rows of related data entries.
To add a row, click a row number button and then click Insert . A
row will be added below the selected row.
To clear data entries from a row, click the row number button and
then click Reset .
To remove a row, click the row number button and then click Cut .
X-Y Grids are a special type of grid that are used to supply data for
relational curves. The two grid columns contain an independent
variable (x) and one related dependent variable (y).
Linked Text
Linked text is used to input information in a sentence format.
Numeric values, mathematical operators, stream or unit names, or
various options may be supplied as linked text. Linked text may
serve to access another data entry device.
Linked text is used on this dialog box to define the Specification and
Variable. Note that the Parameter and value link texts are red,
denoting that you must click these strings and provide data entries.
The text string the default tolerance is green, denoting a default
value.
Optionally, a different tolerance may be provided by clicking the
aforementioned text string to open the Specification Tolerance dia-
log box where the appropriate radio button may be clicked to select
a new tolerance type, i.e., relative tolerance.
When the value text string is clicked, a floating point entry field for
the specification value is displayed with a red border signifying
mandatory input. The value you supply is now displayed in blue
numbers instead of the value text string.
Block Diagram
DATACON flowsheets can be organized into a hierarchical struc-
ture. One or more unit operations on a flowsheet can be grouped
into a single icon, simplifying the main flowsheet. Using block dia-
grams in a flowsheet can provide a high-level abstract view of dif-
ferent processes in a plant. Block diagrams may be nested to any
depth.
■ Clicking the Block Diagram icon on the PFD palette and then
adding units within that subflowsheet,
Calculator
The Calculator is a versatile utility module which may be used for a
variety of purposes in flowsheet reconciliation. Parameters may be
retrieved from the flowsheet and calculations performed using a
FORTRAN-like language. Parameters may be returned to the flow-
sheet for use by other unit operations and can be assigned to tags.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-3
Some uses for the Calculator include:
All calculators have two main sections: setup and procedure. In the
setup section, component and stream parameters are retrieved from
the flowsheet, constants are defined, names are assigned to calcu-
lated results, a sequence table is set up for the streams used for input
and output, and the dimensions for the various working arrays may
be expanded if desired.
Calculator Setup
Setup is accomplished by clicking Edit/View Declarations on the
Calculator main data entry window.
➤ Click Parameters... .
Clicking the Calculator parameter linked text string provides a dia-
log box to describe the stream or unit flowsheet parameter being
retrieved. The format for this dialog box is identical to that used for
the DEFINE and is described in the SPEC/VARY/DEFINE section of
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-4 Unit Operations
this chapter. A list is also given of the unit and stream parameters
which may be retrieved via the DEFINE.
Calculator Procedure
This section is required and must terminate with a RETURN state-
ment. The various commands are typed directly into the Procedure
field on the Calculator main data entry window. The statements
may be checked as they are composed by clicking
Check Procedure . The various features of the language are dis-
cussed in the following sections.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-5
Elements of the Language
Each statement may contain up to 80 characters. The ampersand
(&) is used to denote continuation of a statement. Any statement
may be given a unique numeric label from 1 to 99999.
Note: The currency sign ($) is used to denote a comment and not
the letter C as in FORTRAN.
Supplied Arrays
Arrays include the P array, C array, R array, V array, IX array, and IS
array. Use of the P and C arrays has previously been discussed
under Calculator Setup. The V array is a floating point number
working array that may be used on either side of an assignment
statement. The IX array is an array of integer values which may be
used on either side of an assignment statement. A special form of
the IX array, in which the array is named IXn where n is an integer
between 0 and 9 may be used for a loop counter. The IS array
always has the format ISn and is used as an index for loops stepping
through the streams in the Stream Sequence.
Solution Flag
A solution flag, ISOLVE, is provided to denote solution of the Calcu-
lator as a unit operation. Codes are as follows:
0 Calculator not yet executed (default) or has solved successfully.
1 Calculator has solved.
2 Calculator failed to solve, but continue recycle loop calculations.
3 Calculator did not solve- stop all calculations.
5 Calculator solved, but stop all subsequent flowsheet calculations.
Assignment Statements
Syntax for assignment statements is:
nn V(i) = expression
nn R(i) = expression
nn IX(i) = expression
nn ISOLVE = expression
where the expression is governed by standard FORTRAN conven-
tions. Operations are evaluated with the standard priorities given the
various operators in FORTRAN.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-6 Unit Operations
Intrinsic Functions
The following FORTRAN intrinsic functions are supported: ABS,
DIM, EXP, INT, LOG, LOG10, MIN, MAX, MOD, NINT, SQRT, SIN, COS,
TAN, ASIN, ACOS, ATAN, SINH, COSH, and TANH .
For example, CALL SRVSTR(SCMR, V(1), S15, 5,15) stores the values
in array positions V(1) through V(11) in the component molar flows
for components 5 through 15 in stream S15.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-8 Unit Operations
FORTRAN Calculational Flow Control Statements
nn GOTO mm
The program branches unconditionally to statement mm.
nn CONTINUE
This statement may be used as a branch destination and is required
as the end of a DO loop.
nn IF (expression) conditional clause
This is the standard FORTRAN logical branching statement where
“expression” may be constructed with the logical operators: .EQ.,
.NE., .LT., .GT., .GE., .LE., .AND., .OR., .EQV., .NEQV., and .NOT.
FORTRAN DO Loops
nn DO mm IXn = i,j,k
nn DO mm ISn = sid1, sid2
For both of these loops, the ending statement is mm CONTINUE.
Indices i, j, and k must be integers. The step k is optional and
defaults to one. ISn requires stream labels sid1 and sid2. These
streams must be present in the stream sequence table.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-9
This statement signals the end of the calculation procedure and
returns control to the next flowsheet operation. This must be the last
statement for every calculator.
Column
The Column unit operation may be used to model any distillation
process. The column unit does not model reboilers or condensers,
so the Unit Balance Method you specify must not include a heat
balance option if you wish to model reboilers or condensers.
Flash
The Flash unit may be used to separate any stream into a liquid and
a vapor product in equilibrium with each other.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-10 Unit Operations
also optional. The options are Default, Molar, Mass, or Liquid
Volume.
Generalized Specifications
DATACON has an extensive system of cross-referencing for flow-
sheet parameters. Flowsheet parameters include operating condi-
tions for the unit operations, calculated results from unit operations,
and stream flows, compositions, and properties. For example, the
calculated temperature for an adiabatic flash and the composition of
a column product stream are both flowsheet parameters.
Most unit operation parameters may be SPECified relative to any
other flowsheet parameter in the problem. A unit operation or
stream performance specification (calculated result) must meet a
desired value, either on an absolute basis or relative basis. By defi-
nition, a SPECification must always be a calculated flowsheet result.
A SPEC has the following general form:
Parameter = value within the default tolerance
A choice for the Parameter and a numeric entry for the value must
be supplied by clicking on the underlined linked text strings.
Optionally, the tolerance basis may be changed from the default to
absolute or relative and the default tolerance value of 0.02 replaced
by direct entry.
➤ Select the Operator linked text and select an option from the
pop-up dialog box. Choices are as follows:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-12 Unit Operations
Example 8-2: Duty of flash F3/ Duty of flash F4 = 1.0
unit or stream parameter = a value
| |
| [1.0]
Specification
Unit/Stream Unit Name {Parameter Dialog Box}
[Flash] [F3]
Parameter:
[Duty]
Reference: [/ Parameter = ]
Reference Parameter:
Unit/Stream/Constant Unit Name
[Flash] [F4]
Parameter:
[Duty]
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-13
Heater
The Heater unit may be used to heat or cool one or more process
streams. Each heater pass, however, must have only one feed and
one product stream.
Heater Configuration
Passes
The number of passes in the heater is supplied in the Heater Config-
uration dialog box. This dialog box appears when you first lay the
heater unit down onto the PFD.
Duty
You can supply the heater duty as a value or as a tag. For a cooling
duty, enter a negative value. For a heating duty, enter a positive duty.
The duty is equal to the total enthalpy of the product streams minus
the total enthalpy of the feed streams. If a value or tag is not sup-
plied, DATACON assumes a value of zero.
The duty can be specified as Fixed or Not Fixed (default) by click-
ing on the Not Fixed linked text beside the Duty data entry field.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-14 Unit Operations
Mixer
The Mixer unit may be used to combine two or more feed streams
into a single product.
Reaction Data
The Reaction Data Sets data entry window provides a convenient
way to supply the reaction stoichiometry, heat of reaction, kinetic
and equilibrium data, and specify the base component for each reac-
tion. One or more reactions may be saved as separate reaction data
sets and used in the Stoichiometric Reactor.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-15
Figure 8-2: Reaction Data Entry Window
Note: You are required to directly supply the heat of reaction data
for non-library components that do not have heat of formation
data and is also required to supply the base component for the
reaction.
➤ Click the E... button beside the selected reaction on the Reac-
tion Definitions dialog box. The Reaction Equilibrium Data
dialog box appears (Figure 8-2).
➤ Click on the Define Equilibrium Data check box to enter equi-
librium data.
➤ Supply the following data in this dialog box:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-17
Reaction Phase: The reaction phase, Vapor (default) or Liquid.
Note: The units used for the pressure, weight and volume (for the
molar concentration) are the global defaults and cannot be
changed in this dialog box.
➤ Click the K... button beside the selected reaction on the Reac-
tion Definitions dialog box. The Reaction Kinetic Data dialog
box appears (Figure 8-2).
➤ Check the Define Kinetic Data box to enter kinetic data.
➤ Supply the following data in this dialog box:
Activation Energy: The activation energy of the power law kinetic rate
equation for the reaction in units of energy/weight. A default of zero
is used if a value is not supplied.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-18 Unit Operations
action brings up the Kinetic Component Orders dialog box where
the component order for each reactant may be changed.
Splitter
The Splitter can be used to split a single feed into two or more prod-
ucts of identical composition and phase condition. The split fractions
may be specified, if desired, or you can allow DATACON to deter-
mine the splits through a material balance.
Stoichiometric Reactor
The Stoichiometric Reactor calculates the heat and material bal-
ances for user-specified simultaneous reactions based on supplied
stoichiometric data. One or more reaction sets must be specified
through the Reaction Data data entry window.
Duty
The reactor duty may be entered as a value or as a measured or esti-
mated tag in the Duty field. A positive duty indicates heating while
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-19
a negative duty indicates cooling. Adiabatic operation (i.e., a duty
value of zero) will be assumed if no value or tag is defined.
Reaction Set
Enter the name of the reaction set to be used by the stoichiometric
reactor. The reaction set must have been previously defined through
the Reaction Data data entry window.
Tank
The Tank module is used to reconcile flow into and out of a tank by
using two tank level measurements taken at different times.
Volume Accumulation
The flowrate into and/or out of the tank is determined by the differ-
ence between the tank level measurements. You are required to sup-
ply the tank Level, or the tank Weight or Volume contents as a tag
measurement by selecting the appropriate option and clicking on
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
8-20 Unit Operations
the Tag button. You must then supply at least two measurement tag
values with corresponding time stamps (in the format YYMMD-
DHHMMSS, where YY is the year, MM is the month number, DD
is the day number, HH is the hour, MM is the minute and SS is the
second.)
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 8-21
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Chapter 9
Interfaces
■ @aGlance/IT™
■ PI®
■ ODBC
Supported Interfaces
DATACON allows you to establish and maintain communications
between the DATACON client and the relevant server. The ability to
extract data from the server system is provided as a generalized
time-stamp and tag name. After specifying the server, you can
browse the list of available tags. Calculated results for a specific tag
name can be exported to the server, along with a generalized time-
stamp stored with the value.
PI
The PI product is a plant information system sold by Oil Systems
Inc. As a data historian, it is capable of handling large historical
records with numerous tags. The server has available over 100 DCS
system interface modules. An API is available, designed for use
with Visual C++ or with Visual Basic.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 9-1
Access to the PI interface is provided for data reconciliation users
currently using PI or requiring an interface to a DCS system that is
provided by PI. The DATACON PI client, through the PI Applica-
tion Programming Interface, can also provide a link to systems of
several different DCS system vendors.
@aGlance/IT
@aGlance/IT, from Intuitive Technology Corporation, is a multi-
platform, client-server enabling technology used to store process
data in various control systems and data historians. @aGlance/IT
data may represent current raw values or calculated or historical
values; they are comprised of a server name, a tag name and an
attribute name.
Server Communication
DATACON provides a new menu option that allows you to select
and activate an external data server. Multiple server connections are
permitted at a time, and the connections remain as long as the
DATACON application is active, or until a server is selected and
closed. The last server selected, the start time and the end time val-
ues are used as the default server for all subsequent external tag data
entries.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
9-2 Interfaces
To connect to a server:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 9-3
➤ Follow the instructions below for the specific server:
For the @aGlance/IT and PI Historian, enter a server name in
the connect call. The server name and machine/node name do
not have to be the same. When a server name is provided, all of
the defined machine/nodes on that server are searched.
For the ODBC interface you are prompted to select a driver or
data source. When connecting to an ODBC data source, you
will be asked to select a table a column used for time. If the
time column in the database or file is named TAGTIME,
RECORDTIME or TIMEVALUE the ODBC interface will automat-
ically select it and you will not be asked to select the time col-
umn.
When selecting the Microsoft Access driver, you must specify a
file or use an existing data source.
The Microsoft Excel driver does not prompt you for a file. You
must use a defined data source or define a new one. The Excel
table must have a table name defined. To define a name, select
the entire table, select Insert/Name/Define from the menu bar
and enter a name for the table.
The text driver does not prompt for a file. You must use a
defined data source or define a new one. When setting up the
text file as a data source you must name the data source, select
the directory, and then define the format. If you do not go to the
Define Format dialog box and define a format, the data source
will not be defined. In the Define Format dialog box, select a
file and define the format. You can also select a delimiting
option—tab delimited or CSV delimited (comma delimited).
The time column must be declared with a format of CHAR and
should be at least 23 characters long. The specified order of the
column names is used in data retrieval. They must be listed in
the same order as the columns in the text file or you will get
incorrect results.
To disconnect a server:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
9-4 Interfaces
Troubleshooting
The most common problem that has arisen with the interfaces is the
inability to connect to the server. This includes servers not found,
servers not running, licenses not found or licenses not available.
Other common problems with ODBC are usually associated with
the table being setup incorrectly. These problems are not directly
related to the interfaces or DATACON/OpenYield.
If the server is not found, you need to make sure that the correct
name is being used for the server/historian. If so, then you need to
check that the server/historian is defined on the machine. The histo-
rians come with utilities to define the server/machine that on which
the historian will reside. The @aGlance/IT Historian has a utility
called administration which allows you to define the names of serv-
ers. This utility is run on the client machine.
If tags are to be exported with a time that already exists in the table,
the time column cannot be set up as unique.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 9-5
Error Messages
The interfaces make use of utilities provided by @aGlance to
retrieve error messages. These error messages are usually very use-
ful. They are written out to a local file named ssiag.log.
PI does not offer utilities to translate the error codes to error mes-
sages. PI writes messages to a file named pipc.log in the installation
directory (\pipc\dat\). The PI interface also writes messages to this
file that contains either the name of the function where the error
occurred or at the point of action, i.e., connect. The interface mes-
sages are written as SSIPI followed by the message and then the PI
error code. These messages are easier to find and recognize than the
generic PI messages. Using the error code, you must look up the
actual error test in the PI documentation.
Example
Below are examples of error messages taken from PIPC.LOG and
SSIAG.LOG:
PI HISTORIAN
--------------------
Example error messages that the PI Historian and PI interface write to
pipc.log.
PI Interface messages are preceded by SSIPI. Text is looked up in the man-
ual.
Incorrect password:
27-Mar-98 15:45:48
Error in piut_login: -999 ** Request not permitted without login
27-Mar-98 15:46:15
SSIPI.Attempting to connect -102 ** Login cancelled - current error code
upon return to DXI
Incorrect server name:
no error written out from PI
30-Mar-98 14:47:15
SSIPI.Attempting to connect -3 ** Server not found
@aGLANCE HISTORIAN
---------------------------------
Example errors messages that the @aGlance interface writes to
SSIAG.LOG.
Incorrect server name:
Error text = %AAG-E-SRVNOTREG, Server not found
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
9-6 Interfaces
External Tags
Establishing a link is required for creation of external tags. Selec-
tion of tags for external data require the server to be connected and
available to provide a data value. Acquiring the value from the
server is mandatory. External tags can be used in anywhere a regu-
lar tag or level tag are used.
➤ Click Add External Tag to open the External Tag dialog box.
This option is not available (grayed out) when no server con
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 9-7
Figure 9-3: External Tag Data Dialog Box
In the tag name field, enter a tag name or select Browse... to get a
list of available tags on the server.
If the RAW file defines any external tags, the server name will be
included. When a server is connected, changing the start and/or end
time will trigger the external tag point values to be updated from the
server.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Tags defined on a flowsheet, but for which the current time slice has
no values, or are otherwise unavailable from the server, are flagged
as invalid tags for the reconciliation. This is handled in the same
way as MAN files for the keyword version of DATACON. If no
data values are available for a point within the time-slice specified,
the tag is considered invalid.
Only tags for which Write Back Name has been specified will be
sent to the server. Data values are not generally written to the Name
specified as the source for a tag. Exported data is associated with
the time corresponding to the end time of the time slice for which
the reconciliation was calculated. Both types of external tags (exter-
nal level tags and external averaged-value tags) include their recon-
ciled data associated with the end time of the time slice for which
the date was originally requested.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 9-9
When exporting flowsheets with external tag definitions that con-
tain external tags, the tag values are written to the RAW file as nor-
mal or level tags. The association to a server will be lost. For
external tags, the value stored will be the last available value
obtained from the server. The RAW file will have the tag and the
value.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
9-10 Interfaces
Chapter 10
Running a Reconciliation
Run Menu Status Displays the global messages for the current
reconciliation.
Check Checks the input data to determine whether there
Data are any data inconsistencies.
Run Executes the reconciliation, either from the
beginning or from a breakpoint. The Check Data
function is automatically performed, if necessary.
Stop Interrupts or stops the reconciliation while it is
executing. The program completes its current
calculation before stopping.
Messages Displays the calculation history as it is being
produced. This dialog box can be displayed when
the DATACON calculation engine is executing the
reconciliation, in which case, the history will be
updated as the calculation proceeds.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 10-1
If all required input data have not been provided when you choose
the Run button, DATACON will display a warning message telling
you which data are incomplete.
Running a Flowsheet
When you begin executing the reconciliation, the flowsheet conver-
gence can be viewed in a Messages dialog box by clicking on the
Messages button on the Run palette. You can close this dialog box
by clicking again on the Messages button or by double-clicking
on the Message dialog box’s control-menu box.
➤ Click the Run button, or choose Run from the Run palette.
When stepping through or stopping reconciliation execution, you
may choose to examine the status of the reconciliation.
➤ Click the Stop button, or choose Stop from the Run palette.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 10-3
The unit after the calculation stops becomes the current unit.
The keyword input file may be one that was created using a text edi-
tor or word processor, or one that was previously created using the
Keyword File Export capability. You can also execute flowsheet
simulations that were created using DATACON from the GUI, or
were created by importing a DATACON keyword input file.
➤ Type or select the name of the file that you want to execute.
You can select multiple files within a given directory. Only the
keyword input files highlighted in the currently selected direc-
tory will be added to the list of files to execute when you exit
this dialog box.
➤ Click OK to validate your selection and return to the Run
Batch - Input and/or Simulation Files Selection dialog box.
To load an existing list of input and/or reconciliation files:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 10-5
DATACON displays a list of available existing execution list files.
The default file type is Run Batch List (*.LST). These files contain
the complete path and name of keyword input and reconciliation
files in the execution order previously specified by the user.
An example of the typical contents of an execution list file is given
below:
C:\SIMSCI\DATACON\USER\CASE1.INP
C:\SIMSCI\DATACON\USER\CASE2.INP
C:\SIMSCI\DATACON\USER\CASE3.INP
Execution list files may include comment lines (beginning with a
semicolon ;), and include list file directives given by #include fol-
lowed by the .LST file name. An example is given below:
; This is a comment
C:\SIMSCI\DATACON\USER\CASE1.INP
C:\SIMSCI\DATACON\USER\CASE2.INP
; The following list file to be loaded
; contains flash problems
#include flash.LST
➤ Type or select the name of the execution list file that you want
to load. You can select multiple list files within a given direc-
tory. Only the list files highlighted in the currently selected
directory will be used to create the list of keyword input and
reconciliation files to be executed.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
10-6 Running a Reconciliation
➤ Click OK to validate the selection and exit the dialog box.
When you return to the Run Batch - Input and/or Simulation Files
Selection dialog box, the contents of the previously selected execu-
tion list file(s) will have been expanded and are now displayed in
the File Sequence list. Selected files will be added to the bottom of
the list of previously selected files displayed in the File Sequence
list.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 10-7
DATACON displays the Run Batch - Save File List As dialog box
containing the execution file list options.
➤ Click OK .
The specified list will be executed in the order shown in the File
Sequence box. During execution, messages are displayed in the Run
Batch - Execution Summary dialog box (Figure 9-4).
Figure 10-4: Run Batch - Execution Summary
You can open the resulting reconciliation file(s) with the File Open
command, and then proceed to generate reports and/or modify the
reconciliation flowsheet as desired using DATACON.
You can look at the resulting output report file (filename.OUT) with
any ASCII-capable text editor or word processor.
Regardless of which type of file (keyword input or reconciliation)
was executed in batch mode, you can always edit the corresponding
standard ASCII output files (*.OUT) that are generated during the
batch mode execution.
These files can be viewed and/or edited with any ASCII text editor
or word processor (for example, using the Programmer’s File
Editor).
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 10-9
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Chapter 11
Analyzing the Output
➤ Choose the Units of Measure menu item from the Report For-
mat menu. The Default Units of Measure for Problem Output
Report dialog box appears.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 11-1
Figure 11-1: Default Units of Measure for Problem Output Report
➤ If you choose One Output Report in Output Units from the Out-
put Report(s) to be Printed list, this dialog box (i.e., all the but-
tons are accessible) becomes active.
➤ Click Initialize from UOM Library... to extract default values
from another set or replace the default values as necessary.
➤ Optionally, click Standard Vapor Conditions... to change the
vapor condition settings for this problem.
➤ Specify the desired standard vapor conditions and click OK .
Reports
This section describes the report options available in DATACON.
Use this as a guide for selecting the reports you want to generate.
■ Stream report
■ Heat exchanger duty and UA values
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
11-2 Analyzing the Output
■ Splitter report
■ Heater report
■ Tank report
■ Reactor report
■ Calculation statistics
* .ADJ File
The ADJ file reflects the tag names and the reconciled values for the
measured variables. The purpose of this file is to interface to
another application, such as an optimization program, providing
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 11-3
reconciled data and calculated values via tag names. This file also
includes all the calculated values listed by constructed tag names.
The calculated values include measured, unmeasured, fixed, and
eliminated variables for both streams and units. The dimensional
units are also included as part of the output in this file.
The .ADJ file also lists the standard deviations and measurement test
statistics (Z-statistics) of all measurements using constructed tags.
*.ERR File
The ERR file lists the measurements that were eliminated and their
measured and calculated values.
*.ZFL File
The ZFL file reflects mainly information about measurements which
f ailed the measurement test. The purpose of this file is to aid in ver-
ifying that automatic error elimination chooses the correct variables
to eliminate. If automatic error elimination is in effect, then this file
shows results of the measurement test before and after elimination
takes place.
Generating a Report
An report is automatically generated when you execute a reconcilia-
tion. DATACON appends an .OUT extension to the current file name
and saves the file in the USER directory. Report selections are made
in the Report Options dialog box obtained by selecting Output/
Report Format/Print Options from the menu bar.
Figure 11-2: Print Options
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
11-4 Analyzing the Output
Viewing a Report
To view a previously generated report of the current
reconciliation:
Printing a Report
To print the report:
➤ Print from your text editor while viewing the report, or
➤ Choose File/Print from the menu bar.
➤ Select Report in the Print drop-down list box in the Print dialog
box.
➤ Click OK .
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 11-5
Spreadsheet Tools
The Tools/Spreadsheet menu item can be used to start a spreadsheet
tool. The list of currently installed tools will appear in a side menu.
Spreadsheet tools are Microsoft Excel template files and macros
that can read information in the DATACON reconciliation database
to generate reports or perform additional on-the-spot calculations.
They can also update data in the reconciliation database itself using
data from an Excel spreadsheet.
Plots
DATACON can generate and display assay stream analysis plots.
Plots can be displayed using DATACON’s Plot Viewer, Microsoft
Excel, or the Gnuplot plotting program.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
11-6 Analyzing the Output
Figure 11-4: Plot Setup Dialog Box
Command Line: The full command line to invoke the plotting application.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 11-7
Saving, Printing, Exporting, and Copying Plots
To save a plot:
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
11-8 Analyzing the Output
Chapter 12
Customizing the PFD Workplace
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 12-1
Figure 12-1: Default (Global) Unit Style Dialog Box
You can also modify the type face and type size used in the stream
label as discussed below under the topic Changing the Default Font.
➤ Right-click on the icon of the unit you wish to modify. The unit
menu appears.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
12-2 Customizing the PFD Workplace
➤ Select Display... from this menu (or select Edit/Display Style…
from the menu bar) to open the Unit Style dialog box for the
selected unit type as shown in Figure 11-2.
Figure 12-2: Display Style Dialog Box
➤ Select an alternative icon from the palette at the top of the dia-
log box and click OK to confirm the change.
You can also change the type face, type size and color of the unit
label by choosing Select... to access a standard font editing dialog
box.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
12-4 Customizing the PFD Workplace
Figure 12-4: Default Stream Style
➤ Choose Options/Editor from the menu bar to open the Set Text
Editor dialog box.
➤ Enter the full path name to the editor executable program file.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
12-6 Customizing the PFD Workplace
Figure 12-6: Set Text Editor
Note that you cannot change the fonts for the title, menu, and status
bar text. Also, changing the font size will not change the size of
DATACON’s dialog boxes.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide 12-7
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Appendix A
Technical Reference
Random Errors
Plant measurements are subject to both gross and random errors.
Gross errors are a result of miscalibrated instrumentation, process
leaks, sensor failure, and other fixable problems. These errors can
be removed by simply calibrating the instrumentation, plugging the
leaks, and/or repairing the sensors. Departure from steady state is
another type of gross error, which is more difficult to handle. For
that reason, it is important for DATACON to use data coming from
steady state plant operation. For this discussion, assume the mea-
surements contain no gross errors.
Errors in plant measurements are random. You cannot know their
precise value (knowing the value of the error is equivalent to know-
ing the true measurement value), however, you can make statements
like there is a 95% chance that the true flowrate lies between 100
and 110 lb/hr. This might be reported as flowrate=105±5 lb/hr. For
the discussion that follows, regard the true measurement as the
actual measurement plus an error, X:
True value = Measured value + X
Ideally the error is zero so that the measured value equals the true
value. In practice, this is not true, but the desire is that X is small for
a reasonably accurate and well-calibrated instrument. If you
recorded thousands of measurements for the same quantity, you
would expect most of them to be centered about the true value, with
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-1
very few of them being much larger or smaller than the mean value.
In other words, the average error is zero.
Note that the above assumption is supported by the 30% rule of the
information theory, which states that if the standard deviation of
measurement errors are less than 30% of their corresponding mea-
surement values, the least-prejudiced probability distribution coin-
cides with the multivariate normal distribution.
1 ( X – X ) 2
F ( X ) = -------------- -------------------
-
σ 2π 2σ 2
0.4
exp( − X 2 / 2 )
0.35
F( X ) =
2π
0.3
0.25
F(
X) 0.2
1bUQ- )%c_
0.15
)%`b_RQRY\Ydi %`b_RQRY\Ydi
0.05
0
-4 -3 -2 -1 0 1 2 3 4
X
Data Reconciliation
DATACON combines general statistical techniques with a sophisti-
cated optimization algorithm to ensure that the measured data sat-
isfy the conservation equations and any imposed constraints. To
keep the description simple, only conservation of mass is discussed.
In reality, DATACON is fully capable of reconciling the measure-
ments with any complete plant model, containing mass, energy,
component conservation, vapor-liquid equilibrium, and so on.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-3
Figure A-2: Simplified Flowsheet
H!\RXb
=Qcc2Q\Q^SU*
H#\RXb H!H"H#-
H"\RXb
=UQcebUT
( X$ 1 , X$ 2 , X$ 3 ) = X$
δ
H
#
BUS_^SY\UT
( x1 , x 2 , x 3 ) = x
X1 + X2 − X3 = 0
H! H"
2
Minimize Xˆ – x (A-1)
x conserves mass
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
A-4 Technical Reference
The function we are trying to minimize is called the objective func-
tion. In data reconciliation the goal is to minimize the correction to
2
the measured data. The objective function is Xˆ – x , or equiva-
lently, δ 2 . The symbol is called a norm—a generalized dis-
tance, or length. Equation (A-1) states: Find x that conserves mass
and is a minimum distance (squared) from the plant measurements.
In Figure A-3 this corresponds to finding the shortest vector, δ, that
connects the measured point to the mass-conservation plane.
When all of the measurements are independent and have the same
degree of uncertainty, the norm is the standard Euclidean distance:
2 2 2 2
Xˆ – x = ( Xˆ 1 – x 1 ) – ( Xˆ 2 – x 2 ) – ( Xˆ 3 – x 3 ) + ... (A-2)
The goal is to keep the function as small as possible, but the mea-
sured values must be adjusted to satisfy the conservation equations.
These adjustments may actually increase the value of the objective
function; this mismatch between the reconciled and measured val-
ues is simply the penalty paid to enforce the mass conservation.
Clearly more importance is placed on conserving mass than pre-
serving plant measurements, which is known to have a degree of
uncertainty. The goal is to reach the mass-conservation plane while
paying the least penalty in the objective function.
2 2 2 2
Xˆ – x = w 1 ( Xˆ 1 – x 1 ) – w 2 ( Xˆ 2 – x 2 ) + w 3 ( Xˆ 3 – x 3 ) ...
2 2 2
2 1 2 1 2 1 2
Xˆ – x = -----2 ( Xˆ 1 – x 1 ) – -----2 ( Xˆ 2 – x 2 ) + -----2 ( Xˆ 3 – x 3 ) ... (A-3)
σ1 σ2 σ3
You will probably see this equation written in its generalized matrix
form:
= ( Xˆ – x ) Σ ( Xˆ – x )
2 T –1
Xˆ – x (A-4)
Interdependent Measurements
So far the assumption is that the measurement errors are indepen-
dent of each other. When measurements are in some way correlated,
the covariance matrix has off-diagonal entries and the objective
function becomes more complex.
14YbUSd
S_]`_cYdY_^ 2eRR\U@_Y^d
]UQcebU]U^d 6\QcX
6UUT
39^VUbVUUTH!H"
H!H"
RiS_]RY^Y^W`b_TeSd
14YbUSd ]UQcebU]U^dc
S_]`_cYdY_^ 29^VUbVUUTH!H"
]UQcebU]U^d Vb_]D@]UQcebU]U^d
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-7
Note: In the following sections, A, A*, B, and C are loosely
referred to as measurements for the feed composition, even
though A is the only quantity that is directly measured.
Many of the concepts of gross error detection are best illustrated
graphically. For the flowsheet above, three pairs of measurements
for the feed composition exist. Each appears as a point in the X1 - X2
plane. Figure A-5 shows measurement pair A, the directly measured
composition. If X1 and X2 have known standard deviations σ(X1) and
σ(X2), error bars can be drawn around the point. You might select
2σ(X1) for the length of the X1 error bar and 2σ(X2) for the length of
the X2 error bar, as shown in Figure A-5 below.
2σ(H"
H"
1
2σ(H!
H!
The horizontal strip around point A contains all values of X2 that fall
within one standard deviation of measurement A’s X2 value. Simi-
larly, the vertical strip contains all X1 values that fall within one
standard deviation of measurement A’s X1 value. This strip is wider
than the horizontal strip, indicating more uncertainty in the X1 mea-
surement. The intersection of these strips (the dark rectangle around
point A) contains all values of X1 and X2 that lie within one standard
deviation of both X1 and X2. The rectangle represents the confidence
region; for our purposes, all points within the rectangle are accept-
able alternatives to the measured value. A point outside of the rect-
angle is unacceptable.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
A-8 Technical Reference
Figure A-6: Two Sets of Measurements
!
1
H!H"-!
BUS_^SY\UT
C_\edY_^
H"
H! !
The diagonal line represents all compositions that satisfy the mole
fraction constraint: X1 + X2 = 1; therefore, any reconciled measure-
ment must be a point on this line. As you can see, point A already
satisfies the mole fraction constraint. If point B was absent, the rec-
onciled solution would simply be the measured value, A.
1 H!H"-!
B"*BUS_^SY\UT
gYdX123_^\i
1
B!*BUS_^SY\UT
H"
gYdX1123
2
3
H! !
C& !)("
4 C$
C' C(
# &%
C! C" C# C%
! !!
1 $!!"
2 ')!
3 ! (#"
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-11
To test for gross errors, DATACON recognizes that if the measure-
ments contained only normally distributed random errors, then the
residuals would be normally distributed with zero mean.
A residual is simply how much the measured data violate the con-
servation laws. This flowsheet has two degrees of redundancy and
therefore has two independent residuals that can be tested:
∑ Ri
2
τ(ν) = (A-5)
i
The integer ν is the number of residuals, two in this example. In
practice, DATACON scales the residuals with the standard devia-
tions of the measurements. Although the τ(ν) used by DATACON is
more complex than the one in equation (A-5), equation (A-5) is
adequate here because it illustrates the concepts well. Think of the
residuals as being normally distributed about zero with a standard
deviation of 1.
The Global Test is dependent upon the fact that if the residuals are
normally distributed, then τ follows a Chi-square distribution. Here
is how DATACON uses this result to test for the existence of gross
errors:
∑ Ri
2 2
χ ( ν) =
i
1. Measure the ν random variables R1, R2, ... Rn. A simple way to
obtain these is from a computer’s (Gaussian) random number
generator.
2. Record the value of χ2 as defined above for this experiment.
3. Repeat this procedure millions of times, to obtain millions of
values for χ2.
4. Create the probability density function by subdividing the x-
axis and counting how many values of χ2 occurred in each sub-
division. If, for example, in many experiments 13 values of χ2
lie between 9.1 and 9.2, these data could be represented as 13
values occurring at 9.15. Naturally, the graph should be nor-
malized so that the total area under it is one. As the number of
values of χ2 approaches infinity, the subintervals could become
smaller to obtain the continuous curve shown in Figure A-9. A
different curve arises for each value of ν; a few of these are
shown in the figure.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-13
Figure A-9: Chi-square Probability Density Function
0.5
0.45
0.4 ν=2
0.35
0.3
F(X^2)
0.25
ν=4
0.2
0.15
0.1
0.05
ν=8
0
0 4 8 12 16 20
Chi-Squared (X^2)
Now that you understand the origin of the Chi-square PDF, it is easy
to see how it can be used to detect gross errors. Since it is just a
probability density function, integrals of the Chi-square PDF dic-
tates the probability that the collection of measurements came from
normally distributed data. Very large values of χ2 are unlikely. If
χ2, as calculated from the measurements, is very large, the hypothe-
sis that the measurement errors are normally distributed is violated
and the measurements probably contain gross errors. A low value of
χ2 does not guarantee the measurement errors are normally distrib-
uted, but a large value is strong evidence that they are not normally
distributed. Statistical tests can typically detect violations of a
hypothesis, but can’t prove the hypothesis.
Assume, for example, that four degrees of redundancy exist and the
associated mass balance residuals each have a standard deviation of
1. If the four mass balance residuals are: 0.4, 1.0, 1.2, and 1.8, then
τ = 0.42 + 1.02 + 1.22 +1.82 = 4.48 (not too far from the expected value
of 4). For four degrees of freedom, this value is well within the 95%
confidence interval, as shown in Figure A-10. On the other hand, if
the four mass balance residuals are: 0.4, 1.0, 1.2 , and 3.0, then
τ = 0.4 + 1.0 + 1.2 + 3.0 = 5.6. This value is outside the 95% confi-
dence interval and DATACON will signal that a gross measurement
error probably exists.
Figure A-10: Chi-square Test for n=4
0.2
0.18
0.12
F(X^2)
0.1
0.08
0.06
)%_V
0.04
d_dQ\QbUQ
0.02
0
0
12
16
20
Chi-Squared (X^2)
yi – xi
Z i = -----------------------
2 2
σyi – σxi
yi – xi
Z i = -------------
-
2
σyi
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
A-16 Technical Reference
Another matrix involved in gross error statistical tests is the matrix
of measurement adjustments, say matrix Q. Matrix Q is always
dense. That means that, even if measurements are independent or
weakly correlated, the reconciled data are always strongly corre-
lated. The reconciled data are correlated because they are related to
each other via the process model. Since the reconciled variables are
correlated, the corresponding measurement adjustments are also
correlated.
However, the measurement test described before uses only the diag-
onal terms of matrix Q. Alternatively, the principal component tests
use the entire matrix Q. It was found that tests using entire Q often
perform better than the univariate tests using partial information
(diagonal terms on matrix Q).
Figure A-11: Confidence Regions for Three Tests for Pair of Measurements
Global Chi-
GMT Squared Test
a2
•
PCMT
N
IO
confidence limit 2
E G
R a1
CE
D EN
N FI
CO
confidence limit 1
For multiple gross errors, it was found that the conventional statisti-
cal methods cannot detect all the gross errors. Recent progress in
gross error detection recognizes the fact that multivariate data
require multivariate statistical methods. In many such situations,
principal component tests are more successful in detecting the cor-
rect gross errors. This is very important because failure to detect all
gross errors could result in an unsuccessful data reconciliation (the
reconciled solution is infeasible or questionable).
where wa,i is the ith eigenvector and n is the total number of mea-
surements. The contributions should be studied by checking the
signs and magnitudes of the elements in g. In general, the contribu-
tions will vary, and are dominated by a few elements. The major
contributors will be declared as gross error suspects.
References
Frantisek Madron, Process Plant Performance, Ellis Horwood
Limited, 1992.
A. C. Tamhane and R. S. H. Mah, Data Reconciliation and Gross
Error Detection in Chemical Process Networks, Technometrics., 27
(4): 409, 1985.
C. L. E. Swartz, Data Reconciliation for Generalized Flowsheet
Applications, 1989 ACS national meeting, 1989.
H. Tong and C.M. Crowe, Detection of Gross Errors in Data Rec-
onciliation by Principal Component Analysis, AIChE J. 41, 1712,
1995.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide A-19
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Glossary
Random Error The difference between the measured value and the
true value.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
G-2 Glossary
Redundant A measured variable which remains observable if
Variable the measurement is deleted, indicating that its
value can be subsequently calculated from other
variables.
Tag Data Raw plant data, with a unique tag name for each
data value.
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
DATACON 3.1 User’s Guide G-3
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
Index
www.cadfamily.com EMail:[email protected]
The document is for study only,if tort to your rights,please inform us,we will delete
I-10 Index