3
User Guide
Introduction
Table of Contents
INTRODUCTION
Overview
USER INTERFACE
Overview
Interface
Databank Browser
Library Browser
Component Viewer
Component Filter
Status Bar
View Option
Tool Tip
Property Form
Pure Component Databanks
Basic Tab
TempDep Tab
Fixed Tab
UNIFAC Tab
Custom Tab
Binary Databanks
Data Tab
Summary Tab
QuickEntry Tab
TDM BASICS
9
9
9
10
10
10
10
10
11
11
11
11
11
11
12
12
12
12
12
12
12
12
Starting TDM
13
13
Exploring a Library
14
Closing a Library
15
Selecting Databanks
16
Selecting Components
16
DATA ORGANIZATION
17
Overview
17
17
17
User Guide
Introduction
17
17
18
18
18
18
19
19
20
USER LIBRARIES
20
21
21
22
24
26
27
29
31
32
33
33
33
Deleting a Component
34
PLOTS
34
Overview
34
35
36
36
37
37
38
ADVANCED TOPICS
38
Global Settings
38
Component Filter
39
User Guide
ii
Introduction
39
39
39
40
40
40
Importing Libraries
Import DECHEMA files
Import ThermoML Files
Import DIPPR Files
40
41
42
45
46
Setting a Password
47
Unlocking a Library
47
48
49
52
REGRESS
53
Overview
53
54
Accessing Regress
54
55
56
Data Setup
56
Data Table
57
Table Generator
58
59
61
Scenario Dialog
63
Scenario Setup
63
VLE Case
64
VLLE Case
65
LLE Case
65
Regression
Open Regression File
Import Data in Regression
66
68
69
User Guide
iii
Introduction
70
73
73
74
74
74
74
77
78
PROPERTY SYNTHESIS
79
79
84
86
87
88
88
88
100
Table of Figures
Figure 1 TDM Graphical User Interface
10
14
16
21
21
22
22
23
24
25
25
26
User Guide
iv
Introduction
26
27
28
29
29
30
30
31
32
33
34
35
37
38
39
40
41
42
42
43
43
44
45
45
46
47
47
48
48
49
49
50
User Guide
Introduction
50
51
52
52
55
56
Figure 52 Diagnostic
57
58
59
60
63
64
66
67
Figure 60 RunRegress
67
68
69
70
71
71
72
72
73
73
74
80
80
82
82
83
84
84
85
User Guide
vi
Introduction
86
86
87
89
89
89
90
91
92
92
93
93
94
94
95
95
96
97
97
98
99
99
User Guide
vii
Introduction
Introduction
Overview
Accurate physical and thermodynamic component data for design and operation
play a key role in any Chemical Process Industry (CPI). More often than not,
there is a need for the engineer to create an extensive, dedicated and controllable
component database. The Thermo Data Manager (TDM) provides the engineer
with tools to build a customized component database. Essentially, TDM is a
housekeeping tool to build and manage component data.
The component databases can contain pure component data or binary interaction
data for liquid activity methods or Equation of State (EOS) methods, Henrys
constants, and UNIFAC group parameters.
The commercial version of TDM includes other widely used databases founded
by SimSci-Esscor, namely:
How to add, edit, and delete components of both unary and binary
databank type required for a simulation.
User Guide
User Interface
Most physical property and thermodynamic data requirements are met using the
system libraries. However, on specific occasions, a user may want to create a
component user library when:
User Interface
Overview
The TDM GUI allows the user to perform various operations for a more efficient
house keeping of the file level operations as well as logical section level
operations within the files. A few scenarios are listed below:
Delete databanks
Interface
Figure 1 shows a typical TDM GUI, with Unary Databanks selected, and the five
tabs appropriate to Unary databanks visible on the right side of the screen. If the
user had selected Binary databanks, the three tabs appropriate to Binary databanks
would be visible instead.
User Guide
User Interface
Databank Browser
The Databank Browser lets the user select a databank type along with the
respective databanks. The types of databanks available are Unary and Binary. Each
databank type is a collection of databanks. For example, the Unary databank type
has Pure Components, Alpha, Rackett, and Costald databanks.
Library Browser
The Library Browser displays the available system and its user libraries along with
the databanks in the system and their user libraries. System libraries appear first
under the Registered Libraries branch, and then user libraries appear in the same
branch. Any third-party libraries appear in the Reference Libraries branch.
Component Viewer
The Component Viewer displays the components available in the selected
databank for the particular databank type. The user can open the databank from
the Library Browser.
Component Filter
The Component Filter lets the user search for the desired component by using the
components Name, its Alias, or its Formula.
Status Bar
User Guide
10
User Interface
The Status Bar displays the location of the system or user library and the selected
databank. It also displays the name of the component selected in the component
viewer.
View Option
The View Option lets the user view only the checked components in user or system
libraries.
Tool Tip
The mouse cursor, when it is placed over the system and user libraries, displays
the Read and Write permissions available for the library. It also shows the
available databank types and databanks in the library.
Property Form
When the user selects either a pure component databank or a binary databank,
TDM displays data in the Property Form, as shown on the right side of Figure 1.
The Property Form shows properties and data for both selected and checked
components. The tabs offer controls with which the user can review and modify
the data of pure components, or can review and modify the binary interaction
parameters for binary databanks.
The five tabs available for Unary Databanks are Basic, TempDep, Fixed, UNIFAC
and Custom.
The three available for Binary Databanks are Data, Summary and QuickEntry.
The tabs of the Property Form are available only for components in Registered
Libraries. The tabs and their controls are disabled for Reference Libraries.
User Guide
11
TDM Basics
Fixed Tab
The Fixed Tab has controls with which the user specifies the Critical Properties,
the Molecular Constants, the Heat/Energy Data, the Miscellaneous Properties and
other temperature-independent properties of pure components. It also has controls
for modifying the Standard Liquid Density and Normal Boiling Point.
UNIFAC Tab
The UNIFAC Tab has controls with which the user can define the UNIFAC
structures for the selected component, and can then use these structures to fill in
missing information for a component.
Custom Tab
On the Custom Tab, the user can customize the property data of pure components
in a spreadsheet format. The customization feature allows the user to select and
modify one or more fixed properties, except temperature-independent properties,
of a pure component. The user can also export the data to an Excel spreadsheet.
Refer to the Plots section for details on customizing a property table.
Binary Databanks
The Binary Component Databanks have several tabs of controls. These tabs
appear on the right-hand side of the window whenever the user has selected
Binary Databanks.
Data Tab
The Data Tab shows the data for component j with respect to the reference
component i.
Summary Tab
The Summary Tab displays the summary of interaction parameters for all the
checked components.
QuickEntry Tab
On the QuickEntry Tab, the user can add a new component pair to a binary
databank and edit its data. The tab also displays the form of the equation. For
example, if the binary databank type is NRTL, the Equation Format control
displays the number of parameters for the corresponding databank type.
The user may not directly modify the data in system libraries. However,
the user can modify data after copying or adding it to a user library.
TDM Basics
This section explains the steps necessary to start working with the Thermo Data
Manager application.
User Guide
12
TDM Basics
Starting TDM
There are several ways to start TDM from within a SIMSCI application:
button on the application toolbar to open
1. The user clicks the
the Components and Thermodynamics GUI window.
2. On the Library tab, clicking the Manage Component Data button
opens the TDM GUI window.
3. On the Methods tab, clicking the Manage Binary Data button
opens the TDM GUI window, set to view, create, or edit the binary
interaction parameters.
button on the toolbar of the application
4. The user can click the
to open the default TDM GUI without having to go through the
Components and Thermodynamics GUI window,
The default databank type is Unary. The default databank is Pure
Components. The default system library and its databanks appear
highlighted in green.
User Guide
13
TDM Basics
Figure 2 Opening an
Existing Library
3. The user selects the desired library, and clicks the Open button.
The user can view, import, and modify the library, depending upon the file
system security and the given librarys password protected access level.
Exploring a Library
The user can see a list of all the databanks in a library.
1. In the Library Browser, the user hovers the mouse cursor over the
library name.
2. TDM displays a pop up list that contains the information about the
databanks and their types for that library, as shown in Error!
Reference source not found..
User Guide
14
TDM Basics
3. The pop up window closes when the mouse cursor moves away.
Closing a Library
The user can close an opened user library or reference library from the Library
Browser.
1. The user selects the Library from the Library Tree displayed in the
Library Browser.
2. The user right-clicks and selects the Close Library menu item, as
shown in Figure 3; or from the File menu, the user selects the Close
menu item.
User Guide
15
TDM Basics
Figure 3 Right-Click
Menu
Selecting Databanks
To run a simulation, the user can choose Unary (Pure components, Alpha,
COSTALD, Rackett, BWRS Pure, and Virial), Binary (various Equation of State
methods), Azeo, and Henrys databank types. These databank types contain pure
component data and binary interaction parameters data.
1. The user selects the desired databank type.
2. The user selects the databank from the drop-down list. Each
databank type has a set of databanks.
3. The library form displays the databanks for the selected databank
type, in all the opened libraries.
Selecting Components
1. The user selects and clicks the databank in the opened libraries
listed in the library browser. The components for the selected
databank appear in the component viewer form.
2. The user checks the desired components to view their properties.
The user can check more than one component.
There are two ways to select a component in TDM.
User Guide
16
Data Organization
The user can select a component by selecting the check box next to
the component.
The user can select only one component at a time by clicking, but many
components at a time by checking. Property tabs such as the Fixed tab, that
display several component properties simultaneously, use checked components.
Tabs such as the TempDep tab, that display single component property, use
selected components. For binary data, the selected component is the i component
and the checked components are the j components.
Data Organization
Overview
The components and their data are organized in system libraries and user libraries.
The commercial version of TDM supplies system libraries that include the data
compiled by SimSci-Esscor. User libraries store any custom or modified data.
These libraries host one or more Databanks. The system libraries have the OLILIB,
PROCESS, and SIMSCI databanks, which are comprehensive and widely used for
their critically evaluated pure component physical properties.
Each databank is either a Unary Databank Type or a Binary Databank Type. The
Unary and Binary databank types are further classified based on their component
properties.
17
Data Organization
User Guide
18
Data Organization
SRKH SRK-Hexamer
PRO Peng-Robinson
PRH PR-Huron-Vidal
PRM Modified PR
PRP PR-Panag-Reid
BWRS - Benedict-Webb-Ruben-Starling
19
User Libraries
TDM treats each model as a distinct Databank type. The data available in TDM
appears when the user opens the corresponding component.
User Libraries
With TDM, the user can build a customized library that contains pure component
data, along with unary and binary thermodynamic parameters.
The system libraries cover most physical property and thermodynamic data
requirements. However, the user may want to create a component user library for
any of these reasons:
The user needs certain properties that the system libraries lack.
The user wishes to avoid having to enter the same component and
thermodynamic data for several simulations.
User Guide
20
User Libraries
User Guide
21
User Libraries
4. The user enters a name for the new Databank and clicks the OK
button. The databank name can be up to eight characters long.
5. The new Databank appears in the user library.
Refer to the Plots section for information on importing and exporting a databank
to a user library.
4. The user selects the databank into which to add the component.
5. The user types the Alias or browses for the component to add. If
the user browses, TDM opens the Select Component dialog shown
in Figure 8.
User Guide
22
User Libraries
Figure 8 Selecting a
Component
6. The Select Component dialog lists each component with its Full
Name, its Alias, and its Formula. The user double-clicks on the
desired component.
7. To narrow the search, the user can type text into the Full Name
Filter, the Alias Filter, or the Formula Filter, located above the
column of the same name. TDM shows only the components that
have matching initial letters. Figure 9 shows the Formula Filter
reducing the number of components displayed to only those that
have an alias that contains the letter Q.
User Guide
23
User Libraries
Figure 9 Filter
Component Names,
Formulas or Aliases
By this method, the user can add only one component at a time to the Databank.
To add several components at one time, the user can select one or more
components in the component view window, using the <Control> or <Shift> keys
as needed, then drag and drop the components onto the user databank.
Refer to Advanced Topics on importing and exporting a component to a databank.
User Guide
24
User Libraries
User Guide
25
User Libraries
User Guide
26
User Libraries
4. The user selects the Databank and browses for the component
Alias, then clicks the OK button.
5. TDM copies the Name, the Formula and the CAS number of the
selected component, and generates a new SIMSCI ID, as shown in
Figure 14. TDM prefixes COPY_OF_ to the component name.
Figure 14 Copied User
Component
6. The user must specify a distinct alias name for this copied
component, to differentiate it from the parent components in the
data bank.
User Guide
27
User Libraries
Figure 16 shows the user having opened a system databank and selected several
comnponents, then dragging them to the user databank.
Figure 16 User Databank While Dragging and Dropping Components
User Guide
28
User Libraries
Figure 17 shows the user databank after the user dragged and dropped five
components in it.
Figure 17 User Databank After Dragging and Dropping Components
The user opens the source databank and selects one or more components, using
the <Control> or <Shift> keys as needed, then drags the components to the user
databank. When the user lets go the mouse button, TDM opens the user databank
and shows the list of components, which now includes those that the user dragged
and dropped.
If the user databank already contains the component that the user drops, TDM
displays the Component Override window as shown in Figure 18.
Figure 18 Component Override Window
User Guide
29
User Libraries
The user can update some of the details of a component in a user databank.
Figure 19 shows the user opening a user databank, selecting a component, and
right-clicking on it. Then the user selects the Update Component Details item from
the right-click menu.
Figure 19 Select Component and Update Details
TDM opens the Update Component Details window, as shown in Figure 20.
Figure 20 Update Component Details Window
User Guide
30
User Libraries
The user can change the component name, formula and CAS number. When
finished, the user clicks the OK button.
User Guide
31
User Libraries
6. The user selects the components and clicks the Get Data button.
TDM fills the Edit Data grid with information about the
component.
Figure 22 Displaying
Components
7. The user must enter at least one value in any field in the Data form
to save the component pair information.
8. To save the data, the user selects the Save item in the File menu.
9. If the user exits the library without saving, TDM prompts to either
Save or Discard the changes appears.
10. The user can view the saved component pairs and their properties
in the Summary tab.
11. The user clicks the Yes button to change the reference component.
User Guide
32
User Libraries
databank. When the user lets go the mouse button, TDM opens the user databank
and shows the list of components, which now includes those that the user dragged
and dropped. The first component the user slects in the source databank is the
reference, or i component, and the second is the j component
User Guide
33
Plots
3. The user clicks the Yes button to delete the Databank from the
library.
Deleting a Component
The user can delete a component from the user library.
1. The user selects the component to delete from a Databank.
2. The user right-clicks on the component. TDM displays the delete
dialog.
3. The user clicks the
button.
Plots
Overview
TDM has functions that generate and display a variety of temperature-dependent
graphical plots of tabulated data results. These plots appear in the Plot Viewer. The
user can view a plot, add components to a plot, export a plot to Excel, and print a
plot. The user can also modify plot attributes and customize the appearance of
plots. The user can also change the color of the plot line, by right-clicking on the
check box in front the component name.
When the user hovers the cursor over the name of the component in a plot, the
tool tip displays the component name and the correlation used for plotting the
User Guide
34
Plots
property. TDM generates only one plot per property, but the user can add other
component information to the same plot.
TDMs plotting feature lets the user estimate the value of a specific property
between the minimum and maximum temperature ranges.
User Guide
35
Plots
User Guide
36
Plots
User Guide
37
Advanced Topics
Figure 27 Estimating
Property Values
The user can estimate property values only for a valid temperature range.
button,
Advanced Topics
Global Settings
TDM can display several engineering unit bases. Although TDM stores all data
and performs internal calculations in International System (SI) units, the user can
choose to display outputs in a standard unit base such as English Engineering
(ENG) units or Metric Engineering (MKS) units. This facility serves only to convert
the data or change the unit of measure for the required unit type; it does not save
the data.
1. The user can view the units of measure for any specific property by
clicking the units for that property. TDM opens the Convert Units
of Measure dialog shown in Figure 28.
User Guide
38
Advanced Topics
Figure 28 Converting
Units of Measure
2. In the left-hand column of the dialog, the user clicks on the current
units of a property.
3. In the right-hand column, the user clicks on the desired units, and
then clicks the Convert Value button.
4. The new value appears in the property field for the corresponding
component.
Component Filter
TDM allows users to search and retrieve component information based on the
components name, formula, SIMSCI ID, alias and family group. The user can
search in the system libraries as well as the user libraries. The user can doubleclick on the column header in the component list viewer, shown in Figure 8, to
populate the viewer with the entire list of component names and aliases.
Search on Alias
The user can enter an alias for the component in full or partial to find all matches
to this string. A component has only one name, but it may have up to four aliases.
For example, water has an ID name H2O and the four aliases WATER, H20,
Hydroxic Acid and Hydrogen Hydroxide.
User Guide
39
Advanced Topics
Sorting
The user can sort the components based on their full name, alias, and formula by
clicking on the header of the respective options.
Importing Libraries
User Guide
40
Advanced Topics
The user can import component data from third-party libraries into user libraries
and databanks. After loading, these libraries appear in the Reference Library
branch of the library tree. The user cannot edit, add or delete a reference library or
any of its components.
TDM supports these third party databases:
To import any thiord-party file, the user opens the file menu and selects the Import
menu item, as shown in Figure 30.
Figure 30 Import Menu
User Guide
41
Advanced Topics
After the user selects a file and clicks the OK button, the contents of the file
appear in the Dechema.lib user library. Each DECHEMA file imported creates one
databank in this library, as shown in Figure 32.
Figure 32 DECHEMA Files in the User Library
User Guide
42
Advanced Topics
To import a ThermoML file, the user selects the Import ThermoML item from the
Import menu item. TDM opens the Select the ThermoML (.xml) File window , as
shown in Figure 33.
Figure 33 Select a ThermoML File
After the user selects a file and clicks the OK button, the contents of the file
appear in the ThermoML user library. Each ThermoML file imported creates one
databank in this library, as shown in Figure 34.
Figure 34 ThermoML File in the User Library
User Guide
43
Advanced Topics
If any of the identifying properties is missing, TDM displays that property's grid
bix in red. To enter the required missing data, the user clicks the ellipsis button on
the far right side of the grid. TDM opens the Add User Component window, as
shown in Figure 35.
User Guide
44
Advanced Topics
The user must give the alias, the name, the formula, or the CAS number of the
new component if it lacks any of these. Then the user clicks the OK button.
User Guide
45
Advanced Topics
After the user selects a file and clicks the OK button, the contents of the file
appear in the DIPPR.lib reference library. Each DIPPR file imported creates one
databank in this library, as shown in Figure 38.
Figure 38 DIPPR Files in the Reference Library
User Guide
46
Advanced Topics
Figure 39 Saving an
Imported Databank
Setting a Password
The user can secure a library in order to restrict access to component information
by providing passwords for the user library.
1. The user selects the library to secure.
2. From the Options menu, the user selects the Set Password menu
item, or
The user right-clicks on the user library and selects the Set
Password user item.
3. TDM opens the Change Password window shown in Figure 40.
Figure 40 Setting a
Password
4. The user chooses the appropriate option, then enters the password
and clicks the OK button.
5. The library is secure, and it appears in the table with a lock symbol
next to it.
Unlocking a Library
The user can unlock a locked library.
User Guide
47
Advanced Topics
4. The user enters the password. To open the library as a read only
file, the user checks the Open as Read Only checkbox. Finally, the
user clicks the OK button.
5. This enables read and possibly write permission for the library.
User Guide
48
Advanced Topics
Table 1 shows the color codes that TDM uses to validate the input data.
Table 1 Color Codes for
Validating Input Data
Green
Blue
Yellow
Indicates that the user-modified data is still valid and saved, but
that the user should change the input value.
Red
If any of the input data is invalid, so that it appears in red, and the user tries to
save the databank or library, TDM displays an error message similar to that of
Figure 44. The user can save a databank or library only if no data field is colored
red. The example in Figure 43 shows a blue item in the second column and a red
item in the fourth column.
Figure 44 Error Window
User Guide
49
Advanced Topics
User Guide
50
Advanced Topics
Figure 47 Custom
Property Definition
User Guide
51
Advanced Topics
Figure 48 Reordering
the Component
Property Data
The following steps are optional. Instead, the user can send the TDM
Diagnostics file directly to Sim4Me Support. The file is located in the
folder MYDOCUMENTS\SIMSCI\INSTALLATIONDIAGNOSTICS, and it has a
filename of the form TDM_MM_DD_YYYY. For example, a TDM
User Guide
52
Regress
SQLITE
SQLITE
Regress
Overview
The ability to predict physical properties and phase behavior accurately is vital for
process simulation. From chemical plant operations to pipeline flow, the modeling
effort relies on the foundation of physical properties and thermodynamics. New
models, modifications to existing models, and new input parameters to existing
models are always appearing in the open literature, to try to improve these
property predictions.
Thermodynamic models and theory have the benefit of a large body of pure
component and mixture data, available through the open literature or through
company proprietary resources. Plant operators can use this data either to validate
a model or to generate model parameters that match a given mixture. To this end,
Thermo Data Manager provides Data Regression for generating thermodynamic
model parameters through the regression of phase equilibria data.
User Guide
53
Regress
The Data Regression feature lets the user compile measured component or
mixture data into a form that other applications can use.
The regression options are as follows:
Mixing Properties The user may regress multicomponent heat-ofmixing data to generate Redlich-Kwong binary interaction
coefficients. The user can regress volume-of-mixing to create
binary interaction parameters for Liquid Activity Methods or
Equations of State.
Red
Green
Blue
Accessing Regress
Thermo Data Manager offers the Regress utility so that the user can save
regression results; that is, correlation coefficients, alpha formulations, and binary
interaction parameters, into TDM databanks.
To change from the Component Data mode to Regress mode:
1. From the Options menu, the user selects Mode and then the Change
to Regress Mode menu item, or
User Guide
54
Regress
User Guide
55
Regress
4. The user drags and drops the Databanks from the Available Data
Banks list to the Bank Search Order grid, then specifies the search
order of the Databanks for components and methods.
The Regress utility uses the UOM Slate selected in the Global Options dialog for
the TDM session as the default for Regression. However, the user can change the
UOM slate by clicking the Change button in the UOM grid.
Data Setup
Data Table
Table Generator
Data Setup
Figure 51 shows the Data Setup tab.
Figure 51 Data Setup
User Guide
56
Regress
Gamma data
The user selects the Data Type from the drop-down list. The Data Type selected
defines the variables available for applying the Data Format. The user can select
the variables from the Available Variables list and drop them to the Selected
Variables list to define the Data Format.
The user selects the components from the Available Components and drops them
into the Selected Components list. These components appear in the Data Set and
are available for regression.
If the user enters a fixed pressure or temperature in the Iso-Conditions grid, the
respective variable is not available for regression.
If the information supplied in the Data Setup is incomplete, the Status grid
displays a message in red. The user clicks the Diagnostics button to view the error
and the corrective action required. The Regress utility shows a message like the
one in Figure 52.
Figure 52 Diagnostic
Data Table
In the Data Table pane, the user can enter or modify experimental data. The Data
Set allows the user to collect uncertainty data to use as experimental data. The
user can give the uncertainty data as an absolute deviation (D) or as a percent
deviation (%).
User Guide
57
Regress
The Data Set also allows the user to enter incomplete data or a Data Set with
missing values. The Regress utility tries to use experimental data to do parameter
fitting. TDM may still use incomplete observations in the reporting step to
generate predicted values.
The user checks the appropriate option in the View Option grid to view and edit
Experimental Data or Uncertainty Data or both. The user must check the Show All
Composition Columns checkbox to display the concentrations (X, Y) data of multi
components.
The user can enter composition it as a Mole Fraction or a Mass Fraction, as shown
in Figure 53. The default is Mole Fraction.
Table Generator
The Table Generator pane, shown in Figure 54, can generate data in cases where
experimental data is not available, but sufficient data pertaining to a set of model
parameters that are relevant to the Data Type selected is available. This feature
applies most often to pure components and binary mixtures.
User Guide
58
Regress
Figure 54 Table
Generator
The user selects the method slate from the drop down list to generate data. The
user clicks the Manage Method Slates button to add new method slates or modify
the thermodynamic methods of the existing slate.
A method slate is required for all the Data Types except for the
Temperature-Dependent data type.
The data appears in a tabular form. The variables and their respective UOMs
appear. The START and END values specify the bounds to use for the variable
during data generation. The SELTYPE column represents two ways to specify the
granularity of the grid for the given variable. The USAGE column has three
options: Output, Vary, and Fix.
The user clicks the Generate Table button to generate the requested data and then
display it in a table similar to the experimental data table. TDM bases the
generated data on the model parameters and variable details set in this pane.
User Guide
59
Regress
regression. The data for calculation can be obtained from any of the data sets
defined in the Data Set dialog.
Figure 55 Calculation
Option Setup
The user right-clicks on the Calc Options node and selects the Add menu item to
create a new Calc Option. The user can edit and rename an existing Calc Option.
The user selects a Regression Class from the drop-down list. The default is
PROPERTY. Based on the regression class selected, the model type drop-down list
is populated. The regression classes and their respective model types available for
regression are shown in Table 3.
The objective function is the equation used to sum the difference between the
calculated values and the supplied data. There is a default objective function
equation for each combination of Regression Type and Data Type. The user may
select a different Objective Function Type from the drop-down list and the
corresponding equation is displayed below. There are four types of Objective
Function Type available; Relative Error, Absolute Error, Average Error, and
Maximum Likelihood. The Maximum Likelihood Objective Function Type uses an
estimate of the statistical sigma instead of the experimental value. In practice the
sigma values are not available most of the times; so Regress uses the uncertainty
values instead.
User Guide
60
Regress
The Maximum Iterations is the number of iterations allowed before the regression
is terminated. The default is fifty iterations. The Accuracy setting determines the
number of decimals specified.
Table 3 Models
Available for
Regression
Model
LACT and GAMMA
EOS
HMIX
Property
Correlations
Type
Description
WILSON
NRTL (3)
NRTL (5)
5-Parameter form
NRTL (6)
6-Parameter form
NRTL (8)
8-Parameter form
VANLAAR
Van Laar
MARGULES
Margules
UNIQUAC
SRK
Soave-Redlich-Kwong
PR
Peng-Robinson
PRP
PRM
SRKP
SRKKD
Soave-Redlich-Kwong-Kabadi-Danner
SRKP Modified
SRKS
Soave-Redlich-Kwong-SImSci
RK1
RK2
Temperature
Dependent
User Guide
61
Regress
Regression Type
PROPERTY
Solver
Objective
Function
NONLN
ABSERR
NONLN
RELERR
ALPHA
NONLN
RELERR
NONLN
ABSERR
NONLN
AVGERR
NONLN
MAXLIK
NONLN
RELERR
ODR_OrdinaryLS
ABSERR
ODR_OrdinaryLS
AVGERR
ODR_OrdinaryLS
MAXLIK
ODR_OrdinaryLS
RELERR
ODR_ImplicitModel
ABSERR
ODR_ImplicitModel
MAXLIK
ODR_ImplicitModel
RELERR
User Guide
62
Regress
The Solver choice is not tied to the objective function selection in the other type.
Therefore, it possible to select invalid combinations. If the user does so, the
Regress utility reports an error condition during validation for Run/Verify actions.
Scenario Dialog
A scenario is a convenient way to set up and experiment with various regression
settings. A scenario node associates one Calc Option with at least one Data Set
node. A scenario has the ability to use Data Sets with different types of data. A
Scenario node consists of two parts:
Scenario Setup
Regression
Scenario Setup
The Scenario Setup pane, shown in Figure 57, includes the Scenario Description,
the available Data Sets, and the list of Calc Options.
User Guide
63
Regress
Figure 57 Scenario
Setup
The user selects a Calc Option from the drop-down list to use in the regression.
The user selects one or more Data Sets from the Selected DataSets list to use
during regression. On selecting the Data Set, the Regress utlity activates the Flash
Spec to Use option that shows the various tags.
The Flash Spec to Use option is activated only when the Fugacity option is
checked in the Calc Options Setup dialog box. When the K-value option is
checked, Flash Spec to Use is not available.
VLE Case
Table 5 shows the general information for the VLE Case.
Table 5 VLE Case
Tag
Data Type
Reg Type(s)
EquilVLE
EQUI
EOS, LACT
P, T, X, Y
Table 6 shows the various cases for the Fugacity-based (with flash options)
regression values for the VLE Case.
Table 6 VLE Case
Flash-Based
Regression
Tag
T-Bubble
(VLE)
P-Bubble
(VLE)
T-Dew
(VLE)
P-Dew
(VLE)
TP (VLE)
Vapor Fraction
0.0
0.0
1.0
1.0
0.0
User Guide
64
Regress
Spec #1
TEMP
PRES
TEMP
PRES
TEMP
Spec #2
VAPFRAC
VAPFRAC
VAPFRAC
VAPFRAC
PRES
Feed Variable(s)
X, Y
Feed Flow(s)
1, 1
Calc Variable(s)
P, Y
T, Y
P, X
T, X
X, Y
SSQ Variable(s)
P, Y
T, Y
P, X
T, X
X, Y
Table 7 shows the various cases for the K-values-based regression values for the
VLE Case.
Table 7 VLE Case K-Values-Based
Regression
Calc Variable(s)
SSQ Variable(s)
KVALVL
VLLE Case
Table 8 shows the general information for the VLLE Case.
Table 8 VLLE Case
Tag
Data Type
Reg Type(s)
EquilVLLE
EQUI
EOS, LACT
P, T, X, XX, Y
Table 9 shows the various cases for the Fugacity-based (with flash options)
regression values for the VLLE Case.
Table 9 VLLE Case
Flash Based
Regression
Tag
T-Bubble
(VLLE)
P-Bubble
(VLLE)
T-Dew
(VLLE)
P-Dew
(VLLE)
TP (VLLE)
Vapor Fraction
0.0
0.0
1.0
1.0
0.0
Spec #1
TEMP
PRES
TEMP
PRES
TEMP
Spec #2
VAPFRAC
VAPFRAC
VAPFRAC
VAPFRAC
PRES
Feed Variable(s)
X, XX
X, XX
X, XX, Y
Feed Flow(s)
1, 1
1, 1
1, 1, 1
Calc Variable(s)
P, X, XX, Y
T, X, XX, Y
P, X, XX
T, X, XX
X, XX, Y
SSQ Variable(s)
P, X, XX, Y
T, X, XX, Y
P, X, XX
T, X, XX
X, XX, Y
Table 10 shows the various cases for the K-values-based regression values for the
VLLE Case.
Table 10 VLLE Case K-Values-Based
Regression
Calc Variable(s)
SSQ Variable(s)
LLE Case
Table 11 shows the general information for the LLE Case.
Table 11 LLE Case
Tag
Data Type
Reg Type(s)
EquilLLE
EQUI
EOS, LACT
P, T, X, XX
User Guide
65
Regress
The user specifies a weighting factor for the experimental data. This weighting
factor is then used in the objectives function. A weighting factor of zero ensures
that a particular value is not taken into account in the calculation of the regression
parameters.
The user checks the Ignore Entire DataSet check box to ignore the entire DataSet
table in a scenario run. The user can also turn off data rows at individual level by
checking the Ignore? Checkbox in the DataSet table. This feature allows the user
to ignore experimental data that are suspect.
The user checks the Uncertainty Data checkbox to be able to modify the estimates
without compromising the original data. The overrides belong to the Scenario
node and not the DataSet node.
The user checks the Show All Components checkbox to display the concentrations
(X, Y) data of multi components.
Regression
The Regression pane verifies or runs a scenario or a regress case. The user can
request an Excel report or a plot of the parameters. The Regression pane also
offers controls to load parameters from available databanks and to specify a fixed
value or an estimate for a given parameter and a given binary pair.
Figure 58 Regression
Pane
User Guide
66
Regress
The user clicks the Load from Databank button to load the model parameters
from the available databanks. TDM displays the Source Databank dialog box,
shown in Figure 59.
Figure 59 Select
Source Databank
The user chekcs the checkbox of the databank from which to call the parameter
values.
In the Regression Pane, the user either checks the Fixed? checkbox in the
parameter data grid to specify a fixed value for a given parameter or binary pair;
or specifies the Lower Bound and Upper Bound values in the parameter data grid
to estimate the values of a given parameter or binary pair.
The user clicks the Run button to regress the data of a Data Set. TDM displays a
regression dialog box, similar to Figure 60, that shows information on the number
of variables, equations, iterations and the Initial and Final sum of squares.
Figure 60 RunRegress
The user clicks the OK button. The regression populates the Results grid with the
Experimental and Calculated values of the variables, as shown in Figure 61.
User Guide
67
Regress
Figure 61 Regression
Tab and Results Grid
The user clicks the Verify button to validate the parameter data or coefficients
supplied by the user against the experimental data.
The user can restore the original estimates after a regression run by clicking the
Update Estimates button.
The user clicks the Send Initial Estimate to Databank and Send Final Value to
Databank button to send the initial estimates and the final values of the regression
run, respectively to a databank.
The Plots grid allows the user to export the data to an Excel sheet or to plot a
graph of the variables.
After successful regression, the user can save the regress case as an .rgx file by
selecting Save from the File menu.
User Guide
68
Regress
2. The user browses and selects the desired regress fil to open, then
clicks the OK button.
3. TDM displays the saved case in the Regress window.
User Guide
69
Regress
The user browses and selects the desired regress fil to open, then clicks the OK
button.
TDM opens the saved regress case and displays it in the Regress window.
User Guide
70
Regress
3. TDM opens the file searh dialog shown in Figure 65, in which the
user locates one or more keyword files that contain NONLIB
Cards.
Figure 65 Select
Keyword File
4. The user can double-click the keyword file or click the OK button.
Either method starts the NONLIB Cards registration process.
When the process finishes, TDM shows the message in Figure 66.
User Guide
71
Regress
Figure 66 NONLIB
Cards Not-Registered
Message
User Guide
72
Regress
7. After registering the NONLIB Cards library, the user can browse
through all the NONLIB Cards in TDM and see the properties
defined for them, as shown in Figure 68. All the NONLIB Cards
are registered under a databank called NONLIB.
Figure 68 NONLIB
Cards in Library
The user can now proceed with importing the keyword file. The user must
manually register the NONLIB Cards file created in TDM from the specified
location. The NONLIB Card utility only creates library and adds the NONLIB
Cards to it.
User Guide
73
If the user has deleted the NONLIB Cards from the library or has skipped the first
step while importing a keyword file which contains NONLIB Cards, the keyword
import will complain that it cannot proceed, bcause the keyword file contains
unregistered NONLIB Cards, as shown in Figure 70.
Figure 70 NONLIB
Cards Not-Registered
Message
If TDM passport protection is applied to the NONLIB Card library, the user must
unlock the library first before running the NONLIB Card utility.
User Guide
74
User Guide
75
will be available
C++ and Fortran
the specified
specified.
Save
Valid only for Open statement (not in case of Import). The opened
case specification along with the results will be
saved in the opened .rgx. It is the users
responsibility to make sure that the .rgx is
available for writing.
SaveAs =.rgx file Path
SaveAs will save last open case in .rgx at the specified path
End Batch
Alpha [Optional_Batch_Name]
initiates Alpha Regression
INBank = LibName::DBName, LibName::DBName,
Bank search order for table generation for Alpha regression
COMPonent = ComponentName
This is the component for which the Alpha regression is being
performed.
TRange = MinValue, MaxValue, [TTPTC], [UOMString]
Temperature range for generating vapor pressure data for Alpha
regression.
STEPs = [INCR/NPTS],Value
User Guide
76
<<Error>>
Alpha DataGeneration for Batch:$NONAME, Case:alpha1failed
Regression: Failed, Number of Variables: 3, Number of Equations:
20 , Number of Iterations: 0
Diagnostic: TEMPERATURE DATA LESS THAN 0 OR GREATER THAN TC
Aborting this case...
Runtime Error due to Failure of Regress to Solve
<<Error>>
Alpha DataGeneration for Batch: PRKALPHA, Case:alpha2failed
Regression: Failed, Number of Variables: 3, Number of Equations:
20 , Number of Iterations: 200
Aborting this case...
Runtime Warning due to the specification of non-existent/unavailable
Library::BankType::DataBank
<<Warning>>
User Guide
77
@SYSLOG=C:\rgbatch.log
@WORKLIB=TDM_2.0
BATCH Batch1
O = c:\PRLDN5.rgx
Import = C:\TDM_PH3\kwd_import\inp\bh.inp
run = AN1
//NOrun
db = AN1, batch::NRTL::NRTL
db = an1, test1::db2, an3, test2:db4
// The second statement will cause syntax error as test2
// and db4 are separated by : instead of ::
INF = debug
log = d:\cpp\cpplog, d:\fort log\fortlog
// While the above two statements will not cause a syntax error,
// they currently have no effect
SA = c:\testbatch.rgx
END BATCH
@PROCESS
Alpha Case:
@WORKLIB=TDM_2.0
@SYSLOG=C:\rgbatch.log
ALPHA SSALPHA
inb = TDM_2.0:PROCESS
inb = TDM_2.0:SIMSCI
comp = CO2
TR = 20, 200, TTPTC, F
TR = 100, 150, K
STEP = 5.5
Steps = NPTS, 20
EOS = Srk, SOAVE79
//EOS = Srk, 6
// Alpha Form can be numeric (e.g. 6 above)
User Guide
78
Property Synthesis
// or can be mnemonic (e.g. SOAVE79)
iv = pr, 0.1, 0.2
// Since only srk is being run the above statement has no effect
fx = srk, 0.1345, 0.2654, 0.3
db = srk, batch::SRKO::ALPHAT3
db = pr, test2::PR::dby
// The second db statement will cause a warning
// as PR is not being run
maxi = 200
accu = 7
sa = C:\testa2.rgx
end Alpha
Property Synthesis
The Property Synthesis utility predicts a components functional properties, such
as vapor pressure, density, viscosity and others, based on the molecular structure
for a wide range of temperatures.
The user can select the component, and then select the Tools menu
and then Property Synthesis from the menu bar.
The user can click the Property Synthesis button on the Toolbar.
Either method opens the Property Synthesis window shown in Figure 71. If the
component is a known component, its structure appears in the Drawing Area on the
right hand side of the Property Synthesis window.
User Guide
79
Property Synthesis
Figure 71 Property
Synthesis Window,
Summary Tab
The Property Area on the left side has five tabs. The first tab summarizes the data
and calculations from the four estimation methods shown on the other tabs. These
remaining four tabs all estimate the properties of the component, each according
to a different group-contribution estimation method: Marrero and Gani (2001),
Constantinou and Gani (1994), Joback and Reid (1987), and finally Wilson and
Jasperson (1996).
Figure 72 shows the page of the Marrero and Gani method.
Figure 72 MG Tab,
Primary and Secondary
Properties
The first section of the page is a header with the chemical name, the CAS number
and the molecular weight of the drawn compound. The user enters the CAS
User Guide
80
Property Synthesis
number, or retrieves it from a TDM database, and retrieves the name from a TDM
database.
The second section is the Primary Properties section. Primary properties are those
properties that only depend on the molecular structure. For each property, the
following data appears:
Short identifier
Unit of measure
The next section lists the Secondary Properties, which are those that depend on
both the molecular structure and primary property values. TDM calculates
secondary property values using as input data the estimated primary property
values or user-supplied values. The information offered for each secondary
property is the same as that offered for primary properties.
Figure 73 shows the Functional Properties, which depend mainly on temperatures,
but can also depend on molecular structure, primary or secondary properties, or
even other functional properties.
User Guide
81
Property Synthesis
Figure 73 MG Tab,
Functional Properties
Figure 74 shows the final section of the page, which lists the group description of
the drawn chemical structure according to the current active method.
Figure 74 MG Tab
Group Properties
The Summary page differs from the other pages in the way it displays the results
(see Figure 71 and Figure 75). The first section of the Summary page is similar to
those of the other pages, but it also shows the SMILES string of the drawn
molecular structure.
User Guide
82
Property Synthesis
The next section shows the best results for each property obtained from the
different methods. The criteria to select the best results are as follows:
The summary data can be lengthy, and the user might have to scroll down to see
all of it, as shown in Figure 75.
Figure 75 Property
Synthesis Window,
Summary Tab Scrolled
User Guide
83
Property Synthesis
4. Wilson, G. M. and Jasperson L. V. - Critical Constants Tc, Pc Estimation Based on Zero, First, Second-Order Methods. AIChE
Meeting, New Orleans, LA, 1996.
In the lower right corner of the Property Synthesis window, the Select Units
button lets the user change the units of measure for the various properties that
Property Synthesis handles
The user clicks the Print Results button in the lower right corner to open the
Print/Export screen, as shown in Figure 76.
Figure 76 Print/Export
Screen
On this screen, the user can click the Save to Word File Format button to save
the results to a file, or can click the Print button to send the results to a printer.
This example starts when the user clicks the aromatic ring button on the toolbar.
The user selects the aromatic ring and double-clicks
on the connection circle
User Guide
84
Property Synthesis
The Property Synthesis utility can use a molecules SMILES description to draw
the molecular structure. The user right-clicks in the drawing area, selects Import,
and then selects SMILES.
Figure 78 Importing a
SMILES Description
The utility opens the window shown in Figure 79, into which the user writes or
pastes the SMILES description. When the user clicks the OK button, Property
Synthesis draws the molecule and shows the calculated properties.
User Guide
85
Property Synthesis
Figure 79 Enter a
SMILES Description
In the Summary window, the user can double-click on any property in the Property
Area to open the Info about Property window, as shown in Figure 80. This window
displays the information about the given property.
Figure 80 Property
Information
At the bottom of the window is the Go to Input Data button, which the user can
click to open the Experimental Data and Calculation Options window, shown in
Figure 81.
User Guide
86
Property Synthesis
Figure 81 Property
Synthesis Input Data
Window
Property Synthesis uses the experimental values in the Experimental Data and
Calculation Options window to compare relative errors of the four methods. The
method that comes closest to the experimental value for each property is the
method the program selects as best suited for that specific property. The utility
normally passes back to TDM only the predicted values for each property.
However, If the user checks the Data Override option for a property, Property
Synthesis sends to TDM the experimental data instead of the predicted data.
The Range of Temperatures items allow the user to specify the temperatures at
which the functional properties are calculated. The Reset button clears all values.
The Use Exp. Values checkbox, when checked, sends the experimental values as
input data to the different estimation methods implemented in Property Synthesis.
The experimental values serve to estimate the non-primary properties, and the
utility overwrites the real data.
When the user finishes entering experimental data and clicks the OK button, the
Experimental Data and Calculation Options window closes and the user returns to
the Property Synthesis window.
User Guide
87
The following lists the component properties available in the Property Synthesis
utility. These properties can be mapped into a Library Manager formatted binary
file, with extension *.lb1 or *.lb2, for TDM to use.
Heat of Formation
Heat of Fusion
Acentric Factor ()
Solubility Parameter
Dipole Moment
Temperature-Dependent Properties
The following temperature dependent property correlation data from Property
Synthesis can map into TDM:
Temperature-Dependent Property
Liquid Density
16
Thermal Conductivity
Liquid Viscosity
20
Heat of Vaporization
53
Liquid Enthalpy
54
User Guide
88
Figure 83 shows the user entering information for the new component.. TDM
assigns the SIMSCI number.
Figure 83 New Component with No Formula or CAS Number
Not knowing the CAS number, the user can leave this field blank. TDM does not
allow the FORMULA field to be be blank, so the user can enter just the letter x.
Figure 84 shows two new components, once created from scratch, and the other
created as a copy of Acetic Acid, then given its own name. The one created form
scratch has no formula, and the other has the same formula as Acetic Acid.
Figure 84 Two New Components
User Guide
89
The user checks the checkboxes for both the new components to select them, then
selects the Basic tab on the right side of the window.
Figure 85 Basic Properties of the New Components
The grid in the Basic tab shows that the first new component has no properties
defined. The second new component has the same defined properties as the
component on which it was based.
The TempDep tab, as shown in Figure 86, displays the temperature-dependent
properties for the selected component, which in this case is the new component
that has no properties defined. The user can select any of the properties on this
tab, and they will all show values of zero.
User Guide
90
Figure 87 shows the Basic Properties on the Fixed tab. Again, the completely new
component has values of zero for all properties, and the new component based on
the existing component Acetic Acid has the properties of that existing component.
User Guide
91
User Guide
92
Figure 90 shows the Fixed Heat and Enery Data on the Fixed tab.
Figure 90 Fixed Heat and Enery Data of New Components
User Guide
93
To build the molecule of the new component, the user selects the UNIFAC tab, as
shown in Figure 93. The Category drop-down list offers several categories of
molecular structures, and the Group drop-down list shows the individual types.
The category names and group numbers mostly conform to the UNIFAC standard,
with a few additional items developed by SimSci. The Structure field shows a
representation of the molecular structure.
Figure 93 shows the user selecting Amide group 421 to insert into the new
component. When the user clicks the Insert Group button, the structure appears in
the lower grid.
User Guide
94
Figure 94 shows the grid after the user selected and inserted Amide group 421,
seven copies of Naphthene group 1001, and Acid group 100. To insert more than
one copy of a given group, the user clicks the.Insert Group button once, then
clicks the up and down arrows in the Group Count column of the grid.
Figure 94 UNIFAC Tab Selecting Several Groups
User Guide
95
After selecting all the groups and the quantities of each group that will form the
structure of the new component, the user clicks the Fill from Structure button.
To verify that TDM calculated the properties of the new component, the user can
select the TempDep tab again. Figure 95 shows that the properties of new
component now have values, where Figure 86 showed them empty.
Figure 95 TempDep Properties After Filling from Structure
User Guide
96
Figure 97 shows some of the critical properties of the new component, compared
to Figure 88 which shows them without value.
Figure 97 Critical Properties After Filling from Structure
When the user selects the other new component, the one created from an existing
component, the UNIFAC tab shows the structure of the original component
already loaded into the grid, as shown in Figure 98.
User Guide
97
Figure 99 shows the grid after the user selected and inserted Aromatic group 1223
and three copies of Ketone group 1322. To insert more than one copy of a given
group, the user clicks the.Insert Group button once, then clicks the up and down
arrows in the Group Count column of the grid.
User Guide
98
Afer the user clicks the Fill from Structure button, TDM calculates the properties
that are not already calculated. Figure 100 shows that TDM calculated the Rackett
property for the new component, even though Figure 92 shows that this
component did not have the Rcket property defined before.
Figure 100 Fixed Properties Calculated from Structure
User Guide
99
Glossary
TDM does not change the other properties to match the new molecular structure,
but rather keeps the existing values. To have the Fill from Structure function
recalculate any of the existing properties, the user must clear the properties in the
grids before clicking the Fill from Structure button.
Glossary
Checked Components are components checked in the component viewer. The
data for all the checked components appears in the Property form. The user can
check more than one component. The user can view and modify the data for
checked components.
Databanks are a collection of components for which all necessary data are
available, either by TDM or by the user.
Data Types The data types are a collection of different databank types. There
are two data types available - Unary and Binary.
Databank Types A databank type is useful in predicting or estimating property
data for the components. For example: A pure component databank type of Unary
data type predicts the physical and temperature dependent properties of the
component.
The other data types are useful in predicting the liquid densities, liquid activity
coefficients and equation of states of the components.
Libraries A collection of databanks. The libraries can be either system or user
libraries. TDM native libraries include the SimSci databank (SIMSCI), the
Process databank (PROCESS), and the Electrolyte databank (OLILIB).
Primary File/Library A primary library is the reference library, which TDM
refers for component names and properties. Only a system library can be set as a
Primary File.
Selected Component A component selected in the component viewer. A
selected component is highlighted. The data for the selected component is
displayed in the Property form. The user can select only one component at a time,
and can view the data only for a selected component.
User Guide
100