CHEMCAD 7 User Guide PDF
CHEMCAD 7 User Guide PDF
CHEMCAD 7 User Guide PDF
User Guide
All material © 2016 Chemstations, Inc.
CHEMCAD Version 7 User Guide
Table of Contents
Chapter 1 – Introduction to CHEMCAD ............................................................................................... 1
Overview of CHEMCAD and Its Uses ................................................................................................ 1
CHEMCAD Products and Features ................................................................................................. 3
CC-STEADY STATE ....................................................................................................................................... 3
CC-DYNAMICS ............................................................................................................................................... 3
CC-BATCH ....................................................................................................................................................... 3
CC-THERM....................................................................................................................................................... 3
CC-SAFETY NET ............................................................................................................................................. 3
CC-FLASH ........................................................................................................................................................ 3
CHEMCAD Features by Module ...................................................................................................... 4
UnitOps by Module ............................................................................................................................ 5
Chapter 2 – Getting Started with CHEMCAD ..................................................................................... 7
Creating a User Support Center Account ........................................................................................... 7
Downloading the Software ................................................................................................................... 9
Installing the software ........................................................................................................................... 9
Licensing CHEMCAD ......................................................................................................................... 12
Types of CHEMCAD Licenses ........................................................................................................ 12
License Settings ................................................................................................................................. 12
Updating a License ........................................................................................................................... 14
Getting Help with CHEMCAD .......................................................................................................... 17
Online Help ....................................................................................................................................... 17
The Chemstations Website .............................................................................................................. 17
Contacting Chemstations Technical Support ............................................................................... 17
CHEMCAD Version 7 User Guide i
Chapter 3 – The CHEMCAD Interface ................................................................................................ 19
The CHEMCAD Window ................................................................................................................... 19
The Workspace .................................................................................................................................. 19
The CHEMCAD Explorer Pane ...................................................................................................... 20
The Recent Files Tab ....................................................................................................................................... 21
The Simulation Tab ......................................................................................................................................... 21
The Visual Basic Tab....................................................................................................................................... 22
The Palette Pane ................................................................................................................................ 22
Selecting a Palette ............................................................................................................................................ 23
Changing the Color Scheme of an Existing Palette ......................................................................................... 23
Changing the Order of UnitOp Icons in a Palette ............................................................................................ 24
Removing UnitOp Symbols from a Palette ..................................................................................................... 24
Creating a Custom Palette ............................................................................................................................... 24
Copying an Existing Palette............................................................................................................................. 25
Renaming a Palette .......................................................................................................................................... 25
Using a Custom Color Scheme to Change UnitOp Symbol Colors ................................................................. 25
Resetting All Built-in Palettes to Default Configuration ................................................................................. 26
The Messages Pane ........................................................................................................................... 26
The Errors and Warnings Tab .......................................................................................................................... 26
The Run Trace Tab .......................................................................................................................................... 26
The Notes Tab ................................................................................................................................................. 27
The Main Menu ................................................................................................................................. 27
The Toolbar ........................................................................................................................................ 27
Customizing the CHEMCAD Screen ................................................................................................. 27
Viewing and Hiding Screen Elements ........................................................................................... 28
Resizing and Moving Items ............................................................................................................. 28
Resizing a Pane ................................................................................................................................................ 28
Moving a Pane ................................................................................................................................................. 29
Pinning and Unpinning Panes ........................................................................................................ 29
Flowsheet Drawing Tools ................................................................................................................... 31
The Flowsheet toolbar ...................................................................................................................... 31
The Arrange toolbar ......................................................................................................................... 32
The Lock toolbar ............................................................................................................................... 32
The Draw toolbar .............................................................................................................................. 32
The TextBox Tool ........................................................................................................................................... 33
Simple Drawing Tools: Line, Arrow Line, Ellipse, Rectangle, RoundRect .................................................... 33
The Polygon Tool ............................................................................................................................................ 33
The Align toolbar .............................................................................................................................. 34
Other Useful Interface Hints ............................................................................................................... 34
Undo and Redo ................................................................................................................................. 34
Flowsheet Quickview ....................................................................................................................... 35
ii CHEMCAD Version 7 User Guide
Introduction to CHEMCAD
Adjusting Your View of the Workspace ........................................................................................ 36
Resetting the User Interface ............................................................................................................ 36
Chapter 4 – Working with Simulation Files ...................................................................................... 37
About CHEMCAD Simulation Files .................................................................................................. 37
User Components in CHEMCAD .................................................................................................. 37
Example Files ..................................................................................................................................... 38
Opening an Existing Simulation ........................................................................................................ 38
Creating a New Simulation ................................................................................................................. 39
Saving a Simulation.............................................................................................................................. 39
Saving Different Cases for the Same Simulation .......................................................................... 40
E‐mailing a Simulation ........................................................................................................................ 41
Sending from Within CHEMCAD .................................................................................................. 41
Attaching to an E‐mail ..................................................................................................................... 41
Working with CHEMCAD Files from Previous Versions .............................................................. 42
Chapter 5 – Building and Using a Basic Simulation ........................................................................ 45
Starting a New Simulation .................................................................................................................. 45
Specifying Engineering Units ............................................................................................................. 45
Selecting Chemical Components ........................................................................................................ 46
Finding a Component ...................................................................................................................... 47
Adding a Component ....................................................................................................................... 49
Changing the Order of Selected Components .............................................................................. 49
Removing Items from the Selected Components List ................................................................. 50
Selecting K‐value and Enthalpy Options .......................................................................................... 50
Using the Thermodynamics Wizard .............................................................................................. 50
Selecting Components to Ignore ...................................................................................................................... 50
Specifying Process Conditions ........................................................................................................................ 50
How the Thermodynamics Wizard Makes Suggestions .................................................................................. 51
Should the Thermodynamics Wizard be trusted to make design decisions? ................................................... 51
Manually Selecting Thermodynamics Settings ............................................................................ 51
Drawing the Flowsheet ........................................................................................................................ 52
Adding UnitOps ............................................................................................................................... 52
Using Alternative UnitOp Symbols ................................................................................................................. 53
Manipulating UnitOp Icons ............................................................................................................................. 54
UnitOp IDs ...................................................................................................................................................... 54
UnitOp ID Ranges ........................................................................................................................................... 55
UnitOp Names ................................................................................................................................................. 55
CHEMCAD Version 7 User Guide iii
Feed and Product Arrows ............................................................................................................... 56
Drawing and Connecting Streams ................................................................................................. 56
Choosing a Stream Route ................................................................................................................................ 57
Rerouting a Stream .......................................................................................................................................... 57
Stream IDs ....................................................................................................................................................... 58
Stream ID Ranges ............................................................................................................................................ 59
Stream Names .................................................................................................................................................. 59
Stream Intersections......................................................................................................................................... 59
Defining Streams .................................................................................................................................. 60
Thermodynamic Properties ............................................................................................................. 61
Stream Composition ......................................................................................................................... 61
Total Flow Properties ....................................................................................................................... 61
Specifying Equipment Parameters ..................................................................................................... 62
Running the Simulation ....................................................................................................................... 63
Reviewing the Results .......................................................................................................................... 63
Chapter 6 – Using CHEMCAD for High‐fidelity Modeling ........................................................... 65
What is high‐fidelity modeling? ......................................................................................................... 65
Criteria for High‐fidelity Modeling ................................................................................................... 66
Introduction to Equipment Sizing ..................................................................................................... 66
High‐fidelity Modeling and Sizing for Common UnitOps ............................................................ 67
Piping .................................................................................................................................................. 67
Low-fidelity ..................................................................................................................................................... 67
Sizing ............................................................................................................................................................... 67
High-fidelity .................................................................................................................................................... 68
Pumps, Compressors, and Expanders ........................................................................................... 68
Low-fidelity ..................................................................................................................................................... 68
High-fidelity .................................................................................................................................................... 68
Vessels and Tanks ............................................................................................................................. 68
Low-fidelity ..................................................................................................................................................... 68
Sizing ............................................................................................................................................................... 69
High-fidelity .................................................................................................................................................... 69
Valves ................................................................................................................................................. 70
Low-fidelity ..................................................................................................................................................... 70
Sizing ............................................................................................................................................................... 70
High-fidelity .................................................................................................................................................... 70
Columns ............................................................................................................................................. 70
Low-fidelity ..................................................................................................................................................... 70
Sizing ............................................................................................................................................................... 71
High-fidelity .................................................................................................................................................... 72
Heat Exchangers ............................................................................................................................... 72
Low-fidelity ..................................................................................................................................................... 72
iv CHEMCAD Version 7 User Guide
Introduction to CHEMCAD
vi CHEMCAD Version 7 User Guide
Introduction to CHEMCAD
User‐specified File .......................................................................................................................... 106
Printing CHEMCAD Reports ........................................................................................................... 106
Process Flow Diagrams ..................................................................................................................... 106
Flowsheet Databoxes ...................................................................................................................... 106
Stream Boxes ................................................................................................................................................. 107
UnitOp Boxes ................................................................................................................................................ 108
TP Boxes ....................................................................................................................................................... 108
Excel Range Boxes ........................................................................................................................................ 109
Printing a Process Flow Diagram ................................................................................................. 110
Chapter 9 – Customizing CHEMCAD .............................................................................................. 111
Flowsheet Templates ......................................................................................................................... 111
Creating a Template ....................................................................................................................... 112
Viewing a Template’s Properties .................................................................................................. 112
Applying a Template ...................................................................................................................... 112
Renaming or Deleting a Template ................................................................................................ 112
Creating Custom Components ......................................................................................................... 113
Adding a Single Component ......................................................................................................... 113
Creating the Component ................................................................................................................................ 113
Regressing Data into the Component ............................................................................................................ 116
Pseudocomponent Range .............................................................................................................. 117
Importing a Neutral File ................................................................................................................ 118
Customizing Thermodynamics ........................................................................................................ 119
Creating a Custom K‐value or Enthalpy Model ......................................................................... 119
Creating a Custom Mixing Rule ................................................................................................... 120
Visual Basic Applications (VBA) ...................................................................................................... 120
Defining a Reaction, Mixing Rule, or UnitOp ............................................................................ 120
Using a VBA‐defined Reaction ..................................................................................................... 121
Using a VBA‐defined Mixing Rule ............................................................................................... 122
Using a VBA‐defined UnitOp ....................................................................................................... 122
Creating Custom UnitOp Symbols .................................................................................................. 123
Starting the UnitOp Designer ....................................................................................................... 123
Drawing and Sizing the Symbol ................................................................................................... 123
Saving the Symbol Drawing .......................................................................................................... 124
Adding and Locating Ports ........................................................................................................... 125
Specifying Ports .............................................................................................................................. 125
Publishing the UnitOp Symbol ..................................................................................................... 126
CHEMCAD Version 7 User Guide vii
Time‐saving Strategies for Creating Multiple Custom Symbols ............................................. 126
Use an Existing Drawing as a Starting Point for another UnitOp .................................................................. 126
Clone a Custom UnitOp Symbol and Change Port Configuration................................................................. 127
Saving a Published UnitOp for Later Port Reconfiguration .......................................................................... 127
Cloning from the Flowsheet with Publish to Palette...................................................................................... 128
Creating Custom UnitOps ................................................................................................................ 128
Creating a Custom UnitOp Dialog Box ....................................................................................... 129
Customized Costing Calculations .................................................................................................... 130
Chapter 10 – Data Interfaces ............................................................................................................... 131
Excel Data Mapping ........................................................................................................................... 132
Creating an Excel Data Map .......................................................................................................... 132
Data Map Execution Rules ............................................................................................................ 135
Creating Excel UnitOps ..................................................................................................................... 137
Specification Sheets ............................................................................................................................ 137
Using CHEMCAD as an OPC Server .............................................................................................. 138
OPC Applications ........................................................................................................................... 138
OPC Compliance ............................................................................................................................. 139
Enabling CHEMCAD as an OPC Server ..................................................................................... 139
Reading and Writing Values to CHEMCAD Using OPC ......................................................... 139
OPC Server Operations .................................................................................................................. 140
CHEMCAD OPC Namespace ....................................................................................................... 140
COM Interfaces ................................................................................................................................... 141
Connecting Excel and CHEMCAD: A Simple COM Interface ................................................. 141
Using the VBClient Example ........................................................................................................................ 142
A Peek under the Hood .................................................................................................................................. 142
viii CHEMCAD Version 7 User Guide
Chapter 1
Introduction to CHEMCAD
Welcome to CHEMCAD Version 7, a powerful and effective software tool for
chemical process simulation. Whether you’re a new or experienced CHEMCAD user,
you’ll appreciate the program’s user‐friendly, feature‐rich interface. Creating
flowsheets and running simulations is fast and easy with CHEMCAD, and the
program is highly customizable to fit your needs and the way you work.
This User Guide will help you get up and running with CHEMCAD, from
installation and licensing to details on using dynamics and data interfaces.
CHEMCAD Version 7 User Guide 1
Introduction to CHEMCAD
CHEMCAD combines a state‐of‐the‐art graphical user interface (GUI), an
extensive chemical component database, a large library of thermodynamic data, and
a library of the most common unit operations to give users the ability to provide
significant and measurable returns on their investment. In addition, the program is
customizable to allow custom chemicals, thermodynamics, unit operations,
calculations, and reporting—all ingredients for a powerful user experience.
CHEMCAD is capable of modeling continuous, batch, and semi‐batch processes,
and it can simulate both steady‐state and dynamic systems. This program is used
extensively around the world for the design, operation, and maintenance of chemical
processes in a wide variety of industries, including oil and gas exploration,
production, and refining; gas processing; commodity and specialty chemicals;
pharmaceuticals; biofuels; and process equipment manufacturing.
Within all of these industries, chemical engineers work every day with
CHEMCAD to address a variety of challenges:
• Initial design of new processes
• Optimization or de‐bottlenecking of existing processes
• Performance monitoring of processes
• Design and rating of process equipment such as vessels, columns, heat
exchangers, piping, valves, and instrumentation
• Evaluation of safety relief devices
• Heat exchanger sizing
• Pressure and flow balancing of complex piping networks
• Reconciliation of plant data
• Economic comparisons of process alternatives
• Advanced process control (APC), including model predictive control (MPC),
real‐time optimization (RTO), and operator training systems (OTS)
• Scale‐up of processes from lab‐scale to pilot‐scale, and from pilot‐scale to full‐
scale
• Binary interaction parameter (BIP) regression from process or lab data
• Batch reaction rate regression from process or lab data
No matter how complex your process, CHEMCAD is capable of delivering the
results you need to stay competitive in an increasingly fast and fluid global market.
Easy to learn and highly customizable, CHEMCAD can put future‐proof solutions
within easy reach of your engineering staff.
2 CHEMCAD Version 7 User Guide
Introduction to CHEMCAD
CC-STEADY STATE
The main CHEMCAD product, known as CC‐STEADY STATE, enables you to
design new processes, rate existing processes, and optimize processes in steady state.
CC-DYNAMICS
The module known as CC‐DYNAMICS makes it possible to design new and rate
existing processes using a dynamic simulation. This module is fully integrated with
CHEMCAD to make switching between steady state and dynamics easy and
intuitive. Using CC‐DYNAMICS, you can easily simulate everything from simple
vessel accumulation to complex control systems on columns. This module also
provides tools for simulation of continuous stirred‐tank reactors (CSTRs), including
complex reaction rate and pressure calculation.
CC-BATCH
The CC‐BATCH product enables you to design, rate, or optimize a batch distillation
column. CC‐BATCH includes a scheduling interface to allow an “operation step”
approach to simulation of batch columns.
CC-THERM
The CC‐THERM product lets you design a single heat exchanger, or vet a vendor’s
heat exchanger design. It is also ideal for customers who want to rate existing
exchangers in new service, or to perform calculations on hypothetical situations. CC‐
THERM can simulate shell‐and‐tube, air‐cooled, plate‐and‐frame, and double‐pipe
exchangers. Full integration with CHEMCAD makes it possible to calculate exit
conditions from exchanger geometry for high‐fidelity simulations.
CC-SAFETY NET
The CC‐SAFETY NET product provides the capability to design or rate piping
networks and safety relief devices and systems, in both steady‐state and dynamic
systems. The steady‐state features of CC‐SAFETY NET are included with CC‐
STEADY STATE. This product enables users to make simultaneous flow‐ and
pressure‐balanced simulations—even in reverse‐flow situations—for single‐ or
multi‐phase flow.
CC-FLASH
The CC‐FLASH module provides physical property and phase equilibrium data, as
well as property prediction and regression. CC‐FLASH is a subset of CC‐STEADY
STATE, and is meant for customers who do not need full flowsheet simulation tools.
CHEMCAD Version 7 User Guide 3
Introduction to CHEMCAD
CC-STEADY STATE
CC-SAFETY NET
CC-DYNAMICS
CC-THERM
CC-BATCH
CC-FLASH
VB/COM/OPC/Data Map 9 9
Sensitivity/optimization 9 9 9
Sizing (line/valve/orifice/vessel) 9 9 9
Run steady state 9 9 9 9 9
Run dynamics 9 9
Run recycles 9 9 9
Costing 9 9 9
Reconciliation 9 9
Sizing columns 9 9 9
Sizing heat exchangers 9
Economics 9 9
Reports (incl. Excel) 9 9 9 9 9 9
DIERS 9 9 9
CO2 solid 9 9 9 9
Hydrates 9 9 9 9
Depress 9 9 9 9
TOC/COD 9 9 9 9
Pure regression 9 9 9 9 9 9
BIP regression 9 9 9 9 9 9
Electrolyte regression 9 9 9 9 9 9
Rate regression 9 9
Units calculator 9 9 9 9 9 9
Execute parser 9 9
Environmental report 9 9 9 9 9 9
Simple calculator 9 9 9 9 9 9
Spec sheet 9 9 9 9 9
4 CHEMCAD Version 7 User Guide
Introduction to CHEMCAD
UnitOps by Module
The availability of certain unit operations, or UnitOps, in CHEMCAD simulations is
a function of which modules you have licensed. The following matrix lists all
available UnitOps and the CHEMCAD modules associated with them.
CC-STEADY STATE
CC-SAFETY NET
CC-DYNAMICS
CC-THERM
CC-BATCH
CC-FLASH
Baghouse filter 9 9
Batch column 9
Batch reactor 9
Calculator 9 9
Centrifuge 9 9
Component separator 9 9
Compressor 9 9 9
Control valve 9 9 9
Controller 9 9 9
Crusher/grinder 9 9
Crystallizer 9 9
Cyclone 9 9
Divider 9 9 9 9
Electrostatic precipitator 9 9
Equilibrium reactor 9 9
Excel unit 9 9
Expander 9 9 9
Fired heater 9 9
Flash 9 9 9 9
Gibbs reactor 9 9
Heat exchanger 9 9 9 9
Hydrocyclone 9 9
Kinetic reactor 9 9
Liquid/liquid extractor 9 9
LNGH exchanger 9 9
Loop 9 9
Membrane 9 9
CHEMCAD Version 7 User Guide 5
Introduction to CHEMCAD
CC-STEADY STATE
CC-SAFETY NET
CC-DYNAMICS
CC-THERM
CC-BATCH
CC-FLASH
Mixer 9 9 9 9
Node 9 9 9
PID controller 9 9 9
Pipe simulator 9 9 9
Polymer reactor
Pump 9 9 9
Ramp controller 9 9 9
Relief device 9 9
Run subflowsheet META unit 9 9
SCDS distillation column 9 9
Screen 9 9
Sedimentator 9 9
Shortcut column 9 9
Solids dryer 9 9
Solids washer 9 9
Stoichiometric reactor 9 9
Stream reference 9 9
Tank 9
Time delay 9 9
Time switch 9 9
Tower distillation column 9 9
Tower plus distillation column 9 9
User-added module 9 9
Vacuum filter 9 9
Valve 9 9 9
Venturi scrubber 9 9
Vessel 9 9
Vessel reactor 9 9
6 CHEMCAD Version 7 User Guide
Chapter 2
Getting Started with CHEMCAD
To start using CHEMCAD, you’ll need to obtain the software, install it on your
computer, and set up a valid software license. This chapter provides step‐by‐step
instructions for these tasks.
Before you begin, please ensure that your PC meets the minimum system
requirements, as listed below. It’s also a good idea to find out whether your copy of
CHEMCAD will rely on a network license; if it will, make sure to ask your network
administrator for all the
information that you’ll need
CHEMCAD System Requirements when installation is complete
Processor speed: 500 MHz or higher and it’s time to set up
Operating system: Windows Vista, 7, 8, or 10 licensing.
(all 32- and 64-bit versions)
If you’ll be using a
RAM: 256 MB
hardware dongle to license
Video card: 128 MB or higher video memory
CHEMCAD, make sure the
Display resolution: 1024 x 768 or higher
dongle is inserted into a USB
Hard disk space: 750 MB
port before you attempt to run
Productivity software: Some features require
the program.
Microsoft Office®
To obtain the CHEMCAD
installation file, you’ll need a
live Internet connection and a web browser. You can either download the file
directly onto the system where you plan to install CHEMCAD, or download the file
and place it onto a portable drive for installation on a different computer. In either
case, the download process requires that you log into Chemstations’ User Support
Center.
CHEMCAD Version 7 User Guide 7
Getting Started with CHEMCAD
Figure 2-01: Clicking the Sign in link on the Support Center screen
3. On the My Support page, click the Forgot your password? link, located below
the Sign in button.
Figure 2-02: Clicking the Forgot your password? link on the My Support page
4. On the next screen, enter a valid e‐mail address, and click the Reset my
password button. Be sure to use your company address, as the login system will
match your address against our customer database.
5. If your address is found, you will receive an e‐mail from CHEMCAD Technical
Support, offering a link to reset your password. Follow the instructions in the e‐
mail and at the password reset screen to complete your registration.
Note: In the event you do not receive a password reset e‐mail within 24 hours, your
address may not have been found in our database. Please contact Chemstations
Technical Support ([email protected]) for assistance.
8 CHEMCAD Version 7 User Guide
Getting Started with CHEMCAD
Figure 2-03: The CHEMCAD Suite 7 – InstallShield Wizard screen
Click Next to begin the installation process. The License Agreement screen
appears, listing the terms of the CHEMCAD standard license. Once you’ve read and
understood the license terms, you’ll need to click the I accept the terms in the license
agreement button before you can click Next to proceed. Note that you have the option
to print a copy of the license agreement from this screen.
Figure 2-04: The License Agreement screen
CHEMCAD Version 7 User Guide 9
Getting Started with CHEMCAD
The Destination Folder screen appears next, displaying the name of the folder
into which the CHEMCAD files will be installed by default. Normally, this
destination is C:\Program Files\Chemstations\CHEMCAD (or some variation, based
on your version of Windows), and it is recommended that you use this location
unless you have a specific need to install the program elsewhere. Click the Change
button if you want to change the file destination, or click Next to accept the
suggested destination and proceed.
Figure 2-05: The Destination Folder screen
The Setup Type screen now appears, offering a choice between complete and
custom installation. Each type of installation is described on the screen. Either accept
the default setting of Complete or click Custom to select specific components to
install, then click Next to proceed.
Figure 2-06: The Setup Type screen
This brings you to the Ready to Install the Program screen. Note that on this
screen, and in fact on any screen in the installation process, you can click Back to
return to a previous screen and verify or change your installation options. If you are
satisfied with your settings as they are, click Install to start the installation.
10 CHEMCAD Version 7 User Guide
Getting Started with CHEMCAD
Figure 2-07: The Ready to Install the Program screen
The Installing CHEMCAD Suite screen appears, showing the progress of your
installation with a green status bar.
Figure 2-08: Status bar showing the progress of CHEMCAD installation
During installation, you may notice a second, smaller installation window that
pops up. This shows the progress of various software components that are being
found and installed so that CHEMCAD installation may proceed. To ensure
successful completion of the install procedure, be sure to leave this window open; it
will close automatically when all components are in place.
Figure 2-09: Software component installation message
When installation is complete, you’ll see one final screen, which states that the
InstallShield Wizard has completed installation of the CHEMCAD Suite. Click
Finish to close the installer window.
CHEMCAD Version 7 User Guide 11
Getting Started with CHEMCAD
Figure 2-10: The InstallShield Wizard Completed screen
Licensing CHEMCAD
Before you can use CHEMCAD, you’ll need to set up a licensing scheme of some
type. Depending on your particular licensing agreement, you will use one of several
types of licenses to run CHEMCAD.
License Settings
To run CHEMCAD for the first time, make sure that your dongle (if applicable) is
plugged in properly, and then start the program. From the Windows Start menu,
select All Programs > Chemstations > CHEMCAD 7.
12 CHEMCAD Version 7 User Guide
Getting Started with CHEMCAD
Note: A Standard License screen appears only the first time that you run
CHEMCAD after installation. After you have reviewed the license agreement, click
Yes to continue.
The program opens, displaying a CHEMCAD splash screen. After a few
moments, this screen is replaced by the CHEMCAD License Monitor dialog box,
which displays information about the license(s) that your computer is using to run
CHEMCAD.
Figure 2-11: The CHEMCAD License Monitor, displaying licenses from a local hardware dongle
Note: In some cases, the CHEMCAD screen that appears may display a No License
Found message, which indicates that CHEMCAD has not yet detected a valid license.
If your computer is experiencing slow communication with the license server
system, CHEMCAD may simply need more time to detect the license(s). As soon as
any valid license is found, CHEMCAD will display the CHEMCAD License Monitor
screen.
Normally, this dialog box remains in view for only a few seconds, listing all
product licenses that CHEMCAD has obtained. During that time, you can click
anywhere in the dialog box to keep it open. If you do not click in the dialog box, it
disappears from view, but you can bring it back up at any time by selecting Tools >
Options > Licensing.
While the CHEMCAD License Monitor dialog box is open, you can view the
various CHEMCAD licenses detected for your system and see what method (and
where applicable, which server) is being used to obtain those licenses. If your
organization uses RMS License Manager or a SuperProNet hardware key, you can
also see which other users currently hold various product licenses.
For network licenses, you can right‐click a server name under a particular
product and select a licensing preference (on demand, always, or never) as shown
below.
CHEMCAD Version 7 User Guide 13
Getting Started with CHEMCAD
Figure 2-12: Selecting a network licensing preference
You can use the always or never setting to turn licensing for a product absolutely
on or off, respectively. The on demand setting secures a license only when you begin
to use a specific CHEMCAD feature controlled by a certain product. This setting is
ideal in most situations, as it leaves unused licenses available for other users.
To close the CHEMCAD License Monitor screen, click the Continue button, or
click the X in the top right corner of the screen.
Updating a License
CHEMCAD dongles require re‐programming on a regular basis—either once a year
or more often, depending on your licensing agreement. This is a security measure to
reduce the likelihood that your dongle will be stolen and misused.
The dongle that you use is programmed to work only through the licensed time
period, and when that time has elapsed, the dongle must be updated before you can
continue using CHEMCAD.
Updating a dongle is a relatively simple procedure. Before your license
expiration, you or your software administrator should receive an e‐mail from
Chemstations, with what’s known as a configuration file included as an attachment.
You should save this file to your Windows desktop as soon as you receive it.
Note: If you’ve updated the same dongle in the past, the new configuration file
should have the exact same file name as the previous one. If, while saving the file to
your desktop, you see a Windows message about an existing file with the same
name, you should overwrite the old file (which in any case cannot be used again),
replacing it with the new one.
It’s important to ensure that your configuration file matches your dongle. The
configuration file should be a .DNG file whose name includes a four‐ or five‐digit
code; this code must match the number stamped onto your dongle. If the numbers
14 CHEMCAD Version 7 User Guide
Getting Started with CHEMCAD
don’t match, contact your software administrator or Chemstations support to resolve
the issue.
The update e‐mail also specifies the date on which you’ll need to update your
dongle. Before that date arrives, follow this procedure to perform the update:
1. Start the CHEMCAD program and select Tools > Options > Licensing. This
brings up the CHEMCAD License Monitor dialog box, which displays the
status of all applicable CHEMCAD product licenses, along with your dongle
type and number.
Figure 2-13: The CHEMCAD License Monitor dialog box
2. Click the Setup button to bring up the License Setup dialog box, then click
Update dongle as shown below.
Figure 2-14: Clicking Update dongle within the License Setup dialog box
3. The dialog box now lists all licensing dongles and displays a field for
entering the full path and file name for the dongle update file. Click the
Browse button to navigate to the update file.
CHEMCAD Version 7 User Guide 15
Getting Started with CHEMCAD
Figure 2-15: Browsing for the dongle update file
4. In the Open dialog box, navigate to the location where you saved the .DNG
configuration file. Normally, this is the Windows desktop; if you saved your
configuration file there, click Desktop to tell CHEMCAD where to look for
the file, then click Open.
5. The License Setup dialog box now displays the directory path and file name
for the selected .DNG file. Click OK to update the dongle.
Figure 2-16: Updating the dongle with the selected update file
6. CHEMCAD re‐programs the dongle, and then displays a pop‐up window
stating that the update is complete.
Figure 2-17: Successful re-programming of a CHEMCAD dongle
7. Click OK to close the pop‐up window. If the CHEMCAD License Monitor
screen appears, click Continue to close it.
You should now be able to proceed normally in CHEMCAD.
16 CHEMCAD Version 7 User Guide
Getting Started with CHEMCAD
Online Help
At any time while running CHEMCAD in an active window, you can press the [F1]
key to bring up the CHEMCAD Help screen that’s most appropriate to the task you
are currently performing or the dialog box currently displayed.
In some situations, pressing [F1] will bring up the main CHEMCAD Help
window instead of a particular help screen. From there, you can click the Contents,
Index, or Search tab in the upper left corner of the CHEMCAD Help window, and
use these tools to find the information you need.
You can also go directly to the main CHEMCAD Help window by selecting Help
> Help Topics from the CHEMCAD main menu. Regardless of how you open
CHEMCAD Help, it always opens in a separate window that does not interfere with
the operation of the CHEMCAD program.
CHEMCAD Version 7 User Guide 17
Getting Started with CHEMCAD
18 CHEMCAD Version 7 User Guide
Chapter 3
The CHEMCAD Interface
This chapter takes you on a tour of the CHEMCAD screen, including the menus and
toolbars, the main areas of the screen, and the flowsheet drawing tools. It also shows
you some ways that you can customize the screen and various features so that they
best suit your own way of working.
Workspace
CHEMCAD
Explorer pane
Palette pane
Messages pane
Figure 3-01: The full CHEMCAD program window
CHEMCAD Version 7 User Guide 19
The CHEMCAD Interface
The Workspace
The area in the middle of the screen is known as the workspace. This is the main focus
of the CHEMCAD window, the place where you’ll build and edit flowsheets, view
graphs, and run and tweak process simulations.
When you first launch CHEMCAD, the workspace is solid white. When you start
to build a flowsheet or open an existing simulation, the flowsheet displays in the
workspace.
The workspace uses tabs to enable you to switch between an open simulation and
any related features, such as Excel Data Maps, reports, and plots. At the bottom of
the workspace area, you’ll see one or more tabs whenever a simulation is open.
Each tab includes a button marked with an X; to close any tab, simply click that
tab’s X button.
Figure 3-02: The bottom of the workspace area, showing several tabs and their X buttons
Note that any time you’ve closed a simulation and haven’t yet opened another
file, the workspace displays as a blank gray space.
Figure 3-03: CHEMCAD Explorer tabs
The CHEMCAD Explorer tabs are presented in a tree format, with items
organized into a multi‐level hierarchy. The default view shows only top‐level items,
but you can expand each item to view second‐level items, third‐level items, and so
forth.
At the left of each top‐level item is a small box with a plus sign. To expand an
item, click the plus sign. Two things happen simultaneously when you click: the tree
expands to show that item’s contents, and the plus sign becomes a minus sign. You
can hide (or collapse) the lower‐level items again by clicking the minus sign, which
then turns back into a plus sign. Figure 3‐04 shows an example of a CHEMCAD
Explorer item in collapsed and expanded view.
20 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Figure 3-04: Clicking the plus sign to expand an item (left); the resulting view (right)
Expanding and collapsing items in the CHEMCAD Explorer tabs is one way that
you can make the best use of your screen space when working in CHEMCAD.
CHEMCAD Version 7 User Guide 21
The CHEMCAD Interface
• Saved Charts: Provides quick access to previously‐saved charts for this
simulation
• Groups: Provides an easy way to categorize UnitOps, streams, and
components
• Templates: Stores and organizes stream and UnitOp specifications that you
can “clone” for re‐use
Expand any of these items to see and use specific features, which are described in
further detail in the appropriate chapters of this user guide.
22 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Selecting a Palette
To select a palette, simply click its title bar. The selected palette expands in place, as
shown in Figure 3‐05.
Figure 3-05: The expanded Reactors palette
Figure 3-06: A Tower Plus icon in (left to right) Grayscale, System Color, and Wireframe color
schemes
You can apply a color scheme to any built‐in UnitOp palette, to determine the
appearance of any new UnitOps you add from that palette to a flowsheet.
Before you apply a color scheme to a palette, first ensure that the desired palette
is open. Then click the current color scheme name, which is displayed next to the
palette name; this will cause a selection list to drop down. Simply click a color
scheme name to switch to that scheme.
Once you have applied a color scheme to a palette, the icons you drag from that
palette onto the flowsheet will look just like the examples on the palette. Changing
CHEMCAD Version 7 User Guide 23
The CHEMCAD Interface
the color scheme of a palette does not affect any icons previously dragged onto the
flowsheet from that palette.
Note: Before you attempt to rearrange symbols on a palette, make sure that the Lock
Palette feature is turned off. Normally, this setting protects you from unintentionally
moving symbols around when you are placing items onto a flowsheet.
To turn the feature on or off, right‐click any palette’s title bar and look for the Lock
Palette menu item. A check mark indicates that the feature is turned on; simply click
to clear the check mark and unlock all palettes. It’s a good idea to return palettes to a
locked state when you are not actively editing them.
To move a UnitOp symbol to a new location on the palette, click and drag the
symbol. Release the mouse button when the symbol is situated where you want it.
Other symbols on the palette will shift their positions to make room for the newly
placed item.
24 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Renaming a Palette
To change the name of any palette, first open the palette in question. Then right‐click
the palette heading and select Rename. In the Rename Palette box, type the name
you want to use for the palette and click OK. The palette will now display the new
name.
Note: The Rename command is very useful when you have just created a new
custom palette, as the initial name for all new palettes is New.
Note: Using two colors gives the symbol a three‐dimensional appearance; to create a
flat look, choose the same color for the primary and secondary options.
Figure 3-07: Default Grayscale colors in the Edit Color Scheme dialog
Choose new colors and then click OK. The symbol appears with the colors you
selected on the current palette.
CHEMCAD Version 7 User Guide 25
The CHEMCAD Interface
Figure 3-08: The standard Equilibrium Reactor symbol with (from left) Grayscale, System Color,
two-tone custom, and single custom coloring
Repeat this process for any other UnitOp symbols for which you want to create
custom colors. The changes you make in a custom color scheme will affect only those
palettes to which you assign the scheme.
You can remove a custom color scheme simply by right‐clicking any palette
heading and selecting Delete Color Scheme > [scheme name]. Before you do this, be
sure the scheme you are deleting is not currently in use by any palettes.
26 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
The Toolbar
The CHEMCAD toolbar provides buttons that are common to most Windows
applications, such as New, Open, Save, and Print, along with buttons that are
specific to chemical process simulation.
To discover the use of a particular button, simply point your mouse cursor at the
button and watch for the tooltip to appear, as shown in Figure 3‐09.
Figure 3-09: Viewing a button’s tooltip
Toolbar buttons provide quick, one‐click access to frequently‐used commands
that are also available via the CHEMCAD menus.
CHEMCAD Version 7 User Guide 27
The CHEMCAD Interface
If having all of these items visible leaves you less workspace than you would
prefer, or if the location of one or more panes is less than optimal for the way that
you work, you can hide or move panes to customize your CHEMCAD screen.
Resizing a Pane
The simplest way to alter the appearance of a pane is to resize it. You can make the
CHEMCAD Explorer and Palette panes wider or narrower, or make the Messages
pane shorter or taller, by moving the inside edge, or wall, of the pane toward or
away from the edge of the main window.
To resize a pane, start by positioning your mouse cursor at the inside wall of the
pane—that is, the right edge of the CHEMCAD Explorer pane, the left edge of the
Palette pane, or the top edge of the Messages pane. When the cursor is in the correct
position for resizing, the normal pointer will be replaced with a two‐headed arrow
as shown in Figure 3‐10.
28 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Figure 3-10: The two-headed arrow cursor used for resizing panes
When you see the two‐headed arrow, click and drag in the direction you want to
move the pane wall. A thick gray line shows a preview of the new pane size; when
you release the mouse button, the resized pane appears.
Moving a Pane
In addition to resizing, you can also move any of the panes in the CHEMCAD
window, either to a different edge of the screen or to the middle of the screen. You
can also move groups of buttons from their default positions on the toolbar.
Initially, all of the panes and button groups are docked, meaning that they are
“snapped into” an edge of the screen or the toolbar area. When you undock an item,
you can put it in the location of your choosing, away from the screen edge.
To undock a pane, click and drag the pane’s title bar, that is, the blue bar at the
top of the pane that shows the pane name. To undock a button group, you’ll need to
click and drag the row of four dots running along the left edge of the leftmost button
in the group.
Note: In the case of the Messages pane, the title bar runs along the left edge of the
pane in its default docking position.
If you drag the pane or button group into the workspace area, you’ll see a gray
box representing the position the item will occupy when you release the mouse
button. If you don’t like the new position, you can click the item’s title bar and drag
it elsewhere, including its original position.
You can also dock a pane to a different edge of the screen, or move button
groups around within the toolbar area, instead of undocking these items.
CHEMCAD Version 7 User Guide 29
The CHEMCAD Interface
These two panes can take up a fair amount of horizontal screen space, and
making them very narrow isn’t an ideal way to work. Pinning and unpinning
provide a way to view full‐width CHEMCAD Explorer and Palette panes when you
need these tools, while also freeing up space when you aren’t using them.
Whenever either of these panes is docked at an edge of the screen, it is in one of
two states:
• Pinned, meaning that the pane is always visible
• Unpinned, meaning that the pane is mostly hidden from view, and appears only
on demand
By default, all CHEMCAD panes are initially pinned in place. You can choose to
unpin a pane if you prefer to have some extra space on the screen. To unpin a pane,
find the tiny pushpin icon in the pane’s title bar, next to the X icon that enables you
to close the pane. If the pane is stationary, you’ll see that the pin is upright with its
point down.
Figure 3-11: The icon indicating a pinned, or stationary, pane
If you click the pin icon, the pane suddenly disappears from view—but it isn’t
gone. Instead, a small gray tab bearing the name of the palette appears at the edge of
the screen where the pane is docked. To see the pane reappear, you only have to roll
your mouse over that tab. When the pane appears, you’ll notice that the pushpin
icon is now pointed to the side. Use the tools on the CHEMCAD Explorer or Palette
normally; then, when you no longer need the pane, just move the mouse pointer
elsewhere. The pane will automatically hide itself until the next time you roll the
mouse over the tab.
Figure 3-12: An unpinned pane in use; note the sideways pin icon
To re‐pin an unpinned pane, point to the tab to make the pane appear and then
click the pin icon. The pin turns so that it is once again upright, and the pane is once
again a permanent fixture on the CHEMCAD screen.
30 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Figure 3-13: The Flowsheet toolbar (Grid, Snap to Grid, Snap to Center)
You can turn on a workspace grid to use as a guide while creating your
flowsheet. Select View > Grid Visible to toggle this feature on or off, or use the Grid
toolbar button.
The option called Snap to Grid can help with alignment of objects on the
flowsheet. When this option is turned on, items that you move on the workspace will
align themselves with the nearest vertical and horizontal grid lines. Again, use the
View menu to access this option, or click the Snap to Grid button on the toolbar to
toggle the option on or off.
Selecting View > Change Grid Size brings up the Grid dialog box, which enables
you to customize the look and spacing of the grid lines when the grid is turned on.
Finally, the Snap to Center feature helps you to neatly line up flowsheet
elements relative to one another. When this option is turned on, items that you move
around on the workspace will show when they are centrally aligned with nearby
objects, as indicated by a blue dotted line.
Figure 3-14: The Snap to Center feature in action, showing when objects are centrally aligned
CHEMCAD Version 7 User Guide 31
The CHEMCAD Interface
Figure 3-15: The Arrange toolbar: (Rotate left, Rotate right, Flip horizontal, Flip vertical, Bring
to front, Send to back)
Figure 3-16: The Lock toolbar (Lock Flowsheet Elements, Unlock Flowsheet Elements)
To lock a specific object in place, select that object (stream, UnitOp, text box,
drawn object) and then click the Lock Flowsheet Elements button. Now, when you
click the locked object, you’ll see small yellow lock icons instead of the usual green
sizing handles. To unlock the object, simply select it and click Unlock Flowsheet
Elements.
Figure 3-17: A heat exchanger as it appears when locked (left), and when unlocked (right)
You can change the lock status of objects individually, or select a block of items
on a flowsheet and change the all with one click of the lock or unlock button.
To lock or unlock the entire flowsheet, simply click into a blank area of the
workspace to ensure that nothing is currently selected, then click the desired locking
button. This approach affects all items currently on the flowsheet; if you add more
items, they will be unlocked at first by default.
32 CHEMCAD Version 7 User Guide
The CHEMCAD Interface
Figure 3-18: The Draw toolbar (Line, Arrow line, Polygon, Ellipse, Rectangle, RoundRect,
TextBox)
a second time to create the first side of your polygon. After the second click, you’ll
begin to see the open area being created. Continue moving the cursor and clicking
until you are ready to place your last point, and then double‐click to complete the
shape and turn off the Polygon tool.
Note that you can hold down the [SHIFT] key while using the Polygon tool to
create a right triangle.
Figure 3-19: The Align toolbar (Group, Ungroup, Align Left, Align Top, Align Bottom, Align
Right, Align Middle, Align Center, Space Across, Space Down)
To see these tools in action, imagine that you’ve started a flowsheet by placing
three Feed arrows on the workspace, somewhat randomly. You can select them all
and click Align Left to line them up precisely. Then select them again and click
Space Down to distribute them evenly within the vertical space.
Figure 3-20: Feed arrows (left to right) randomly placed, left-aligned, and evenly distributed
Now that the arrows are arranged the way you want, you can select them one
more time and click Group; this will ensure that they remain in the same position
relative to one another if they are ever moved.
Grouped objects will appear highlighted all together if you click on any object in
the group. To separate grouped objects, simply click anywhere on the group to
highlight it and then click Ungroup.
command to reverse the last change you made; simply select Edit > Undo, or use the
key combination [CTRL‐Z].
You can use the Undo command to retract up to the last 99 actions that you
performed since the last time you opened the current simulation file.
Flowsheet Quickview
The Flowsheet Quickview feature is turned on by default when you install
CHEMCAD. This handy tool enables you to see a quick data ‘snapshot’ for any
stream or UnitOp on a flowsheet, without even clicking the mouse.
To use this feature, simply hover the mouse over any part of a stream line or
UnitOp symbol. This brings up a pop‐up window with relevant data for that
particular stream or UnitOp.
Figure 3-21: Quickview pop-up windows for a distillation column (left) and a product stream
By default, the Quickview window for streams includes temperature and
pressure, stream enthalpy, mole vapor fraction, and overall flow rate, plus
composition flow rates. You can customize the stream information displayed in the
Quickview window using property sets, which are discussed in detail in Chapter 8,
Output and Reports.
For UnitOps, Quickview displays key parameters about the equipment, and in
some cases about the streams entering and exiting the equipment, depending on the
UnitOp type.
To turn off the Quickview feature, select View > Flowsheet Settings > Flowsheet
Quickview, or simply click the Flowsheet Quickview button on the toolbar.
Figure 3-22: The Flowsheet Quickview button
CHEMCAD Version 7 User Guide 35
The CHEMCAD Interface
36 CHEMCAD Version 7 User Guide
Chapter 4
Working with Simulation Files
All of the work that you do with CHEMCAD is stored in simulation files. Each
discrete simulation is packaged into a single file that is portable and easy to handle.
All the details of the simulation—from UnitOp specifications to stream composition
to thermodynamics—are included in this file. This chapter describes the various
ways that you can access and manage CHEMCAD simulation files.
Figure 4-01: CHEMCAD 7 files in the My Simulations directory
CHEMCAD Version 7 User Guide 37
Working with Simulation Files
Example Files
Especially if you’re new to CHEMCAD, it’s a good idea to open and practice
working with some example files before creating your own simulations. For this
purpose, we’ve created numerous examples of simulations for typical chemical
processes. You can open, view, and edit any example file, and even save a copy in
another location to jump‐start a simulation of your own.
The CHEMCAD example files are automatically copied to your computer with a
complete CHEMCAD installation. The examples are organized by process type and
located in the \My Documents\My Simulations\Examples directory.
Note: An alternative method for opening a simulation file is simply to drag and drop
the simulation’s filename from a Windows Explorer window onto the CHEMCAD
workspace.
If you use CHEMCAD on a network and share files with other users, it’s possible
that you could try to open a simulation that is already open for editing by another
user. If you should attempt to open a simulation that is unavailable for editing, a
message box will appear. You can choose to save the simulation with a new name
and/or location, open a read‐only copy of the simulation, or cancel the open
operation.
38 CHEMCAD Version 7 User Guide
Working with Simulation Files
Figure 4-02: Notification that a simulation is already in use
If you should have trouble locating a particular simulation, you can search your
hard drive or network for all files with a .CC7 file extension.
Saving a Simulation
To save all changes in a simulation that you have already named, select File > Save
or click the Save button on the toolbar. You can also press [CTRL + S] on the
keyboard to save the file.
Note: In some cases, such as the built‐in CHEMCAD example files, existing files may
be set as read‐only to prevent accidental overwriting. You can save a copy of a read‐
only file using a different file name and/or file location.
To save a new simulation that you haven’t yet named, select File > Save As. The
Save As dialog box appears, with CHEMCAD 7 (*.cc7) as the default file type. Leave
the file type as it is, give the file a unique name, and if necessary navigate to a new
file location. Click Save to close the dialog box and return to the saved simulation.
CHEMCAD Version 7 User Guide 39
Working with Simulation Files
Figure 4-03: Giving a new simulation a unique name
Note: Any changes you make to a simulation are not saved until you use the Save or
Save As command. This enables you to choose which changes to save or discard.
Saving and storing all of your simulations in the same main directory helps
prevent the lost time and frustration that can result when files are scattered in
different locations. It is recommended that you store your simulations in the My
Simulations directory, which is created automatically within My Documents when
you install CHEMCAD.
40 CHEMCAD Version 7 User Guide
Working with Simulation Files
E-mailing a Simulation
Sending a simulation file via e‐mail is quick and easy. You can either send a
simulation from within the CHEMCAD screen or attach the simulation file from
within an e‐mail program.
Figure 4-04: E-mailing directly from the CHEMCAD window
You can now enter your recipient information and add any message text, then
send the message. It’s a good idea to check the attachment information to see the size
of the simulation file, as these files can in some cases be quite large.
Attaching to an E-mail
You can also e‐mail any simulation that is stored on a local hard drive or network
without opening CHEMCAD. This comes in handy if you are working on a
computer or other device where you do not have access to a local e‐mail program, or
one where CHEMCAD is not currently installed.
To do this, simply create a new message, using your web mail or other e‐mail
account. Then use the e‐mail program’s command for attaching a file. Navigate to
the directory where the simulation is located, select the appropriate .CC7 file, and
add the file as an attachment before sending.
CHEMCAD Version 7 User Guide 41
Working with Simulation Files
Figure 4-05: Adding a .CC7 file as an attachment in MS Outlook
Figure 4-06: Converting a CHEMCAD 6 file to the .CC7 format
42 CHEMCAD Version 7 User Guide
Working with Simulation Files
Note: By default, an imported simulation will use the standard CHEMCAD 7 UnitOp
symbols in place of those used in CHEMCAD 6. If you leave this setting as it is, all
standard CHEMCAD 6 UnitOp symbols will be mapped to the corresponding
CHEMCAD 7 symbols, in the default Grayscale color scheme. Any custom symbols
will be recreated on the new file’s flowsheet. If you prefer to see CHEMAD 6‐style
UnitOp symbols, change the selection to Do not use CHEMCAD 7 UnitOp symbols
before proceeding.
Click Save to bring up the Save As dialog box, where you can either keep or
change the file’s name and select a location for the new CHEMCAD 7 copy. Click
Save to create and open the new file.
To import a simulation file that was created with CHEMCAD 5, you must first
open and save that file using CHEMCAD 6, and then bring the file into CHEMCAD
7 using the method described here.
CHEMCAD Version 7 User Guide 43
Working with Simulation Files
44 CHEMCAD Version 7 User Guide
Chapter 5
Building and Using a Basic Simulation
The types of simulations you can create using CHEMCAD are many and varied, but
the basic procedure for creating a simulation can be broken down into the following
common steps:
1. Start a new simulation.
2. Specify engineering units for the simulation.
3. Select chemical components for the process.
4. Select K‐value and enthalpy options for the process.
5. Draw the flowsheet with appropriate streams and unit operations.
6. Define the feed streams used in the process.
7. Enter specifications for the unit operations.
8. Run the simulation.
9. Review the results of the simulation.
CHEMCAD Version 7 User Guide 45
Building and Using a Basic Simulation
Figure 5-01: The Select components button
46 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
Figure 5-02: The Select Components dialog box
The Available Components column lists the contents of the CHEMCAD
component database, while the Selected Components column lists the components
currently included in this simulation. For a new simulation, the Selected
Components list is empty at first.
Every chemical that will be part of the process, whether it’s a feed stream,
product, or utility, must be listed on this simulation’s component list.
Finding a Component
Because of the large number of components in the CHEMCAD component database,
scrolling up and down the list of available components can be time‐consuming. To
find a specific component quickly, use the Search field at the bottom of the Select
Components dialog box.
Type the name of the chemical you want to find in the Search field. With each
letter that you type, CHEMCAD suggests possible matches in the Available
Components list. In the following example, typing the letters wa in the Search field
has highlighted the Water component.
CHEMCAD Version 7 User Guide 47
Building and Using a Basic Simulation
Figure 5-03: Using the Search field to locate the Water component
Note that in some situations, the first result may not be the one you want. For
example, typing ethane in the Search field brings up the Methane component at
first. To see the next match for your text, click Next; continue clicking this button as
needed until you find the desired component.
The Search field accepts both text and numeric entries. By default, CHEMCAD
will search for your entry among all chemical names, chemical formulas, and
CHEMCAD database IDs; if you like, you can also search by CAS number. To turn
any of these search options on or off, click the Options button below the Search field.
This brings up the Search Options dialog box, where you can specify which data to
include in your component searches.
Figure 5-04: Selecting which data to include in component searches
Note: You can add your own custom components to the CHEMCAD component
database. For more details about this feature, see Chapter 10, Data Interfaces.
48 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
Adding a Component
Once you’ve located the component you want in the Available Components list,
simply double‐click the component to add it to the Selected Components list for your
simulation.
You can also select multiple components in the Available Components list and
then click the right arrow button, located between the two columns, to add all of the
selected components to your simulation. To select multiple components, use
Windows’ standard selection methods of holding down [SHIFT] to select contiguous
items or holding down [CTRL] to select non‐contiguous items.
Figure 5-05: Adding multiple components using the right arrow button
If you would like to duplicate the component list from an existing simulation,
click Copy From Another Simulation. In the resulting Open dialog box, navigate to
the desired simulation, select that simulation, and click Open. The Selected
Components list is now populated with the components used in the simulation you
selected; you can add or delete items to customize the list.
CHEMCAD Version 7 User Guide 49
Building and Using a Basic Simulation
50 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
Figure 5-06: The Thermodynamic Settings button on the toolbar
2. This opens the Thermodynamic Settings dialog box. Start by determining,
based on your process knowledge, whether your system has two liquid
phases or a single liquid phase. In the Global K‐value Model field, select a
method that can calculate the phase behavior relevant to your system.
CHEMCAD Version 7 User Guide 51
Building and Using a Basic Simulation
3. Based on the specific circumstances of your process, make any needed
alterations to the options displayed on the K‐value Models tab. Note that the
options appropriate to your selected K‐value method are displayed in black,
while irrelevant options are displayed in gray.
Note: When you change the Global K‐value Model selection, CHEMCAD
may automatically update the Global Enthalpy Model setting as
appropriate. If this happens, you will see a message on the K‐value Models
tab. You can change the selected enthalpy model by making a new selection
in the Enthalpy Models tab.
4. Click the Enthalpy Models tab, select the most appropriate model in the
Global Enthalpy Model field, and make any other changes to the options on
this tab as needed for your process.
5. Click the Transport Properties tab and verify that the settings there are
appropriate for this simulation. Change any settings as needed and then click
OK to close the Thermodynamic Settings dialog box.
6. If you’ve made any changes, a message box appears: All streams should be
reinitialized. Proceed with reinitialization? Click Yes to reinitialize all streams
now, or No if you’d prefer to wait and reinitialize the streams later.
Adding UnitOps
Start by adding UnitOp symbols for the equipment that will be part of your
simulation. The tools for adding UnitOps to a flowsheet are located in the Palette
pane, which by default displays on the right margin of the CHEMCAD window.
This pane offers specialized palettes for UnitOp categories such as Heat
Exchangers and Reactors, but the default palette view is All UnitOps, which displays
all of the available UnitOp icons at once.
Note: If you do not at first see the Palette pane, it may have been turned off. To
restore this pane, select View > Palette from the main menu. If the pane is turned
on but you only see the word Palette sideways in the upper right corner of the
screen, the pane is unpinned; see Chapter 3, The CHEMCAD Interface, for
information about pinning and unpinning panes.
To place a UnitOp icon on your flowsheet, follow these steps:
52 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
1. On the All UnitOps palette, find the appropriate UnitOp symbol for the
equipment you want to represent. If you are unsure about which UnitOp best
fits your purposes, you can see a brief pop‐up description of any palette item
by hovering your mouse pointer over its symbol.
2. Click the symbol and drag it onto the workspace where you want to place the
UnitOp. When you release the mouse button, the UnitOp symbol appears
where you clicked.
Note: Items that are already in place on the flowsheet will not be affected when
you select a new default symbol for a UnitOp.
To view the symbols available for a given UnitOp, right‐click the current symbol
on the palette. A subpalette will pop up, displaying all available symbols.
Figure 5-07: Viewing the subpalette for the Divider UnitOp
From a subpalette, you can drag any symbol onto the flowsheet, just like the
symbols on the main palette. When you do this, the selected symbol appears on the
flowsheet and the subpalette automatically closes.
To change the default symbol for a UnitOp, first right‐click to open the
subpalette, then hold down the [CTRL] key and click the symbol you want to use.
After you do this, the symbol you selected appears on the main palette. You can
change the default icon for a UnitOp as often as you like.
CHEMCAD Version 7 User Guide 53
Building and Using a Basic Simulation
UnitOp IDs
When you place UnitOps on a flowsheet, CHEMCAD assigns each one an ID
number that is unique within the simulation. The UnitOp number is a vital identifier
for the unit, and is used in various reports and charts as you work with the
simulation.
The UnitOp ID is displayed in an oval, easily distinguishable from the
rectangular boxes used to display Stream IDs.
Figure 5-08: A UnitOp symbol with its ID oval
The default position of a UnitOp ID is just above and to the left of the unit’s
flowsheet symbol. If you subsequently move the UnitOp symbol, its ID remains in
the same relative position.
54 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
In some situations, you may want to move a UnitOp ID from its default location.
To do this, click the UnitOp to highlight it, then move your mouse cursor over the
UnitOp ID oval. When you see the cursor change to a curved hand shape, click and
drag the ID oval to the desired location.
Figure 5-09: The hand cursor for moving a UnitOp ID (left), an ID being moved to the opposite
side of the UnitOp symbol, and the ID oval in its new location
UnitOp ID Ranges
When you place UnitOps on a flowsheet, CHEMCAD assigns each one a UnitOp ID
number that is unique within the simulation. The UnitOp ID number is an important
identifier for the unit, and is used in various reports and charts as you work with the
simulation. By default, your UnitOps will be numbered, starting at 1, in the order in
which you create them; all types of equipment share the same pool of ID numbers.
If you want to group your UnitOps numerically by equipment type, you can use
the Starting IDs feature to accomplish this.
Select Format > Starting IDs, which brings up the Stream and UnitOp Starting
IDs dialog box. Here you’ll see each type of UnitOp available in CHEMCAD, each
with a default setting of 1. This means that any new UnitOp will be assigned an ID
from the same number pool—the next number (1 or greater) that has not been used
yet in this simulation.
To set up separate ranges of numbers for different equipment types, you can edit
the values in the Stream and UnitOp Starting IDs screen. For example, you could set
the Heat Exchanger value to 200, the Pump value to 300, the Pipe value to 400, and
so on, using any starting values that are meaningful to you. Any UnitOp type you
don’t assign a starting value will pull ID numbers from the pool starting with 1,
skipping any numbers that are already assigned.
UnitOp Names
In addition to the assigned ID, you can give a UnitOp a name, using up to 11
alphanumeric characters. This name appears in the UnitOps area of the CHEMCAD
Explorer pane, on certain reports, and optionally on the flowsheet with the UnitOp
ID.
To add a UnitOp name, right‐click the UnitOp on the flowsheet and select Edit
Name; type the name in the resulting dialog box and click OK.
CHEMCAD Version 7 User Guide 55
Building and Using a Basic Simulation
By default, a newly added UnitOp name will appear beneath the number in the
in the UnitOp ID box. To hide a single UnitOp’s name, right‐click the UnitOp and
clear the check mark next to Show Name; simply check this menu item again to
make the UnitOp name visible again.
To view or hide all UnitOp names on the flowsheet with a single command,
select View > Flowsheet Settings and choose either Show All UnitOp Names or
Hide All UnitOp Names.
3. Click and drag toward the desired inlet on the downstream UnitOp. When
you see the cursor change to an anchor shape, and the inlet port outlined in
red, release the mouse button.
56 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
4. The stream will appear between the objects you have connected.
Note: You can also click and release at the outlet port, move the mouse
pointer wherever you like, and then click and release again when you reach
the desired inlet port. There is no need to hold the mouse button down the
entire time.
Rerouting a Stream
Even after you’ve completed your flowsheet and added detailed information about
your streams, you can still reroute a stream if needed. There are two ways to do this.
The first method is to move the existing stream around using its sizing handles.
When you click on a stream to select it, the stream line displays in green, and small
green sizing handles appear. Each stream turn will have a sizing box, as well as each
stream segment. You can click and drag any of these handles to move the adjacent
stream segment(s) to a new location.
If you click a corner sizing handle, you can move the two adjacent stream
segments in any direction; this often affects the position of other stream segments as
well. If you click a sizing handle in the middle of a stream segment, then you can
only move the segment left and right (for a vertical segment) or up and down (for a
horizontal segment).
The second method for rerouting a stream is to re‐draw it entirely. To do this,
click the stream to select it, then right‐click and select Reroute stream. The old
stream disappears, replaced by the beginning of a new stream originating at the
same outlet.
You can now click to create 90° turns, the same way you would with a new
stream, to route the stream exactly where you want it. After a stream is rerouted, it
retains all of the stream detail that you had previously entered.
CHEMCAD Version 7 User Guide 57
Building and Using a Basic Simulation
Stream IDs
When you draw streams on your flowsheet, CHEMCAD assigns each one a stream
ID number that is unique within the simulation. The stream number is an important
identifier for the stream, and is used in various reports and charts as you work with
the simulation.
The stream ID is displayed in a rectangular box, easily distinguishable from the
ovals used to display UnitOp IDs.
Figure 5-10: A stream ID box
When you draw a stream, the ID box is positioned on the longest stream
segment. If you subsequently move the flowsheet objects that contain the stream’s
end points, or otherwise change the path of the stream, the stream ID box will
change its position accordingly.
In some situations, you may want to move a stream ID box from its default
location. To do this, click the stream to highlight it, then move your mouse cursor
over the stream ID box. When you see the cursor change to a curved hand shape,
click and drag the ID box to the desired location.
Figure 5-11: The hand cursor for moving a stream ID box (left) and a stream ID box being moved
If you have manually placed a stream ID box, you might later want to restore it
to its default location on the stream. To do this, simply right‐click the stream or the
ID box and select Reset ID Position. This returns the stream ID box to its automatic
placement on whichever stream segment is currently the longest.
58 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
Stream ID Ranges
By default, your streams will be numbered, starting at 1, in the order in which you
create them. If you want to create a series of streams with a separate range of ID
numbers from the rest of your simulation, you can use the Starting IDs feature to
accomplish this.
Select Format > Starting IDs, which brings up the Stream and UnitOp Starting
IDs dialog box. Then scroll down to the Stream option and click the adjacent number
column. Enter the number that will be the start of your separate stream ID pool, and
click OK. If you later need to draw more streams with ID numbers in the normal
range, you can return to this dialog box and reload the default setting.
For example, to draw a series of utility streams with ID numbers starting at 300,
you would set the stream starting ID option to 300 and draw the streams in question.
Those streams would be numbered 300, 301, 302, and so forth. After drawing all of
your utility streams, you would then set the Stream ID option back to 1, so that the
next new stream in the main flowsheet would be assigned the next available stream
ID from the regular pool of numbers. You can reset the stream option number as
many times as needed while you create and edit your simulation.
Stream Names
In addition to the assigned stream ID, you can give a stream a name, using up to 11
alphanumeric characters. This name appears in the Edit Stream dialog, in the
Streams area of the CHEMCAD Explorer pane, on certain reports, and optionally on
the flowsheet with the stream ID.
To add a stream name, you can open the Edit Streams dialog and type in the
Stream Name field. Another way to add a name is to right‐click the stream and
select Edit Name; type the name in the resulting dialog box and click OK.
By default, a newly added stream name will appear beneath the number in the in
the stream ID box. To hide a single stream’s name, right‐click the stream and clear
the check mark next to Show Name; simply check this menu item again to make the
stream name visible again.
To view or hide all stream names on the flowsheet with a single command, select
View > Flowsheet Settings and choose either Show All Stream Names or Hide All
Stream Names.
Stream Intersections
When streams cross on a flowsheet, a visual indicator can be helpful to show that the
streams do not interact with one another. You can set up a default size and shape to
show one stream “jumping” over another wherever two streams meet. By default, a
stream jump displays as a semicircle.
CHEMCAD offers several other options for stream intersections, including no
jump indicator and a dash to break one stream line as it crosses. The figure below
shows all of the available stream intersection options.
CHEMCAD Version 7 User Guide 59
Building and Using a Basic Simulation
Figure 5-12: Stream intersection options (from left: None, Dash, Triangle, Trapezoid, Square,
and the default setting, Circle
To select a stream intersection option for the current simulation, select Format >
Stream Styles. In the Stream Styles dialog, drop down the Style list under
Intersections, and select an option. When you click OK, any stream intersections
already on your flowsheet will change to the new style; any new intersections that
occur will also use that style. This style will continue to be used for new
intersections, even after this simulation has been closed and re‐opened.
To change the global style for stream intersections—that is, to set the default for
all future simulations created in your CHEMCAD installation—you can change the
setting in a different place. Select Tools > Options > Preferences, then choose Stream
Styles. Here you have the same list of options from which to choose, but when you
select one and click OK, the chosen style will become the default.
You can change the Stream Styles default style at any time, and the Format >
Stream Styles option will always override the global default setting for the current
simulation.
Note that you can also change the size of the stream jumps in both the current
and global settings for stream intersections. The default size is 48, which is well
proportioned for use with standard UnitOp sizes.
Defining Streams
The streams that you have drawn on your flowsheet are still just lines with no data
behind them. The next step is to edit these streams as needed, populating them with
composition data and other properties.
In most situations, the streams you’ll need to define will be the feed streams in
your process. Other types of streams, such as recycle cut streams, may also require
definition.
You can edit a single feed stream using either of these methods:
• Double‐click the stream.
• Right‐click the stream line and select Edit Stream.
• On the Simulation tab in the CHEMCAD Explorer, expand Flowsheet and
then Streams, right‐click the stream in question, and select Edit Stream.
You can edit all feed streams in the flowsheet at once using either of these
methods:
• Select Specifications > Feed Streams.
60 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
• Click the Edit Feed Streams button (just to the left of Component List on the
Setup toolbar).
Whichever method you choose, you’ll see the Edit Streams dialog box, with
either a single column of data or a column for each feed stream in the flowsheet. In
this dialog box, specify properties for each feed stream listed.
Thermodynamic Properties
You must specify exactly two of the following three variables:
• Temperature
• Pressure
• Vapor fraction
CHEMCAD will calculate the third variable and enthalpy, based on the two
variables you specify and the thermodynamics method you’ve selected, once the
stream composition data has been entered.
Note: In the Edit Streams dialog box, the user‐specified values for feed streams will
display in green, differentiating them from calculated values.
Stream Composition
To define the stream composition, you’ll need to specify a composition unit and the
amount of each component that is present in the stream.
Select a unit from the Comp unit drop‐down list, and then based on that
selection, populate the field for each component with the appropriate amount,
percentage, or fraction.
For stream compositions expressed as a percentage or fraction, you can enter
values that do not total 100%. In this case, CHEMCAD will normalize the
composition to fractional values that total 1. To preview the normalized values that
CHEMCAD assigns to the components, click Flash.
CHEMCAD Version 7 User Guide 61
Building and Using a Basic Simulation
Figure 5-13: Two UnitOps that require very different amounts of input
The detailed information about the specifications for each type of UnitOp is
contained in the CHEMCAD Help system, which you can access from any
CHEMCAD screen by pressing the [F1] key.
These specification screens do, however, have certain rules in common:
• Items with green text labels are required entries.
• All other entries are optional.
• Clicking OK saves your specification changes; clicking Cancel discards them.
After you click OK, CHEMCAD checks your data for internal consistency and
then returns errors or warnings as warranted. These items display in the Messages
pane in the CHEMCAD window.
62 CHEMCAD Version 7 User Guide
Building and Using a Basic Simulation
Now that you’ve drawn the flowsheet and added detail to the streams and UnitOps
that make up the flowsheet, you can run the simulation. You can either select Run >
Run Steady State > Run All, or simply click the blue Run All button on the main
CHEMCAD toolbar.
Figure 5-14: The Run All toolbar button
When you run a simulation, CHEMCAD calculates material and energy balances
throughout the entire flowsheet and returns any errors or warnings discovered in
the flowsheet. If the run completes successfully, a Run finished message appears at
the far left of the status bar, at the very bottom of the CHEMCAD window.
For preliminary checks of individual UnitOps or groups of UnitOps, you can
select Run > Run Steady State > Run Selected UnitOps, or right‐click any UnitOp
on the flowsheet and select Run This UnitOp.
Note: CHEMCAD reports, plotting, and plot printing are covered in detail in
Chapter 8, Output and Reports.
CHEMCAD Version 7 User Guide 63
Building and Using a Basic Simulation
64 CHEMCAD Version 7 User Guide
Chapter 6
Using CHEMCAD for High-fidelity Modeling
Unit operation specifications in CHEMCAD vary greatly in detail, from vague and
conceptual to extremely specific and realistic. Depending on the demands of your
process and what you’re trying to achieve with your simulation, you may work with
what we call low‐fidelity modeling, high‐fidelity modeling, or both.
This chapter addresses CHEMCAD’s capacity for high‐fidelity modeling and
how to achieve a high level of realism with your UnitOps.
CHEMCAD Version 7 User Guide 65
Using CHEMCAD for High‐fidelity Modeling
• High‐fidelity: You specify energy and equipment parameters and CHEMCAD
calculates the actual results.
Figure 6-01: The Sizing menu, showing heat exchanger sizing options
Equipment sizing can complement low‐fidelity results, and often provides an
excellent starting point for high‐fidelity modeling. You can use certain sizing results
as input for high‐fidelity models of UnitOps in your simulation. Specifying
geometric parameters for UnitOps can help you obtain more realistic results.
Note that for low‐fidelity modeling, sizing does not change converged flowsheet
results. Also, for some UnitOps, certain geometry parameters must be entered
regardless of the selected calculation mode.
66 CHEMCAD Version 7 User Guide
Using CHEMCAD for High‐fidelity Modeling
Piping
You can use either low‐ or high‐fidelity modeling for piping in your simulation.
Pipeline sizing is done based on the composition of a selected stream.
Low-fidelity
For low‐fidelity modeling of piping, you are required to specify pipe diameter and
length in most modes; design modes that calculate diameter are the obvious
exception to this. The pressure drop through the pipe is calculated based on
diameter, length, and flow rate through the pipe.
Sizing
To perform sizing calculations, select Sizing > Piping. Select one or more streams,
then in the Pipe Sizing dialog box, select a sizing option and click OK for line sizing
results. You can use these results, such as suggested pipe thickness and diameter, to
specify geometry for a Pipe UnitOp, or simply review them for the information you
need.
Note: You can also click to select the relevant stream on the flowsheet (hold down
[SHIFT] to select multiple streams), then right‐click and select Line Sizing to access
the Pipe Sizing dialog box.
Figure 6-02: Line sizing results from the Pipe Sizing dialog box
CHEMCAD Version 7 User Guide 67
Using CHEMCAD for High‐fidelity Modeling
High-fidelity
In high‐fidelity piping models, Pipe UnitOps interact with Node UnitOps to balance
pressure and flow rates hydraulically among connected pieces of flow‐based
equipment. Nodes must be placed on both sides of all Pipe UnitOps to be included
in hydraulic balance; pressure and flow constraints are set at the nodes, not in the
pipes.
A high‐fidelity piping model can show changes in flow rate based on back
pressure where two pipes mix, whereas a low‐fidelity model would simply assign
the lower of two specified pressures to the outlet without consideration for back
pressure.
Low-fidelity
For these equipment types, CHEMCAD calculates power usage and thermal effects
on the fluid, based on specified output pressure or pressure increase. Other
parameters, such as efficiency, are optional but do affect results.
High-fidelity
To produce a high‐fidelity model for these equipment types, you must select the
operation mode in which you specify performance curves—that is, pressure change
as a function of volumetric flow rate. This performance information is generally
available from the equipment vendor. Based on the volumetric flow entering the
UnitOp, CHEMCAD calculates outlet pressure.
As with piping, high‐fidelity modeling for pumps, compressors, and expanders
can be used with nodes as part of a hydraulic flow balanced network.
Low-fidelity
With low‐fidelity modeling of a vessel or tank, a stream enters the Flash UnitOp and
separates into vapor and liquid; CHEMCAD does not consider hold‐up or liquid
level in the tank. If you want to take a steady‐state snapshot of the vessel, you can
manually adjust the flow rate and/or thermal conditions to make volumetric flow
rates match the volume of the vessel.
68 CHEMCAD Version 7 User Guide
Using CHEMCAD for High‐fidelity Modeling
Note: The Batch Tank UnitOp is specifically intended for use with the Batch
Distillation Column UnitOp. It does not represent a standard storage tank for
general purposes.
Sizing
To calculate sizing for a vessel, select a Flash UnitOp and then select Sizing > Vessel.
Choose either LV Vessel (liquid‐vapor vessel) or LLV Vessel (liquid‐liquid‐vapor
vessel), depending on your needs. In the resulting dialog boxes, enter the
appropriate values for your vessel and click OK.
Figure 6-03: Sizing a vessel in CHEMCAD
The results that CHEMCAD returns include basic vessel geometry such as height
and diameter.
You can also perform vessel sizing on a converged distillation column to
calculate geometry for a reflux drum or similar piece of equipment.
High-fidelity
You can perform high‐fidelity modeling only on vessel reactors and dynamic
vessels, and only with a CC‐DYNAMICS license (for dynamic vessels, a CC‐SAFETY
NET license will suffice). If you specify the geometry of your vessel and use
CHEMCAD’s dynamics mode, you can study what happens in the vessel over time
as material is added or withdrawn.
Unlike simple flash vessels, vessel reactors and dynamic vessels do consider
hold‐up, liquid level, and variable pressure over time.
CHEMCAD Version 7 User Guide 69
Using CHEMCAD for High‐fidelity Modeling
Valves
Valve modeling in CHEMCAD can be either low‐fidelity or high‐fidelity. You can
size a control valve based on any flowsheet stream.
Low-fidelity
The Valve UnitOp is used for low‐fidelity modeling of a valve. For this type of
UnitOp, you specify outlet pressure or pressure decrease through the valve.
Sizing
Select Sizing > Control Valve, then select a stream. In the Control Valve Sizing
dialog box, specify the outlet pressure for the theoretical valve, and enter other
specifications as appropriate. When you click OK, CHEMCAD returns information
such as capacity coefficient (Cv) and valve size.
Note: You can also click to select the relevant stream on the flowsheet, then right‐
click and select Control Valve Sizing to access the Control Valve Sizing dialog box.
Figure 6-04: The Control Valve Sizing dialog box
High-fidelity
The CVAL UnitOp is used for high‐fidelity valve modeling. Decide which values
you will provide and which values CHEMCAD will calculate, and select the
appropriate operating mode in the Control Valve dialog box. Provide the valve’s Cv
value, and any other specifications as needed.
Control valves can be used with nodes as part of a hydraulic flow balanced
network.
Columns
Columns in CHEMCAD can be modeled as either low‐fidelity or high‐fidelity. You
can perform sizing on any converged column.
Low-fidelity
For low‐fidelity modeling of columns, use the Tower, Tower Plus, or SCDS UnitOps.
Specify ideal stages and the conditions at the reboiler and condenser, as applicable.
70 CHEMCAD Version 7 User Guide
Using CHEMCAD for High‐fidelity Modeling
A low‐fidelity column model does not consider mass transfer effects or column
internals.
Different column specifications can provide more realism without taking
geometry into account. Specifying top purity is a very low‐fidelity model, while
specifying reflux ratio or condenser duty can bring your results closer to reality.
Sizing
After running your simulation, click the UnitOp representing the distillation column
and select Sizing > Distillation; choose either Trays or Packing, based on the type of
column.
The resulting dialog boxes prompt you to enter information about your trays or
packing and the calculation methods you want to use for column sizing. You will
generally need to enter some geometry and hydraulic parameters to complete
column sizing.
Figure 6-05: Specifying high-level tray data for distillation column sizing
Figure 6-06: Specifying detailed tray data
CHEMCAD Version 7 User Guide 71
Using CHEMCAD for High‐fidelity Modeling
Based on flowsheet values and your sizing input, CHEMCAD returns column
geometry information such as height and diameter. It also provides hydraulic
performance information such as predicted amount of flooding.
High-fidelity
To perform high‐fidelity modeling of a distillation column in steady state, use the
SCDS UnitOp and select either of the mass‐transfer simulation models for the
column.
You will need to specify geometry for the column and choose a calculation
method for the selected mass‐transfer model. CHEMCAD calculates column
performance based on your packing or tray specifications.
For columns, mass transfer‐based modeling performs rigorous non‐equilibrium
mixing of vapor and liquid, whereas low‐fidelity modeling assumes ideal mixing.
To perform high‐fidelity modeling of a distillation column in dynamics, specify
the geometry of the column and details about the control system. This dynamic
distillation can consider column hold‐up and the effect of variables changing over
time.
Note: The Shortcut Column UnitOp is not a rigorous calculation model. Unless your
system satisfies the constant molar underflow assumption, you should consider
using a different type of distillation column.
Heat Exchangers
When specifying a heat exchanger in a simulation, you can use either low‐ or high‐
fidelity modeling as well as sizing, depending on the type of heat exchanger
involved.
Low-fidelity
When creating a simulation, you can use a low‐fidelity approach by simply
specifying the thermal conditions coming out of the exchanger. Specifying heat duty
instead of merely an outlet temperature brings your results closer to reality, but this
approach still doesn’t consider geometry.
Sizing
You can use the CC‐THERM module for rigorous calculation of heat transfer
coefficient (U) based on heat exchanger geometry. In rating mode, CC‐THERM
determines whether the user‐specified heat exchanger is capable of the flowsheet
heat exchanger performance. In design mode, CC‐THERM calculates an exchanger
design that is capable of the flowsheet performance.
High-fidelity
For some exchanger categories—specifically shell‐and‐tube and double‐pipe—you
can use the rigorous CC‐THERM model to calculate heat exchanger performance.
72 CHEMCAD Version 7 User Guide
Using CHEMCAD for High‐fidelity Modeling
The flowsheet results are based on rigorously calculated U value and the specified
exchanger geometry. You can also determine approximate fouling of a unit if actual
outlet temperatures are known.
Figure 6-07: Heat exchanger summary report generated as an Excel worksheet
Relief Devices
For relief devices, sizing is not necessarily distinct from low‐fidelity modeling. To
model dynamic relief of a vessel, you can instead use high‐fidelity modeling.
Low-fidelity
To model a steady‐state snapshot of a relief device, select Sizing > Relief Device,
specify a rating or design mode, and select the appropriate options for your relief
scenario. When you click OK, CHEMCAD returns a relief device calculation
summary.
High-fidelity
If you select the Rigorous integral analysis design method when sizing a relief device,
you will obtain a results based upon the changing latent heat of the liquid as it
changes over time.
CHEMCAD Version 7 User Guide 73
Using CHEMCAD for High‐fidelity Modeling
Figure 6-08: Selecting the rigorous integral analysis method for relief device design
You can also perform high‐fidelity relief device modeling for the Vessel Reactor
and Dynamic Vessel UnitOps. You can specify the relief device nozzle area, as well
as other specifications for your relief scenario. This enables you to study the dynamic
relief of the vessel.
74 CHEMCAD Version 7 User Guide
Chapter 7
Building and Using a Dynamic Simulation
While steady‐state modeling can provide all of the information you need for many
purposes, it’s often informative to look closely at the changes over time that affect
your streams and equipment. CHEMCAD’s CC‐DYNAMICS module makes it
possible to simulate a process over time.
Licensing Considerations
To use the functionality described in this chapter, you must have a valid license for
the CC‐DYNAMICS module of CHEMCAD. To view or change the disposition of
your CC‐DYNAMICS product license, see the CHEMCAD License Monitor screen
(Tools > Options > Licensing when a simulation is open, or License > Licensing
when no simulation is open).
CHEMCAD Version 7 User Guide 75
Building and Using a Dynamic Simulation
If you don’t currently have access to the dynamics features and want to add CC‐
DYNAMICS to your copy of CHEMCAD, contact the person within your
organization who handles software licensing, or if appropriate, you can contact
Chemstations or a CHEMCAD distributor directly. For a complete list of
Chemstations contacts and CHEMCAD distributors for all parts of the globe, see our
website (www.chemstations.com).
76 CHEMCAD Version 7 User Guide
Building and Using a Dynamic Simulation
Switching to Dynamics
To switch to dynamics, first open the simulation. Then select Run > Steady
State/Dynamicss and select Dynamics on the fly‐out menu.
Figure 7-01: Switching to dynamics
After you switch to dynamics, you’ll notice that a few things have changed on
the CHEMCAD screen:
• The status bar at the bottom of the main CHEMCAD window changes. A few
inches from the right edge of the screen, instead of the words Steady State,
you’ll now see DTime and a time counter displaying the number of minutes
your simulation has run. Before you run the simulation, the DTime setting
displays 0:00 min.
CHEMCAD Version 7 User Guide 77
Building and Using a Dynamic Simulation
• The steady‐state Run All button on the toolbar is disabled, and the dynamics
buttons are now activated. These buttons, shown in Figure 7‐02, are (left to
right) Set Run Time, Reset to Initial State, Run Dynamic Simulation, Plot
Dyn Streams, and Plot Dyn UnitOps.
Figure 7-02: Toolbar buttons for dynamics
• You can now select Run > Run Dynamics to view a submenu that provides
convenient access to all dynamics settings and commands.
Figure 7-03: The Run Dynamics submenu
78 CHEMCAD Version 7 User Guide
Building and Using a Dynamic Simulation
1. Select Run > Run Dynamics > Set Run Time, or click the Set Run Time
button on the toolbar. This brings up the Dynamic Run Time Schedule dialog
box.
Figure 7-04: The General tab on the Dynamic Run Time Schedule dialog box
2. On the General tab, set the number of operation steps you plan to use, or
leave the default setting of 1. The maximum number of steps that you can
specify is 10.
Note: When you initially set up dynamics for a simulation, the Current time display
field on this tab will be empty. After the simulation has run, this field displays the
total time of a completed run, or the current time of an interrupted run.
3. Now click the Step 1 tab and specify the parameters for this portion of the
dynamic run. Enter the total time for this dynamic step in the Run time field,
and the interval in minutes in the Step size field.
Figure 7-05: The Step 1 tab on the Dynamic Run Time Schedule dialog box
4. If you have other steps to specify, click each tab in turn and enter the Run
time and Step size information.
5. When you have specified all steps, click OK to return to the main
CHEMCAD workspace.
The Dynamic Run Time Schedule dialog box also allows for conditions other
than time to determine the duration of a dynamic operation step. If you select
Stream or Equipment instead of the default Time option, you can specify a stream
CHEMCAD Version 7 User Guide 79
Building and Using a Dynamic Simulation
or UnitOp parameter that will trigger the end of this step, if that parameter is
reached before the step’s run time is up.
Figure 7-06: The Record Streams dialog box
3. When you have selected all the streams you want to record, click OK to
return to the main workspace.
4. Now select Run > Run Dynamics > Record UnitOps. In the Record UnitOps
dialog box, select UnitOps in the same way that you selected streams in step
2.
5. Click OK to return to the main CHEMCAD workspace.
Note: In both the Record Streams and Record UnitOps dialog boxes, you can use the
RunTimePlot check boxes to include selected items in a real‐time plot. Selecting
items for runtime plotting leads to another dialog box (either Dynamic Stream Plot
Options or Dynamic Equipment Plot Options), where you can select plot specifics for
each stream or UnitOp. It is recommended that you use runtime plotting in
moderation, as too many streams and UnitOps can become visually confusing and
slow down calculations considerably.
80 CHEMCAD Version 7 User Guide
Building and Using a Dynamic Simulation
Note: At any point during a dynamic run, you can press the [ESC] key on your
keyboard to stop the run after the current calculation. When you do this, you will see
a Program interrupted message. Click OK to close the message box, and then either
inspect your run results or select a run command to continue.
CHEMCAD Version 7 User Guide 81
Building and Using a Dynamic Simulation
Figure 7-07: The Convergence Parameters setting for running one step at a time
Figure 7-08: A UnitOp specification dialog box after a dynamic run
82 CHEMCAD Version 7 User Guide
Building and Using a Dynamic Simulation
To return the simulation to its initial state—also known as time zero—select Run >
Run Dynamics > Reset to Initial State, or use the Reset to Initial State button on the
main CHEMCAD toolbar.
Note: An advanced feature to allow specification editing at any time is available, but
should be used with extreme caution to avoid confusion and unintended results.
This feature is controlled by a check box on the Convergence Parameters dialog box.
CHEMCAD Version 7 User Guide 83
Building and Using a Dynamic Simulation
After running a dynamic simulation, you can view the data behind any
flowsheet stream or UnitOp to see the effects of the run calculations. Double‐click
any stream or UnitOp on the flowsheet to review its end‐of‐run values.
You can also stop to review flowsheet data in the middle of a run, either by using
the Run one time step for dynamic simulation option or by pressing [ESC] to pause
a run. Once the run has stopped, you can double‐click any stream or UnitOp to
review its current values.
Note: For the Stream History and Dynamic UnitOp History plots, be sure to record
the streams and UnitOps that you want to study. You can only request these plots
for recorded streams or UnitOps.
• Dynamic Stream History: This report provides stream histories for a specific
stream that you select, based on the interval that you specify and including
the compositions, components, and stream properties that you select.
• Dynamic UnitOp History: This report provides detailed information about a
dynamic UnitOp in the simulation, based on the interval that you specify and
including the UnitOp parameters that you select.
Note: For the Dynamic Stream History and Dynamic UnitOp History reports, be sure
to record the streams and UnitOps that you want to study. You can only request
these reports for recorded streams or UnitOps.
CHEMCAD Version 7 User Guide 85
Building and Using a Dynamic Simulation
86 CHEMCAD Version 7 User Guide
Chapter 8
Output and Reports
One of CHEMCAD’s greatest strengths is its capacity to provide detailed,
customized information about equipment, streams, and processes. The program can
display a customizable snapshot of current data for any stream or UnitOp at any
time. You can also create custom reports, spec sheets, and databoxes for process flow
diagrams, and you can plot or print any of these items in the most appropriate
format.
Text Reports
CHEMCAD can produce a wide array of customizable text‐based simulation reports,
based on stream data, UnitOp data, flowsheet data, or dynamics. If you prefer, you
can produce one consolidated report incorporating any combination of the available
text report data.
CHEMCAD Version 7 User Guide 87
Output and Reports
• Microsoft WordPad
• CSV format
By default, CHEMCAD uses the internal report viewer. To switch to another
format, select Tools > Options > Preferences, then select Report Viewer. Click the
Default Report Viewer drop‐down box, and select your preferred program from the
list. Click OK to save your choice and return to the main CHEMCAD workspace.
Note: While in the Report Viewer settings, you may want to change the setting
called Date/Time Location, which controls where on the page the date and time
information appears on reports. The default setting is Footer, but you can select
Header instead, if you prefer.
For the consolidated report, you can choose from the same list of programs. To
select a program to display and print this type of report, select Report >
Consolidated Report, then click the Destination drop‐down box. Make your
selection and then continue customizing your report; when you finish and click
Generate, the report will display in the program you selected.
Property Sets
CHEMCAD calculates and stores a large number of data points about the process
streams in your simulations. Some of these items will be of great interest to you,
while others may be useful only in rare situations. A customization feature called
property sets enables you to choose exactly what information to display about your
process streams in the various types of reports.
A property set is a collection of physical data to display about a stream (or a
group of streams). It could include very few items—for example, only temperature
and pressure—or it could show in‐depth details about the stream and all of its
components. For every type of text report in CHEMCAD, you can choose a property
set that best fits your needs.
88 CHEMCAD Version 7 User Guide
Output and Reports
Figure 8-01: Menu flyout showing the active property set for Quickview reports
In the list of all available property sets, the set which is currently active for that
report type will appear with a check mark. To make a different property set active
for that report type, simply click the set’s name in the list.
CHEMCAD Version 7 User Guide 89
Output and Reports
Figure 8-02: The Property Set Preferences dialog box, as accessed from Report > Quickview >
Customize Property Sets
90 CHEMCAD Version 7 User Guide
Output and Reports
To change the order of items in the property list, use the Up and Down buttons
at the bottom of the right‐hand column. Simply select any first‐ or second‐level item
on the Properties tab and click either Up or Down to give that item a new place in
the list of properties. All selected properties will display in reports according to the
order you choose here.
Clicking OK saves all changes that you have made to property sets since opening
the Property Stream Preferences dialog.
Figure 8-03: Expanding a first-level item to view a list of properties
Note that when you check the box by a first‐level item, you select all of the items
in that category. Similarly, clearing a first‐level box removes all of its second‐level
items from the property set. A solid blue check box indicates that some, but not all,
second‐level items are currently checked.
Figure 8-04: Property categories with no options selected (left), all options selected, and mixed
selections
As with editing a property set, use the Up and Down buttons to move properties
into the desired order, and click OK when you have finished to save your changes.
CHEMCAD Version 7 User Guide 91
Output and Reports
92 CHEMCAD Version 7 User Guide
Output and Reports
Figure 8-05: The Property Set Library dialog, showing built-in and custom property sets
The left side of this dialog lists local property sets—that is, all property sets that
are available in the current simulation. This includes the three built‐in property sets
(Quickview, Stream Composition, and Stream Property), plus any sets you have
created in the current simulation.
If you want to make a custom property set available in the future for simulations
that you open on this installation of CHEMCAD, add the set to the Library Sets list
on the right.
To do this, select the desired set in the Local Simulation Sets list on the left side of
the screen, then click the right arrow between the two lists. The selected set will now
appear under Library Sets, with the designation (Copy) at the end of the set name.
Figure 8-06: Before and after copying a property set to the Library Sets list
It’s recommended that you give the library copy of the property set a unique
name, to avoid confusion. When you have finished, click OK to return to Property
Set Preferences, and OK again to return to the CHEMCAD workspace.
CHEMCAD Version 7 User Guide 93
Output and Reports
Note: Changes to the Library Sets list will be saved after you click OK, even if
you then close the simulation without saving it. You must save the simulation
file, however, to keep any changes you have made to the Local Simulation Sets
list.
The Library Sets list works as a global repository for a given CHEMCAD
installation. Once a property set is designated as a library set, it is available to use in
any new or existing simulation.
a. When you create a new simulation, all library sets will automatically appear
in the local list of stream property sets.
b. For an existing simulation, open the Property Set Library dialog box, select
the desired property set in the right column, and click the left arrow to copy
it to the left column.
Stream-based Reports
CHEMCAD offers several types of reports to help you analyze stream data. These
reports can be accessed in various ways: using the main Report menu, turning on
the Stream Quickview feature, clicking specialized toolbar buttons, and using the
stream right‐click menu.
The content of stream reports is controlled by property sets, as described in the
previous section. You can use the built‐in property sets, customize those sets, or
create your own sets—and you can choose which set to use at any time, or for any
type of report.
Stream Report
Before you run a stream properties report, confirm that the property set you want to
use is currently linked to this type of report. To do this, select Report > Stream
Reports > Select Active Property Set. The checked item in the flyout menu is the
active property set for stream properties reporting. To set a different property set as
94 CHEMCAD Version 7 User Guide
Output and Reports
active for this type of report, simply click the set’s name so that the check mark
appears next to it.
Figure 8-07: Checking the active property set for Stream Reports
Now that the desired property set is active, select Report > Stream Reports and
then choose from the following options:
• Select Streams: Choose the streams you want to include in the Select Streams
dialog box, either by typing in the stream numbers (one per line) or by
clicking on streams in the flowsheet. Click OK to close the dialog box and
display the report.
• All Streams: This report displays stream property data for every stream on
the flowsheet.
• Feed Streams: This report displays stream property data only for streams
issuing from a Feed icon on the flowsheet.
• Product Streams: This report displays stream property data only for streams
terminating in a Product icon on the flowsheet.
• Unit Streams: This report displays property data for all inlet and outlet
streams connected to a specified UnitOp on the flowsheet. If no UnitOp icon
is selected when you run the report, you’ll see the Select UnitOps dialog box;
type the UnitOp ID or click the UnitOp on the flowsheet and then click OK to
display the data. If you select a UnitOp icon before running the report, the
data will display without further input.
Note: You can also select any available property set to generate a stream report from
the flowsheet. To do this, click the applicable stream (or [SHIFT]‐click to select
multiple streams), then right‐click to bring up the stream menu. Select Stream
Reports and then choose a property set from the menu flyout to generate the stream
report.
CHEMCAD Version 7 User Guide 95
Output and Reports
distribution exists (one per line), either by typing in stream numbers (one per line) or
by clicking on streams in the flowsheet. Click OK to display the report.
Pseudocomponent Curves
For a text report on pseudocomponent curves (also known as distillation curves),
select Report > Pseudocomponent Curves. Select one or more streams containing
hydrocarbons, either by typing in stream numbers (one per line) or by clicking on
streams in the flowsheet. Click OK to display the report.
Stream Groups
For stream composition and property reports, you can create custom stream groups
within a simulation to streamline your report requests.
For example, if you have a process that involves ten different utility streams, and
you frequently run reports on this group of streams, you can set up a group
consisting of just those streams. Then, whenever you want to obtain composition or
property data for those streams, you’re just a few clicks away anytime the simulation
is open.
The quickest way to set up any group is to use the CHEMCAD Explorer. Follow
these steps to create a stream group:
1. In the CHEMCAD Explorer pane, find the top‐level item called Groups. Click
the plus sign next to Groups to expand this item.
Figure 8-08: Expanding the Groups item in CHEMCAD Explorer
2. Now click the Streams item under Groups, to bring up the New Group
dialog. Replace the default name (such as Group 1) with a descriptive name
for your group, then click OK.
96 CHEMCAD Version 7 User Guide
Output and Reports
Figure 8-09: Naming the new stream group
3. In the Edit Stream Group dialog box, select the streams for this group, either
by typing in the stream numbers (one per line) or by clicking on streams in
the flowsheet. Click OK to close the dialog box.
4. As soon as you finish creating the group, its name appears under Streams in
the Groups area of the CHEMCAD Explorer. From here, you can right‐click
the group name and select any of the following:
• View/Edit: Open the Edit Stream Group dialog box, where you can add
or delete stream numbers to include in the group.
• Select Streams: Highlight the group’s streams on the flowsheet.
• Rename: Open the Rename Group dialog box, where you can type a new
name for the stream group.
• Copy: Open the Copy Group dialog box, where you can type a new
group name to make an exact copy of the stream group. After you click
OK, you can then edit the new copy of the group to fit your needs.
• Delete: Remove this stream group from the simulation. If you’re sure
about deleting the group, click Yes in the dialog box that appears.
• Composition: Run a stream composition report for the streams in the
group, using the Stream Composition property set.
• Properties: Run a stream properties report for the streams in the group,
using the currently active Stream Reports property set.
Note: The commands to create, view, edit, and remove stream groups are also
offered on the Report menu, under Stream Reports.
UnitOp-based Reports
CHEMCAD can also run reports to analyze UnitOp data. To access these reports,
select the appropriate item from the Report menu. The results will display in either
WordPad or Excel, depending on how you’ve configured CHEMCAD to handle text
reports.
Select UnitOps
To run a report that covers just the Unit Ops you specify, select Report > UnitOps >
Select UnitOps. In the Select UnitOps dialog box, specify the UnitOps you want to
CHEMCAD Version 7 User Guide 97
Output and Reports
include in the report, either by typing in the UnitOp ID s(one per line) or by clicking
on UnitOps in the flowsheet. Click OK to close the dialog box and display the report.
If you select a UnitOp icon before running the report, the data will display
without further input.
Spec Sheet
This command exports detailed information about a UnitOp into a preformatted
Excel worksheet. This report is useful for tasks such as soliciting a manufacturing
quote for a piece of equipment.
• To create a spec sheet for all UnitOps on the flowsheet, select Report > Spec
Sheet > All Units.
• To create a spec sheet only for specific UnitOps, select Report > Spec Sheet >
Select Unit. Choose the UnitOps you want to include in the Select UnitOps
dialog box, either by typing in the UnitOp IDs (one per line) or by clicking on
UnitOp icons in the flowsheet. Click OK to close the dialog box and display
the spec sheet.
• For a single UnitOp spec sheet, you can select the UnitOp icon before
running the report; Excel will open and the data will display without further
input.
Note: For spec sheets that include multiple UnitOps, CHEMCAD creates a separate
worksheet for each UnitOp’s data within the Excel file that CHEMCAD creates.
Distillation
To run a distillation report, select Report > Distillation and then select one of the
following:
• Column Profiles: Generates a report detailing temperature, pressure, and
flow rate for a distillation column
• Tray Compositions: Creates a report that shows the vapor flow rate, liquid
flow rate, and K‐value of each component on each stage of a distillation
column
• Tray Properties: Reports on currently selected stream properties for each
stage of a distillation column
• Tower Mass Transfer (SCDS): For an SCDS distillation column that uses a
mass transfer model, provides mass transfer coefficients, height of transfer
units, and estimated height of theoretical plates (HETP)
• Dynamic Column History: Provides data from a single dynamic run of a
column (described in detail in Chapter 7, Building and Using a Dynamic
Simulation)
98 CHEMCAD Version 7 User Guide
Output and Reports
• Column Diagnosis: For columns that have not successfully converged,
provides recommendations for changing column settings to achieve
convergence
UnitOp Groups
For UnitOp reporting, you can create custom UnitOp groups within a simulation.
Much like their stream‐based counterparts, UnitOp groups can save you time and
effort when requesting reports; in addition, you can use these groups when running
your simulation, to isolate and run only selected UnitOps for diagnostic or other
reasons.
Note: Because of this other functionality of UnitOp groups, the order in which you
list UnitOp IDs when setting up these groups is important.
The quickest way to set up any group is to use the CHEMCAD Explorer. Follow
these steps to create a UnitOp group:
1. In the CHEMCAD Explorer pane, under Groups, right‐click the UnitOps
item and select New.
2. In the New Group dialog box, replace the default name (such as Group 1)
with a descriptive name for your UnitOp group and then click OK.
Figure 8-10: Naming the new UnitOp group
3. In the Edit UnitOp Sequence Group dialog box, select the UnitOps for this
group, either by typing in the UnitOp IDs (one per line) or by clicking on
UnitOp icons in the flowsheet. Add UnitOps in the order they run in the
simulation. Click OK to close the dialog box.
As soon as you finish creating the group, its name appears under UnitOps in the
CHEMCAD Explorer. From here, you can right‐click the group name and select any
of the following:
• View/Edit: Open the Edit UnitOp Sequence Group dialog box, where you
can add or delete Unit Ops or reorder the existing list.
• Rename: Open the Rename Group dialog box, where you can type a new
name for the group.
• Copy: Open the Copy Group dialog box, where you can type a new group
name to make an exact copy of the UnitOp group. After you click OK, you
can then edit the new copy of the group to fit your needs.
CHEMCAD Version 7 User Guide 99
Output and Reports
• Delete: Remove this UnitOp group from the simulation. If you’re sure about
deleting the group, click Yes in the dialog box that appears.
• Run: Run the simulation only for those UnitOps included in this group.
• View: Display a summary report of the UnitOps included in this group.
• Specifications: Bring up the UnitOp specification dialog boxes for each item
in the UnitOp group, starting with the first UnitOp listed.
Note: The commands to add, edit, and remove UnitOp groups are also offered on the
Report menu under UnitOps.
Flowsheet-based Reports
In addition to reports that focus on particular UnitOps and streams, CHEMCAD
offers text reports that provide information about the simulation as a whole. To
access any of these reports, select the appropriate item from the Report menu.
Topology
This report provides a listing of all UnitOps in the flowsheet, as well as all stream
origins and destinations.
Thermodynamics
This report lists all components used in the simulation and provides vital
information about the thermodynamics methods used.
Dynamics Reports
The Report menu provides access to the Batch Results and Dynamics commands,
which provide reports about non‐steady‐stream processes.
Batch Results
This report summarizes the results of a batch distillation column simulation at the
end of each operating step.
Dynamics
You can access three different reports by selecting Report > Dynamics: Dynamic
Column History, Dynamic Stream History, and Dynamic UnitOp History. These
reports are described in detail in Chapter 7, Building and Using a Dynamic Simulation.
100 CHEMCAD Version 7 User Guide
Output and Reports
Figure 8-11: The CHEMCAD Report Writer
From here, you can click Generate to bring up a default consolidated report that
includes topology, convergence, mass and energy balances, and the other reports
listed in the dialog box’s left column. If this report is adequate to your needs, simply
click Return to CHEMCAD after generating the consolidated report, to close the
Report Writer dialog box.
If you want something other than the default consolidated report, you can also
use the Report Writer to customize which individual reports to include, what order
to put them in, which flowsheet elements to include, and much more. You can fine‐
tune your report settings without closing this dialog box, and then save your report
configuration with a new name so that you can run it again in the future.
CHEMCAD Version 7 User Guide 101
Output and Reports
• Remove a section by selecting it in the Current Report Sections list and then
clicking Delete.
• Move a section to a different position within the Consolidated Report by
selecting it in the Current Report Sections list and then clicking the Up or
Down button as needed.
If you prefer to build the section list yourself, you should access the Report
Writer by selecting Report > New from the main CHEMCAD menu. This brings up
the Report Writer screen with a blank left column, ready for you to add just the
report sections that you want in whatever order you choose.
102 CHEMCAD Version 7 User Guide
Output and Reports
Figure 8-12: Typing a new name into the Report Name field
Once you have named the report, you can click Save to save the report locally
(that is, only for this simulation), or click Save As to save the report under My
Simulations\My Reports\Global Reports. Saving in the Global Reports directory
makes the report available to any simulation you may open in the future.
To generate a report that you have saved locally, select Report > Simulation
Reports; select the report by name and click Generate Report. Other options here are
Edit to open the report in the Report Writer, Export to copy it to a global location, or
Delete to remove it from the menu.
CHEMCAD Version 7 User Guide 103
Output and Reports
Figure 8-13: Generating a report that has been saved locally
Note that to generate or access a globally‐saved report, you can select Report >
Global/Pool Reports.
Graphical Reports
In addition to text‐based reports, CHEMCAD offers a wide variety of graphical plots
that you can view onscreen or print for review.
TPXY
This selection generates vapor‐liquid equilibrium curves between any two
components, with an optional third component. You can include TPXY, TXY, activity
coefficient, and fugacity coefficient curves.
Binary LLE
This selection generates liquid‐liquid equilibrium curves between any two
components.
Binodal Plot
This selection generates a ternary phase diagram showing the distribution of three
selected components in two liquid phases, including tie lines and plait point.
Binodal/Residue Curves
This selection creates a plot that combines the curves from a binodal plot and a
residue curve plot. This is useful when working with heterogeneous azeotropic
distillation.
Residue Curves
This selection generates and plots a graphical display of distillation zones,
azeotropes, and residue curves associated with a user‐specified ternary mixture.
104 CHEMCAD Version 7 User Guide
Output and Reports
Flowsheet-based Graphs
To view graphical reports that reflect your overall simulation, select one of the
following from the Plot menu:
• Stream Properties: Plots one selected stream property for a selected stream in
the flowsheet
• Phase Envelopes: Plots a phase envelope for a given stream, highlighting the
critical point of the mixture; can include plots at vapor fractions other than 0
(bubble point curve) and 1 (dew point curve)
• Composite Curves: Plots composite heat curves for the entire flowsheet, as
well as optional heat curves for individual UnitOps
• Pseudocomponent Curves: Displays a plot of one or more distillation curves
for a stream
UnitOp-based Plots
CHEMCAD offers several plots that display data for a single UnitOp. To access any
of these plots, select Plot > UnitOp Plots and then select one of the following
options.
Column Profiles
This selection plots compositions, temperature, and flow profiles for distillation
columns.
Heat Curves
This selection plots heating and cooling curves for a selected heat exchanger.
Pipe Profile
This selection plots fluid properties for pipe UnitOps along the axial length of the
pipe. This plot requires that the pipe contain multiple segments.
Controller Convergence
For controllers that have not converged, this plot enables you to diagnose the
controller behavior that is preventing convergence. The plot shows how the
controller error function changes with iteration.
CHEMCAD Version 7 User Guide 105
Output and Reports
Dynamic Plots
CHEMCAD offers a series of plots for use with dynamic operations. Select Plot >
Dynamic Plots to access any of six graphical dynamics reports.
These plots are described in detail in Chapter 7, Building and Using a Dynamic
Simulation.
User-specified File
If you have customized CHEMCAD using VBA, C++, or other programming
languages, you can save plot data into a text file and use this feature to display that
data as a curve.
Select Plot > User Specified File to bring up a message box that provides
instructions on how to format the text file. Click OK to continue to an Open dialog
box, where you can select the text file you want to use. When you click Open, the
curve is plotted and displayed.
Flowsheet Databoxes
CHEMCAD offers four types of databoxes:
• Stream Box: Lists the streams that you select in a single table, along with the
stream properties that you choose to include
• UnitOp Box: Generates a separate databox for each selected UnitOp
• TP Box: Generates separate summary databoxes for selected streams
• Excel Range Box: References a range of cells from an Excel worksheet
106 CHEMCAD Version 7 User Guide
Output and Reports
Stream Boxes
To create a stream databox, start by selecting Format > Add Stream Box. The flyout
menu offers the same options as you saw for running a Stream Properties report:
Select Streams, All Streams, Feed Streams, Product Streams, and Unit Streams.
After you have selected the streams to include, the Select a Property Set dialog
box displays. The property set you choose here (along with any changes you make to
that property set) determines which properties are included in the resulting stream
databox.
Figure 8-14: The Select a Property Set dialog box
In this standard property selection dialog, you can add, copy, or edit a property
set, or simply select an existing set from the list at left. When you click OK, the
stream databox with the selected streams and properties appears on the flowsheet.
Once you have created a stream databox, you can move, stretch, or resize it using
your mouse. You can also edit the contents of the databox by right‐clicking the box
and selecting Edit Databox.
CHEMCAD Version 7 User Guide 107
Output and Reports
Figure 8-15: Using the Edit Databox command to change stream box contents
This brings up a property selection dialog much like the one you used to create
the databox, with the title Select New Set or Edit Current Databox Set. Simply add or
delete properties here as appropriate, then click OK to return to the flowsheet and
see your stream databox updated.
UnitOp Boxes
To create a UnitOp databox, simply select Format > Add UnitOp Box, and then
either enter UnitOp IDs in the Select UnitOps box click on the UnitOp symbols on
the flowsheet. To include all UnitOps, click anywhere in the workspace and then
press [CTRL‐A].
When you complete your selections and click OK, the UnitOp databox appears
on the flowsheet.
TP Boxes
CHEMCAD can create databoxes called TP boxes that display any combination of
temperature, pressure, and flow rate for all streams or selected streams on a
flowsheet.
To add TP databoxes, select Format > Add TP Box. In the TP Box Settings dialog
box, first select an option at the top, to determine whether to add TP boxes for all
streams or only for the streams you select.
In the Display column, select items from the drop‐down list in each field to
determine which stream properties to display and in what order. Use No selection
as appropriate if you want to display fewer than four properties.
In the Number format column, make a selection in each field to determine how
numbers will display in the TP boxes. In the Digits column, type the number of
digits to display after the decimal point. You can also choose whether to display
stream IDs (enabled by default) and engineering units.
108 CHEMCAD Version 7 User Guide
Output and Reports
The Preview box displays a dynamic sample of how the items you’ve selected
will appear in the TP boxes. Note that the preview area does not reflect any changes
you may have made to your default font size or style.
When you finish making your selections in the TP Box Settings dialog box, click
OK. If you’ve chosen to make TP boxes for all streams, the TP boxes will appear on
the flowsheet right away. If you’ve opted to select the streams from the flowsheet,
you’ll see a Select Streams dialog box; type the stream numbers (one per line) or click
on the stream lines in the flowsheet to select streams, and then click OK to create the
TP boxes.
Figure 8-16: TP boxes added to a simple flowsheet
CHEMCAD Version 7 User Guide 109
Output and Reports
An Excel range box is a dynamic link between CHEMCAD and the Excel
worksheet. As data is updated and saved in the selected cell range, the range box can
automatically update to reflect those changes. To view the most up‐to‐date data in
your Excel range boxes at any time, select View > Refresh Data Boxes.
110 CHEMCAD Version 7 User Guide
Chapter 9
Customizing CHEMCAD
As you become more familiar with the way that CHEMCAD works and the various
options and tools that are available, you may want to make your own additions—
either for specialized items or for those you use frequently. You can customize
CHEMCAD in several ways that save you time by streamlining and simplifying
your workflow. These include:
• Creating and using stream and UnitOp templates
• Adding custom components to CHEMCAD’s component database
• Defining custom thermophysical rules
• Making your own UnitOp symbols to add to existing or custom palettes
• Building custom UnitOps
• Creating custom dialog boxes for UnitOp settings
• Customizing costing calculations
This chapter discusses all of these types of customization, starting with the
simplest procedures and then moving on to more complex customizations that
require some programming experience.
Flowsheet Templates
One of the most effective ways to save time when creating CHEMCAD simulations
is to make use of stream and UnitOp templates. A template is simply a set of
characteristics, which you assign a name and save for later use. When you set up
stream or UnitOp specifications that you know you’ll need to recreate in the future,
you can create a template of that stream or UnitOp. You can then duplicate that item
CHEMCAD Version 7 User Guide 111
Customizing CHEMCAD
within the same simulation—or in any other simulation—with just a few mouse
clicks.
Creating a Template
To create a stream template, first create the stream you want to clone and give it all
of the characteristics you want to include in the template.
Then find this stream on the CHEMCAD Explorer’s Simulation tab. Expand the
Flowsheet item, then expand the Streams item, and finally double‐click the
applicable stream ID. This brings up an item called Save. Double‐click the word
Save to bring up the Enter Template Name dialog box, then type a name for your
new stream template and click OK. The new stream name is now listed beneath the
Save item.
To create a UnitOp template, select the appropriate UnitOp ID in CHEMCAD
Explorer, and then follow the same procedure used to create a stream template.
Applying a Template
To apply a stream template, first expand the CHEMCAD Explorer item for the
stream to be affected, either by clicking the plus sign to its left or by double‐clicking
the stream name.
When the stream item is expanded, you’ll see the Save item below it, followed by
the names of all the stream templates that you have created. Double‐click the name
of the template you want to apply, then click OK to confirm that you want to apply
this stream template.
Use the same procedure for a UnitOp template, selecting the UnitOp to be
affected and then expanding it in the Explorer to apply the template.
112 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
Click OK to confirm that you want to delete this template. The template name
disappears from CHEMCAD Explorer, but streams or UnitOps that were specified
using the template are not affected in any way.
Note: Any stream or UnitOp template that you create is available for use with all
other simulations on the same installation of CHEMCAD, until and unless you
delete the template.
CHEMCAD Version 7 User Guide 113
Customizing CHEMCAD
The procedure for creating a pure component is as follows:
1. Select Thermophysical > Component Database > Create New Component.
This brings up the New Component dialog box.
Figure 9-01: The New Component dialog box
2. Give the new component a descriptive name; it is strongly recommended that
you make this name unique. All other characteristics here are optional, except
for normal boiling point, which is required for the pseudocomponent
method.
3. Select a Correlation option to indicate which of the above methods you will
use, and click OK to continue.
4. The dialog box that appears next depends on the Correlation that you
selected:
• Pseudocomponent brings up the Hydrocarbon Correlation dialog box.
• Group contribution – Joback brings up the Group Assignments dialog box.
• Group contribution – UNIFAC brings up the New Component UNIFAC
Groups dialog box.
• Combustion solid brings up the Combustion Solid dialog box.
• Electrolyte brings up the Electrolyte Data dialog box.
Select the appropriate options for your new component and specify as many
characteristics as you like, as accurately as possible. Click OK to continue.
5. In the Select Destination Database dialog box, you will see no databases listed
if this is your first time to add a component. If this is the case, click New to
bring up the Manage Component Databases dialog box.
114 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
Figure 9-02: The Manage Component Databases dialog box
6. Normally, you’ll need to click Create, which brings up the Save As dialog
box. Navigate to the location you want for your custom component database,
give the database a name, and click Save. If you want to add a database that
someone else has created (generally in a network location), you can click
Connect, which brings up an Open dialog box; navigate to that database’s
location, highlight the database, and click Open.
7. The Manage Component Databases dialog box now lists the database that
you created or selected. Click OK to continue.
8. In the Select Destination Database dialog box, the new database you have just
named is now listed; highlight it and click OK.
9. The View/Edit Component Data menu now appears. Click any item on the
menu to access a dialog box with options for defining your new component.
After defining as many characteristics as possible, click Exit to close the
menu.
The new component is now available to add to your current simulation and all
future simulations. To return at any time to make changes to a user‐defined
component, do one of the following:
• Select Thermophysical > Component Database > View/Edit Database
Component to bring up the Select Single Component dialog box, which lists
all available components. Highlight the component you want in the list and
click OK to bring up the View/Edit Component Data menu.
• Click Component List on the toolbar (or select Thermophysical >
Component Database > View/Edit Simulation Component) to bring up the
list of components in the current simulation. Double‐click the component you
want in the list to bring up the View/Edit Component Data menu.
CHEMCAD Version 7 User Guide 115
Customizing CHEMCAD
Figure 9-03: The Select Regression Data Set dialog box
2. Select the user‐added component that you want to regress and click New.
This brings up the Edit Regression Set dialog box.
Figure 9-04: The Edit Regression Set dialog box
116 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
3. Select a regression type and provide a descriptive name for the data
regression, then click OK. This brings up a dialog box that displays
parameters for the selected regression type.
4. Verify the data on this dialog box, making additions or changes as necessary,
and then click OK. This brings up a dialog box for data entry.
5. Enter your experiential data points in the cells provided. You can enter a
value in the Weight_factor column to weight the regression toward one or
more data points. When you have entered all of your data points, click OK.
Note: You can paste a contiguous range of cells from an Excel worksheet into the
cells in this dialog box.
6. The regression data is displayed in a tab in the main CHEMCAD window.
Another tab displays the regression results in graphical format. Review the
data and plot, and decide whether the regression adequately represents your
experimental data.
7. A dialog box appears, asking how you would like the changes to be applied
to existing simulations. Choose an option and then click OK.
8. Repeat this procedure as needed to regress other properties for your
component.
Pseudocomponent Range
Using a pseudocomponent curve—another term for the distillation curve portion of an
assay—you can cut a hydrocarbon stream into pseudocomponents, or fractions. A
pseudocomponent represents a group of components that boil within a narrow
temperature range. Pseudocomponent ranges are used in CHEMCAD to model
hydrocarbons.
When you define a pseudocomponent range for a stream, CHEMCAD creates
entries in the component database for each hydrocarbon cut, and assigns these
components’ compositions to the stream.
Note: Before you define a pseudocomponent range, make sure that you have
specified in your component list, as appropriate, water and any light ends that exist
in the assay.
1. Select Thermophysical > Pseudocomponent Curves.
2. In the Dist Curve Characterization dialog box, enter stream number(s) and
click OK.
3. In the Hydrocarbon Correlation dialog box, select the appropriate
correlations for your curve, or use the default selections and click OK.
4. This brings up the Curve Temperature Cut Ranges dialog box. For each cut
range that you want to define, provide a beginning and ending temperature,
CHEMCAD Version 7 User Guide 117
Customizing CHEMCAD
and enter the number of points that you want to define as discrete
pseudocomponents within that range. Click OK to continue.
5. In the Bulk Properties dialog box, specify a distillation curve type and enter a
total flow rate and bulk gravity for the stream. You can make other entries
here as needed, but only these three items are required. Note that if you have
viscosity data that you want to use, you must check the Viscosity box here.
Click OK to continue.
6. In the resulting dialog box, enter the distillation curve from your assay,
specifying the volume percentage and boiling temperature for at least five
data points. Click OK to continue.
7. The next dialog box is optional. Enter a gravity curve from your assay, listing
the volume percentage and specific gravity for at least five data points. Click
OK to continue.
8. The next dialog box is also optional. If you have light ends and water defined
in your assay, enter volume percentage data here for all relevant components.
Click OK to continue.
9. If you checked the Viscosity box on the Bulk Properties dialog, you will now
see the Viscosity Data dialog box. Enter your viscosity data and click OK.
10. This brings up the Edit Distillation Curves menu, shown in Figure 9‐05.
Figure 9-05: The Edit Distillation Curves menu
11. Click Save and Exit. The pseudocomponent properties now display in a tab
in the main CHEMCAD window. You can review and print these results, and
leave the tab open as long as you like. To return to the main workspace and
your flowsheet, simply click the far left tab, which displays the name of your
simulation.
12. To see the list of pseudocomponents that you have created, edit the
properties for the stream you selected. The pseudocomponents will be listed
after pure components, with names that begin with NBP.
118 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
Customizing Thermodynamics
Occasionally, you may find that none of the thermodynamic models built into
CHEMCAD serve your needs for a particular simulation. If this should happen, you
can take one of two approaches to handling thermodynamics for the simulation:
either create your own K‐value or enthalpy model or create your own mixing rule.
Figure 9-06: Selecting the ADDK K-value option
After adding a custom enthalpy model, you can select it on the Enthalpy Models
tab of the Thermodynamic Settings dialog box, by using the Global Enthalpy Option
setting called ADDH.
CHEMCAD Version 7 User Guide 119
Customizing CHEMCAD
Figure 9-07: Selecting the ADDH enthalpy model
120 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
3. Copy the existing subroutine and paste the code below the example in the
code window. Rename the new subroutine copy.
4. Edit the new subroutine as needed to achieve the result that you want.
5. Return to CHEMCAD by either of two methods:
• Use [ALT‐TAB] or the Windows taskbar, leaving the VBA editor window
open.
• Click the View CHEMCAD button at the far left end of the VBA editor’s
toolbar to close the editor window.
Note: You can also use the [ALT–F11] key combination to toggle between CHEMCAD
and the VBA editor.
6. Save the current CHEMCAD simulation, then expand the relevant
CHEMCAD Explorer item again to see your newly defined item in the list.
CHEMCAD Version 7 User Guide 121
Customizing CHEMCAD
Figure 9-08: Selecting a VBA-defined reaction in the Kinetic Data dialog box
4. When you have defined the last reaction, click OK to return to the main
CHEMCAD window.
122 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
Figure 9-09: Selecting a VBA UnitOp
CHEMCAD Version 7 User Guide 123
Customizing CHEMCAD
The UnitOp Designer toolbar offers the following tools for creating your new
symbol:
• Basic drawing shapes: Line, Arrow Line, Polygon, Ellipse, Rectangle, and
RoundRect
• The TextBox tool, for adding text to your UnitOp symbol
• The Rotate, Flip, and Group tools, for manipulating drawn objects
• The Align and Space tools, for placing drawn objects more precisely
• Tools for ordering objects that overlap
Using these tools, create the symbol you want to represent your new UnitOp.
Note that in some cases, the drawing tools remain active until you either right‐click
on the workspace or select a different tool. If you create a shape unintentionally,
simply click the shape to highlight it, then press [DELETE].
To ensure that your new symbol is similar in size to other items on the UnitOp
palette, you can “borrow” an existing symbol to get a sense of its scale:
1. Click the simulation tab at the bottom of the workspace.
2. Drag a symbol of the desired size from the palette to the workspace.
3. Right‐click the symbol on the flowsheet and select Copy.
4. Click back to the UnitOp Designer tab.
5. Right‐click any blank area and select Paste.
You can now draw your new symbol to a scale that matches this symbol. Be sure
to delete the borrowed symbol, along with any drawing objects that you do not want
to include, before continuing.
124 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
Note: Placing ports precisely on a symbol outline can be challenging when done with
a mouse. Alternatively, you can use your keyboard’s arrow keys to fine‐tune the
position of selected ports.
Specifying Ports
Once the ports are all in the correct locations, you can specify them as desired. There
are two specifications available for UnitOp ports: Index and Link Direction.
The Index setting determines the order in which the ports will be calculated
within the UnitOp. By default, the first inlet port that you add is assigned index 1,
the second is assigned index 2, and so forth; outlet ports are also numbered in this
way.
The Link Direction setting is optional. When specified, it determines the
orientation of the stream segment entering or exiting a particular port. Link
orientations are given as cardinal directions. For example, you may want all the inlet
ports on the left side of a column to enter horizontally from the left, or the outlet port
on the bottom of a vessel to exit downward, regardless of where connecting UnitOps
are located.
To change the assigned order of a port or specify its link direction, right‐click the
port and select Port Identification.
The Select New Port Index dialog suggests a new Index value, which you can
keep or change. To specify the direction of stream entry or exit from the port, select
the desired direction from the Link Direction drop‐down list. When you have
finished specifying the port, click OK to close the dialog box.
CHEMCAD Version 7 User Guide 125
Customizing CHEMCAD
It is recommended that you specify (or at least verify) the index setting for each
inlet and outlet port before continuing.
126 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
The drawing file opens in the UnitOp Designer tab. You can now make any
needed changes to the drawing: add or delete items, resize an item, change text, and
so forth.
When you have finished making changes, select Edit > UnitOp Designer > Add
Ports, and proceed as before. To return to the same starting place again, simply open
the original drawing and repeat the process.
6. Add, move, or reconfigure ports as needed, then publish as usual.
7. If you want to keep this new version as a template for future changes, be sure
to save when CHEMCAD prompts you as you close the UnitOp Designer tab.
128 CHEMCAD Version 7 User Guide
Customizing CHEMCAD
• User‐added module: Created using Visual Studio or another C++ compiler
• VBA UnitOp: Created through the VBA Editor, which is part of CHEMCAD
The basic procedures for creating custom Excel UnitOps are covered in Chapter
10, Data Interfaces. Calculator UnitOps are defined by a programming language
called Parser, the syntax for which is documented in the CHEMCAD Calculator/Parser
Module guide, available on the Chemstations website.
C++ user‐added modules are developed using Microsoft’s Visual C++
development tool, the same tools that were used in the creation of CHEMCAD’s own
UnitOps. The procedures for creating C++ user‐added modules for use with
CHEMCAD are detailed in the User‐added Modules Guide, which is also available on
the Chemstations website.
VBA UnitOps are defined by VBA subroutines, and are described later in this
chapter.
The method you choose is an important first step toward creating a UnitOp, but
the choice is almost entirely up to you. Calculator UnitOps can be quick and easy to
set up, but they can’t do everything the other methods can. The Excel/Visual Basic
approach is very powerful and uses the familiar Visual Basic language for
development. A drawback to this method is that calculation can sometimes be slow
due to the use of Microsoft Excel to do the calculations. The most powerful and
fastest calculating method is the C++ user‐added module method, but if you are new
to C++, it may be challenging to use. VBA UnitOps are as powerful as those created
using C++, and are much easier to build.
Whichever method you use to program the calculations of your UnitOp, you will
likely need to create a dialog box to provide a user interface. A dialog box enables
users to send information into your UnitOp, for example the number of stages for a
distillation UnitOp. No matter what method you use to program your UnitOp, you
will use the Dialog Editor program to create the user interface.
CHEMCAD Version 7 User Guide 129
Customizing CHEMCAD
objects and properties. You should also have a firm understanding of simulation in
CHEMCAD before venturing into Dialog Editor.
The Dialog Editor program is separate from CHEMCAD. To launch it, select
Start > All Programs > Chemstations > Utilities > Dialog Editor.
Figure 9-10: The Dialog Editor window showing an open dialog
A detailed description of how to use the Dialog Editor is available on the
Chemstations website.
130 CHEMCAD Version 7 User Guide
Chapter 10
Data Interfaces
CHEMCAD enables you to exchange data with other programs through a variety of
methods. This saves time, effort, and the potential for keystroke error and data
omissions. In some cases, these data interfaces can enable CHEMCAD to link
directly into your plant information systems to run simulations without human
intervention.
The data interfaces that CHEMCAD uses are as follows:
• The Excel Data Map interface, which can link any value in a CHEMCAD
simulation to any cell in an Excel worksheet, or vice versa (note that running
CHEMCAD simulations from Excel requires a COM interface, described
below)
• The Visual Basic Application interface, which enables you to build custom
reactions, mixing rules, and UnitOps
• The OPC interface, which permits any OPC Client application to access
values in a CHEMCAD simulation
• COM interfaces, which allow any COM‐enabled program (such as MATLAB)
to access and control a CHEMCAD simulation
CHEMCAD Version 7 User Guide 131
Data Interfaces
Figure 10-01: The Excel Data Map Editor
132 CHEMCAD Version 7 User Guide
Data Interfaces
2. Click the Browse button and locate the target workbook. Select the workbook
file and click Open.
3. In the cell next to Excel Worksheet Name, type the name of the worksheet to
which you want to link your simulation.
Note: If you need to verify the name of the worksheet, you can click the Open button
to launch Excel and view the workbook.
4. Double‐click the cell below Map Rule to see a drop‐down list of mapping
options:
• To Worksheet Only enables you to send data from streams or UnitOps in
CHEMCAD to the selected worksheet.
• To CC Only enables you to send data from any cell on the worksheet to
the selected stream or UnitOp parameter in your simulation.
• For data reconciliation enables you to manipulate the data using
CHEMCAD’s Data Reconciliation feature.
Figure 10-02: Selecting a Map Rule option in the Excel Data Map Editor
5. Double‐click the cell below CC Obj Type to see a drop‐down list of mapping
options:
• Stream enables you to link an Excel cell or cell range to a stream on the
flowsheet.
• UnitOp enables you to link an Excel cell or cell range to a UnitOp on the
flowsheet.
• Misc enables you to change dynamic flowsheet settings.
6. Click the cell below CC Obj ID. Type the ID number of the stream or UnitOp
to which you want to link.
7. Double‐click the cell below Par ID to see a drop‐down list of parameters for
the selected UnitOp or stream. Scroll down and select an option from the list.
CHEMCAD Version 7 User Guide 133
Data Interfaces
Note: When you are importing cell data into CHEMCAD, the list of parameter
options is limited, as many values in a CHEMCAD simulation are calculated based
on other values.
8. If you chose a parameter that is related to a specific component (e.g., Comp
Mole fraction), you will need to specify the component. Double‐click the cell
below Component to see a drop‐down list of available components. Select a
component from the list.
9. Click the cell below WrkSht Cell/Range. Type the cell address or cell range
to which you want to link. Cell addresses should be formatted with the
column letter and row number, e.g., A1 or D17. Cell ranges should be
formatted as two such addresses (representing the range’s first and last
values) separated by a colon, e.g., A1:A12 or B5:E20.
10. If you are performing a data reconciliation, you can use the Weight column
to give certain items in the reconciliation more importance than others.
11. Repeat the procedure until you have specified all of the cells or cell ranges
that will link to your simulation.
12. Save the Data Map by selecting File > Save As. Type a name for your Data
Map and then click OK. The newly created Data Map now appears on the
CHEMCAD Explorer under the Data Maps item.
Figure 10-03: List of available Data Maps in CHEMCAD Explorer
13. To leave the Data Map open and return to your simulation, use the tabs at the
bottom of the main CHEMCAD workspace. To close the Data Map, select
File > Close, or click the red X button on the Data Map’s tab.
134 CHEMCAD Version 7 User Guide
Data Interfaces
Figure 10-04: The dialog box for configuring execution rules
2. Click the square button next to the first field in the Select Data Maps column
to bring up the Select Data Map dialog box.
Figure 10-05: Selecting a Data Map from the list
3. Select the name of the Data Map for which you want to set rules, and click
OK to return to the Data Map Execution Rules dialog box. Repeat this step
for all other Data Maps whose rules you want to set up at this time.
CHEMCAD Version 7 User Guide 135
Data Interfaces
4. In the Before Simulation Runs field next to each selected Data Map, click the
drop‐down list to choose an action for that Data Map to perform before
calculations begin:
• Do Nothing performs no action before the simulation is run. You might
use this option to disable a Data Map temporarily.
• To Workbook sends the requested data to Excel before running the
simulation. You might use this option when you want to pull data from
inlet streams or UnitOp specifications.
• To CHEMCAD sends the requested data in Excel to CHEMCAD before
running the simulation. You might use this option when you want to feed
data to inlet streams or UnitOps with data from the Excel worksheet.
5. In the After Simulation Runs field next to each selected Data Map, click the
drop‐down list to choose an action for that Data Map to perform after
calculations are complete:
• Do Nothing performs no action after your simulation has run. You might
use this option to disable a Data Map temporarily.
• To Workbook sends the requested data to Excel after running the
simulation. You might use this option when you want to send data from
streams or calculated parameters of UnitOps to the workbook in Excel.
Figure 10-06: Three different Data Maps with rules set up
6. When you have configured all of the Data Maps that you want to use, click
OK to save your rules and close the Data Map Execution Rules dialog box.
You can now run the simulation. If you open the Excel files that are linked to the
simulation, you will be able to see the parameters of streams and UnitOps related to
the Excel Data Map. You can also perform your own calculations in the workbook
based on the data linked to CHEMCAD.
136 CHEMCAD Version 7 User Guide
Data Interfaces
Specification Sheets
Using the interface with Microsoft Excel, CHEMCAD allows you to output
simulation data to an Excel spreadsheet resembling a vendor specification sheet, as
discussed in Chapter 8, Output and Reports. Customizing these spec sheets saves you
time by outputting data in the format required by your company or vendor.
To customize the spec sheet for a specific UnitOp type, edit the corresponding
Excel spreadsheet in the following directory:
C:\Program Files\Chemstations\CHEMCAD 7\templates
If the UnitOp type you want is not represented by the Excel files in this directory,
you can copy the generic specsheet.xls file and use it as a template for a new UnitOp
spreadsheet.
CHEMCAD Version 7 User Guide 137
Data Interfaces
Place the copy in the same directory, and make its file name the standard four‐
character abbreviation for the UnitOp type in question. For example, to create a spec
sheet template for the Flash UnitOp, you would need to name the file copy flas.xls.
See the CHEMCAD Help information about your specific UnitOp if you need to look
up this abbreviation.
Before you continue, you will need to turn off the Read‐only attribute for the
new spreadsheet file. The quickest way to do this is to right‐click the file within the
Windows Explorer, select Properties, and then clear the Read‐only check box in the
Properties dialog box.
Once the copy is renamed and the Read‐only attribute is turned off, you can
open the spreadsheet and edit it as needed.
OPC Applications
OPC can be applied as follows:
• Inferential sensors: Sometimes called soft sensors, inferential sensors use one
or more measured variables to estimate another variable. Using CHEMCAD
simulations and data from your plant’s DCS, you can embed simulations to
provide data such as concentrations, heat duty, and fouling factor, which
would not normally be available.
• Operator training: You can couple an operator HMI to a dynamic simulation
to create a training simulator that can help train operators in a safe and
effective way.
138 CHEMCAD Version 7 User Guide
Data Interfaces
OPC Compliance
Chemstations is a Member of the OPC Foundation, an organization devoted to
maintaining the OPC standards. CHEMCAD has been certified for, and interop
tested for, OPC DA standard 2.05a.
CHEMCAD Version 7 User Guide 139
Data Interfaces
Note: Most of the data items in a simulation have engineering units associated with
them. In these cases, we usually define two separate tags, one containing the data
value and the other containing the units string. All units strings are read only from
OPC. The units strings are governed by the settings inside the simulation.
The groups in CHEMCAD’s OPC namespace are organized as follows:
140 CHEMCAD Version 7 User Guide
Data Interfaces
• CHEMCAD.SimulationServer: This is the OPC server name. By convention,
this name is followed by a version number, e.g.,
CHEMCAD.SimulationServer.1, to indicate the OPC Server version. This is
the server name to which OPC clients will connect.
• CHEMCAD Group: This group contains any information that is not
dependent on a stream or UnitOp, and all commands used to run
CHEMCAD.
• Streams Group: This group contains a series of subgroups, one for each
stream on the flowsheet numbered by stream ID number.
• UnitOperations Group: This group contains a series of subgroups, one for
each unit operation on the flowsheet, numbered by UnitOp ID number.
COM Interfaces
Component Object Model (COM) is a Microsoft‐standard platform that enables
programs to share content such as data and calculation routines. This interface
makes it possible for other programs to control a CHEMCAD simulation.
CHEMCAD acts as a COM server, so any program that can act as a COM client
can be made to interface with CHEMCAD in this way. If you aren’t certain whether
your application can act as a COM client, check with the software vendor.
Note: Using the COM interface to CHEMCAD is a complicated procedure that
requires some experience in programming. If your organization lacks in‐house
expertise in programming, consider bringing in a third‐party resource to assist you
with the procedure.
The following section is a brief walk‐through of a simple COM interface between
Excel and CHEMCAD.
CHEMCAD Version 7 User Guide 141
Data Interfaces
• Read the revised values back into Excel
Normally, using COM interfaces involves some programming. We have created
an example called VBCLient.xls to help you overcome that hurdle; you don’t need to
write any code at all to use this tool. Even if you need to write your own program,
the code in the macros of VBClient will come in handy as a guide.
Note: Some values are read‐only. For example, VBClient does not allow you to
change a stream’s total flow rate directly; you must instead change the component
flow rates to make a change to the total flow rate.
3. Click Save Data to push your changes to the CHEMCAD simulation.
4. Click Run All to run the simulation.
5. Note the changes to the data on the Streams and UnitOps sheets.
142 CHEMCAD Version 7 User Guide
Data Interfaces
strJobName = ""
selUpdateStrUopData = True
selOK = False
End If
Call UpdateVersion
End Sub
The most important line in that whole subroutine is:
Set objCHEMCAD = CreateObject("CHEMCAD.VBServer")
In that single line, Excel loads CHEMCAD into memory.
Loading a simulation is accomplished with this simple line from the subroutine
called LoadJob:
retval = objCHEMCAD.LoadSim(strJobName, 0)
Running a simulation can be as simple as this line from the RunJob subroutine:
retflag = objCHEMCAD.RunJob
The COM Interface Reference section of the CHEMCAD Help file (listed under
the heading Customization) provides a full reference of the commands available
through COM.
CHEMCAD Version 7 User Guide 143
Data Interfaces
144 CHEMCAD Version 7 User Guide