Chemcad User Guide 2022
Chemcad User Guide 2022
User Guide
All material © 2022 Chemstations
CHEMCAD User Guide
Table of Contents
Stream .................................................................................................................................................... 98
UnitOp ................................................................................................................................................... 99
Distillation ........................................................................................................................................... 100
Flowsheet ............................................................................................................................................. 100
Dynamic ............................................................................................................................................... 101
UnitOp and Stream Groups.................................................................................................................. 101
Creating a Group ................................................................................................................................ 102
UnitOp and Stream Group Commands .......................................................................................... 103
Choosing Groups in the Select Streams and Select UnitOp Dialogs ........................................... 103
Report Viewer Setup.............................................................................................................................. 104
Printing CHEMCAD Reports and Charts .......................................................................................... 104
Consolidated Reports and the CHEMCAD Report Writer .............................................................. 105
Choosing and Ordering Report Sections ........................................................................................ 105
Selecting Flowsheet Elements ........................................................................................................... 106
Formatting Report Sections............................................................................................................... 106
Naming the Report and Choosing a Destination ........................................................................... 107
Selecting a Report Viewer for Consolidated Reports .................................................................... 108
Property Sets ........................................................................................................................................... 108
Built-in Property Sets ......................................................................................................................... 108
User-created Property Sets ................................................................................................................ 109
Different Sets for Different Purposes ............................................................................................... 109
The Property Set Preferences Dialog ............................................................................................... 109
Active Set Designations ..................................................................................................................... 110
Editing a Property Set ........................................................................................................................ 110
Creating a New Property Set ............................................................................................................ 111
Copying an Existing Property Set .................................................................................................... 112
Format Tab Options ........................................................................................................................... 112
Resetting Built-in Property Sets........................................................................................................ 113
Deleting a User-added Property Set ................................................................................................ 113
Using the Property Set Library ......................................................................................................... 113
Sharing Property Sets with Other CHEMCAD Users ................................................................... 114
Creating Process Flow Diagrams ......................................................................................................... 115
Adding Flowsheet Databoxes ........................................................................................................... 115
Using Title Blocks ............................................................................................................................... 118
Using the Layers Feature for Selective Viewing and Printing ..................................................... 121
Printing a Process Flow Diagram ..................................................................................................... 124
Welcome to CHEMCAD, 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.
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.
CC-STEADY STATE
CC-SAFETY NET
CC-DYNAMICS
CC-THERM
CC-BATCH
CC-FLASH
VB/COM/OPC/Data Map
Sensitivity/optimization
Sizing (line/valve/orifice/vessel)
Run steady state
Run dynamics
Run recycles
Costing
Reconciliation
Sizing columns
Sizing heat exchangers
Economics
Reports (incl. Excel)
DIERS
CO2 solid
Hydrates
Depress
TOC/COD
Pure regression
BIP regression
Electrolyte regression
Rate regression
Units calculator
Execute parser
Environmental report
Simple calculator
Spec sheet
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
Batch column
Calculator
Centrifuge
Component separator
Compressor
Control valve
Controller
Crusher/grinder
Crystallizer
Cyclone
Divider
Electrostatic precipitator
Equilibrium reactor
Excel unit
Expander
Fired heater
Flash
Gibbs reactor
Heat exchanger
Hydrocyclone
Kinetic reactor
Liquid/liquid extractor
LNGH exchanger
Loop
Membrane
Mixer
CC-STEADY STATE
CC-SAFETY NET
CC-DYNAMICS
CC-THERM
CC-BATCH
CC-FLASH
Node
PID controller
Pipe simulator
Polymer reactor
Pump
Ramp controller
Relief device
Run subflowsheet META unit
SCDS distillation column
Screen
Sedimentator
Shortcut column
Solids dryer
Solids washer
Stoichiometric reactor
Stream reference
Tank
Time delay
Time switch
Tower distillation column
Tower plus distillation column
User-added module
Vacuum filter
Valve
Venturi scrubber
Vessel
Vessel reactor
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 recommended 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 when installation is
CHEMCAD System Requirements complete and it’s time to set up
Processor: 1 GHz or faster, 32- or 64-bit licensing.
Operating system: Windows 7 or later
If you’ll be using a hardware
(all 32- and 64-bit versions)
dongle to license CHEMCAD, make
RAM: 1 GB for 32-bit, or 2 GB for 64-bit
sure the dongle is inserted into a
Video card: DirectX 9 graphics device with
WDDM 1.0 or higher driver USB port before you attempt to run
Display resolution: 1920 x 1080 or higher
the program.
Hard disk space: 16 GB (32-bit) or 20 GB To obtain the CHEMCAD
(64-bit) for installation, 1 GB free space installation file, you’ll need a live
recommended
Internet connection and a web
Productivity software: Some features
browser. You can either download
require Microsoft Office®
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.
Figure 2-01: The User Login button on the website home page
Figure 2-02: Clicking the Forgot your password? button on the login screen
3. On the next screen, enter a valid e-mail address and then click the Send button.
Be sure to use your company address, as the login system will match your
address against our customer database.
4. 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.
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.
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.
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.
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.
The Installing CHEMCAD Suite screen appears, showing the progress of your
installation with a green status bar.
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.
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.
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 NXT.
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 short time,
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, this dialog may initially display with the title Searching for
Licenses, indicating 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, the CHEMCAD License Monitor title will appear and licensing
will proceed.
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 clicking the File
tab and then selecting 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.
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
2. Click Setup 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 Browse
to navigate to the 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 select the .DNG file and 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
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 clicking Help
in the top right corner of the program screen. 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.
This chapter takes you on a tour of the CHEMCAD screen, including the tabbed
command ribbon, 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.
Command ribbon
Explorer pane
Workspace
Palette pane
Messages pane
Status bar
Figure 3-01: The full CHEMCAD program window
Note that the File tab behaves differently than the other tabs. Clicking this tab
brings up a list of commands that are applied at the file or program level, including
opening, closing, or saving a simulation; printing a flowsheet or simulation notes;
and setting up licensing and various program preferences. It’s a good idea to take a
few minutes to familiarize yourself with these commands as you begin to work with
the program.
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
charts and reports, and run and tweak process simulations.
When you first launch CHEMCAD, the workspace is empty. 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 charts. At the bottom of
the workspace area, you’ll see one or more tabs whenever a simulation is open.
Each workspace tab includes a button marked with an X; to close any tab, simply
click that tab’s X button.
Figure 3-04: 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 an empty space.
The Explorer pane 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 triangle that points to the right. To
expand an item, click the triangle. Two things happen simultaneously when you
click: the tree expands to show that item’s contents, and the triangle shifts to point
downward. You can hide (or collapse) the lower-level items again by clicking the
triangle again. Figure 3-06 shows an example of an Explorer item in collapsed and
expanded view.
Figure 3-06: Clicking to expand an item (left); the resulting view (right)
Expanding and collapsing items in the Explorer tabs is one way that you can
make the best use of your screen space when working in CHEMCAD.
Selecting a Palette
To select a palette, simply click its title bar. The selected palette expands in place, as
shown in Figure 3-07.
Figure 3-08: A Tower Plus icon in (left to right) Grayscale, System Color, and Wireframe color
schemes
You can apply a color scheme to any 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
the color scheme of a palette does not affect any icons previously added to 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.
off the top edge of the pane. If needed, you can use the vertical scroll bar on the right
side of the pane to scroll up and review earlier messages.
To clear all messages from this tab, right-click anywhere within the tab and click
Refresh Errors and Warnings.
Resizing a Pane
The simplest way to alter the appearance of a pane is to resize it. You can make the
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 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-09.
Figure 3-09: 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.
Initially, all the panes are docked, meaning that they are “snapped into” an edge
of the screen. When you undock a pane, you can put it in the location of your choice,
away from the screen edge.
To undock a pane, click and drag the pane’s title bar, that is, the bar at the top of
the pane that shows the pane name. Release the mouse button when the pane is in
the desired location.
CHEMCAD User Guide 27
The CHEMCAD Interface
Figure 3-10: The Explorer pane, undocked and moved onto the workspace
You can also dock a pane to a different edge of the screen. To do this, click the
pane’s title bar and begin to drag it away from its current location. A selection box
appears near the center of the workspace, showing all available docking locations.
When your mouse cursor points at any of these docking icons, the corresponding
area of the screen will be highlighted, as shown in Figure 3-11. Release the mouse
button to dock the pane to that location.
If you click the pin icon, the pane suddenly disappears from view—but it isn’t
gone. Instead, a small 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 horizontal. Use the tools on the 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-13: An unpinned pane in use; note the horizontal pin icon and the Explorer tab at left
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.
You can turn on a visible workspace grid to use as a guide while creating your
flowsheet. Click Show Grid to toggle this feature on or off.
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.
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-15: The Snap to Center feature in action, showing when objects are centrally aligned
Selecting Change Grid Size brings up the Grid dialog box, which enables you to
customize the look and spacing of the grid lines when the visible grid is turned on.
The Stream Styles tool enables you to customize the way that stream lines
appear on the flowsheet. The Stream Styles dialog includes settings for stream line
width and arrow size, as well as for the behavior of stream intersections. A full
discussion of stream intersections and the use of the Stream Styles settings is
included in Chapter 5, Building and Using a Basic Simulation.
The Font tool enables you to change the appearance of text on flowsheet objects.
If you click Font with one or more flowsheet objects selected, the settings you choose
for size, style, and so forth will apply only to those objects. If you click Font with no
30 CHEMCAD User Guide
The CHEMCAD Interface
objects selected, the font properties you set will apply to future flowsheet objects that
display text.
The Stream Box, UnitOp Box, TP Box, and Excel Range Tools
Using these commands, you can insert various kinds of customized data boxes, in
table form, on your flowsheet. This makes it easy to view current stream, equipment,
temperature/pressure/flow rate, or imported Excel worksheet information in the
CHEMCAD workspace. For a complete discussion of these tools, refer to Chapter 8,
Output and Reports.
Double-click the desired file to return to the main workspace, where the image will
appear highlighted with sizing handles.
As with any other flowsheet object, you can click and drag the image on the
workspace, use the sizing handles to make the image larger or smaller, align the
image with other objects, and even rotate or flip the image.
Figure 3-18: Expanding the drawing tool gallery (left), full gallery showing a tooltip (right)
For other drawing objects, instead of simply clicking and dragging, you must
click multiple times on the workspace to create the line or shape. The following tools
can be used to create multi-sided shapes with many mouse clicks; note that you must
double-click to complete the drawn object and turn these tools off.
● Pipe Line ● Bezier Line ● Closed Bezier
● Path Line ● Polygon
● Spline Line ● Closed Spline Line
To draw these items, you will need to click and drag to define a shape, then click
exactly two points along the shape to complete the drawn object.
● Extend Arc ● Pie ● Chord
After you have drawn a shape on the workspace, the drawing tool is turned off,
and the mouse pointer reverts to a selection arrow. To draw another shape, simply
click the appropriate shape button again.
To make a line or shape exactly like the first one you drew, click the drawn object
to select it, then right-click and use the Copy and Paste commands to place a
duplicate on the flowsheet.
Any drawn object can be easily moved, resized, reshaped, or rotated, using the
green sizing and rotating handles that appear when you select the object. You can
also change the outline or fill appearance on a selected object, by right-clicking and
choosing Line or Fill from the pop-up menu.
Tools for controlling the relative placement of flowsheet items are located in the
Align group. Using these commands, you can align objects in any direction, and
distribute a set of selected items evenly within a given space.
CHEMCAD User Guide 33
The CHEMCAD Interface
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.
The Rotate and Flip commands can be used to change the orientation of single
objects, grouped objects, or multiple objects selected using [SHIFT]-click.
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 pointer 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
away, toward the top edge of the mouse. To zoom out, roll the wheel down toward
the bottom of your mouse, pulling your fingertip toward your palm. When you
zoom in and out this way, the focal point for the zoom is the location of the mouse
pointer.
You can also click and hold the mouse wheel to pan across the workspace. If
your mouse is not equipped with a scroll wheel, click Auto Pan on the status bar and
then click and drag to pan. To turn off the pan feature, you can either click Auto Pan
again, right-click the mouse, or press [ESC] on the keyboard.
Next to Auto Pan are two buttons used to change the zoom level, or
magnification, of your workspace view. To center the entire flowsheet at the largest
size that will fit in the available workspace Click Zoom to fit. To zoom in on a
specific area of your flowsheet, click Zoom rectangle and then click and drag to
outline the area you want.
To the right of these commands is a slider bar with a numeric percentage display.
You can click and drag the slider to the left to zoom out, or to the right to zoom in.
For small, controlled zoom adjustments, you can click the minus or plus signs on the
ends of the slider bar. When you use the slider bar, the zoom action is centered on
the current center point of the workspace display.
The final zoom tool is a percentage display. Click the number to bring up a Zoom
dialog where you can choose a magnification level or type in a custom zoom
percentage.
Figure 3-23: View tools: Auto Pan, Zoom to Fit, Zoom Rectangle, slider bar, zoom percentage
To lock a specific object in place, click to select that object (a stream, UnitOp, text
box, drawn object) and then click Lock Flowsheet Elements. 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-25: 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 them all with one click of the lock or unlock command.
To lock or unlock the entire flowsheet, simply click into a blank area of the
workspace to ensure that no objects are currently selected, then click the desired
locking command. This approach affects all items currently on the flowsheet; if you
add more items, they are initially unlocked by default.
All 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.
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.
If you should have trouble locating a particular simulation, you can search your
hard drive or network for all files with a .ccsim file extension.
Saving a Simulation
To save all changes in a simulation that you have already named, click Save on the
Quick Access Toolbar, or press [CTRL + S] on the keyboard.
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, click the File tab and then
select Save Simulation As. The Save As dialog box appears, with CHEMCAD
simulation (*.ccsim) 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.
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 keep or discard.
Saving and storing all 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.
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 program or attach the simulation file from
within an e-mail program.
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 file, and add the
file as an attachment before sending.
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 NXT copy. Click
Save again to create and open the new file.
To import a simulation file that was created with CHEMCAD 6, you must first
open and save that file using CHEMCAD 7, and then bring the file into CHEMCAD
NXT using the method described here.
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.
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.
Figure 5-02: Using the Search field to locate the Water component
Note that with every character that you type, the list of components that may
match your entry becomes shorter, making it easier to locate 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 RN® 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.
Note: You can add your own custom components to the CHEMCAD component
database. For more details about this feature, see Chapter 9, Customizing CHEMCAD.
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 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-04: 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.
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.
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 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, click the View tab, then click Palette in the Show group. 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.
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.
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.
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, as it is used in various reports and charts related to the simulation.
The UnitOp ID is displayed in an oval, easily distinguishable from the
rectangular boxes used to display Stream IDs.
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.
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-07: 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, as it is used in various reports and charts related to 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.
Click the Specification tab, then in the Simulation group, click Starting IDs.
This brings up the Stream and UnitOp Starting IDs dialog box. Here you will see
each type of UnitOp available in CHEMCAD, each with a default Starting ID 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 yet been used in this simulation.
To set up separate ranges of numbers for different equipment types, you can edit
the values in the Starting ID column. 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 main pool starting with 1, skipping any
numbers that are already assigned.
Click OK to put your selected starting IDs into effect.
UnitOp Names
In addition to the assigned ID, you can give a UnitOp a name, using any
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.
By default, a newly added UnitOp name will appear beneath the number 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.
To view or hide all UnitOp names on the flowsheet at once, click the View tab,
then in the Flowsheet group, either check or clear the Show UnitOp Names box.
Note: Once a feed or product arrow is connected to a stream, you can double-
click the arrow to open the Edit Streams dialog for the associated stream.
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.
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.
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, as it is used in various reports and charts related to the
simulation.
The stream ID is displayed in a rectangular box, easily distinguishable from the
ovals used to display UnitOp IDs.
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-09: 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.
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.
Click the Specification tab, then in the Simulation group, click Starting IDs.
This brings up the Stream and UnitOp Starting IDs dialog box. Scroll down to the
Stream option and click the right column. Enter the number that will be the start of
your separate stream ID pool and then 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
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 any
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
stream ID box. To hide a single stream’s name, right-click the stream and clear the
check mark next to Show Name; simply click this menu item again to make the
stream name visible.
To view or hide all stream names on the flowsheet at once, click the View tab,
then in the Flowsheet group, either check or clear the Show Stream Names box.
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 User Guide 59
Building and Using a Basic Simulation
Figure 5-10: 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, click the Drawing
tab, then in the Workspace group, click 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. Click the File tab, then Preferences. In the Preferences
dialog, click Stream Styles in the left column. This brings up the same list of stream
intersection options, but when you select one and click OK, the chosen style will
become the global default for this CHEMCAD installation.
Note that you can also change the size of the stream jumps in both the local and
global settings for stream intersections. The default size is 48, which is well
proportioned for use with standard UnitOp sizes.
Defining Streams
At this point, 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 any of these methods:
• Double-click the stream.
• Right-click the stream line and select Edit Stream.
• On the Home tab, in the Specification group, click Edit Streams. Enter the
stream number you want to edit and then click OK.
• On the Explorer’s Simulation tab, expand Flowsheet and then Streams,
right-click the stream in question, and select Edit Stream. (This is a useful
approach for especially large and complex flowsheets.)
To edit multiple streams at once, you can use the following methods:
• Hold down [SHIFT] and click to select multiple streams on the flowsheet, then
right-click and select Edit Stream.
• Click Edit Streams in the Home tab’s Specification group, then either type
the stream numbers into the Select Streams dialog box or click the streams on
the flowsheet to add them to the list. Click OK when finished.
• To edit all the feed streams in the flowsheet at once, click the Edit Streams
drop-down (Home tab, Specification group) and select Edit Feed Streams.
Similarly, to edit all the cut streams in the flowsheet, select Edit Cut Streams
from the same drop-down.
The Edit Streams dialog box displays with either a single column of data (for one
stream) or a column for each stream that you have selected. Use this dialog box to
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 thermodynamic 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.
• Total flow
• Total flow unit
If you enter composition amounts using quantitative flow units, CHEMCAD
calculates the total flow rate for you.
Figure 5-11: 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.
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. To do this, simply click Run
All in the Home tab’s Run group.
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.
If the flowsheet run has converged, the message Flowsheet calculation has
converged will appear in a pop-up message window, as well as in the Messages pane.
The word Converged will also appear near the center of the status bar; this message
will continue to display until you make changes to the flowsheet or the simulation
models that could affect convergence, and it will reappear after each successfully
converged run.
For preliminary checks of individual UnitOps or groups of UnitOps, you can
click Run Selected instead of Run All; either highlight the relevant UnitOps on the
flowsheet before invoking this command or select them afterward in the Select
UnitOps dialog box. You can also right-click any UnitOp on the flowsheet and select
Run This UnitOp.
Note: CHEMCAD reports, plotting, and chart printing are covered in detail in
Chapter 8, Output and Reports.
Simulations created 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.
Figure 6-01: Commands for sizing various UnitOps, accessed via the Sizing tab
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, first click the Sizing tab. In the Flow group, click
Piping, and then select the relevant stream or streams. 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
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.
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, first select a Flash UnitOp, then click the Sizing tab.
In the Vessel group, click 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.
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.
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
To size a control valve, first click the Sizing tab. In the Flow group, click 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.
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.
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, first select the UnitOp representing the distillation
column, then click the Sizing tab. In the Distillation group, click 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
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
You can use the rigorous CC-THERM model to calculate heat exchanger
performance. 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.
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, first click the Sizing tab. In the
Safety group, click Relief Device to bring up the DIERS for Relief Device Sizing
dialog. Here you can 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.
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.
While steady-state modeling can provide all 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
(File tab, then Licensing).
If you don’t currently have access to the dynamics features and want to add CC-
DYNAMICS to your installation of CHEMCAD, contact the person within your
CHEMCAD User Guide 77
Building and Using a Dynamic Simulation
Switching to Dynamics
To switch to dynamics, first open the simulation. On the Home tab, simply click the
word Dynamic in the Run group.
After you do this, 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 left 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.
• The steady-state commands on the Home tab’s Run group are now
unavailable, and the dynamics commands are activated.
Figure 7-02: 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-03: 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
or UnitOp parameter that will trigger the end of this step, if that parameter is
reached before the step’s run time is up.
3. When you have selected all the streams you want to record, click OK to
return to the main workspace.
4. Now click the Set Run Time drop-down again, and this time select 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 Chart check boxes to include selected items in a real-time chart. Selecting
items for runtime plotting leads to another dialog box (either Dynamic Stream
Chart Options or Dynamic Equipment Chart Options), where you can select
chart 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.
6. Before proceeding, click Save in the Quick Access Toolbar to ensure that the
current settings are used as the simulation’s initial state.
To return the simulation to its initial state—also known as time zero—simply click
Reset to Initial State.
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.
In dynamics mode, you have three options for running a simulation: run from
the simulation’s initial state, run from the simulation’s current state, or manually
advance the simulation one interval at a time.
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.
Figure 7-05: Selecting the command to run one interval in a dynamic simulation
Note: For the Stream History and UnitOp History charts, be sure to record the
streams and UnitOps that you want to study. You can only request these charts for
recorded streams or UnitOps.
Note: For the Stream History and 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.
When you make a valid selection, CHEMCAD brings up a dialog box where you
can specify what to include in the requested chart or report. (If you choose a
selection that is not valid—for example, a chart type that is not compatible with your
current thermodynamic settings—you will see a message box explaining the error.)
After you specify the parameters for the chart or report, the results will display.
Charts and reports always display in their own tabs on the main CHEMCAD
workspace. Whenever a chart or report tab is selected, the ribbon displays
commands specific to charts or reports, respectively.
Note that there are also large icons above both the Charts and Reports
commands. When you first launch CHEMCAD, the icons displayed match the first
items in the respective galleries. When you select a different chart or report from a
gallery, you will see that item’s icon display on the command ribbon. If the next
chart or report you want to generate next is the same as your last selection, you can
simply click the icon to choose that item without opening the gallery. This can save
time whenever you find yourself generating the same chart or report repeatedly.
Figure 8-02: Icons above the Charts and Reports drop-down commands: defaults (left) and
examples of “last used” items (right)
Thermodynamic
CHEMCAD offers several charts that relate specifically to a simulation’s selected
components and thermodynamic options. To access any of these items, click Charts
to view the gallery, then select the appropriate item under the Thermodynamic
heading.
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 Chart
This selection generates a ternary phase diagram showing the distribution of three
selected components in two liquid phases, including tie lines and plait point.
Residue Curves
This selection generates and plots a graphical display of distillation zones,
azeotropes, and residue curves associated with a user-specified ternary mixture.
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.
Binary SLE
This selection displays solid-liquid equilibrium curves for binary mixtures.
Stream
CHEMCAD offers several charts that display data for selected streams on a
flowsheet. To access any of these items, click Charts to view the gallery, then select
the appropriate item under the Stream heading.
For any of these charts, you can choose the streams to include by typing in their
ID numbers in the Select Streams dialog; click the streams on the flowsheet to add
them to the stream ID list; or use All Streams, Feed Streams, Product Streams, or
Cut Streams to add groups of streams with a single click.
Stream Properties
This selection plots one selected stream property for any or all streams on the
flowsheet.
Phase Envelopes
This selection plots a phase envelope for a selected stream, highlighting the critical
point of the mixture. This chart can include plots at vapor fractions other than 0
(bubble point curve) and 1 (dew point curve).
Petroleum Assay
This selection displays a chart of one or more distillation curves for a stream.
UnitOp
CHEMCAD offers several charts that display data for a single UnitOp. To access any
of these items, click Charts to view the gallery, then select the appropriate item
under the UnitOp heading.
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.
Composite Curves
This selection plots composite heat curves for the entire flowsheet, as well as
optional heat curves for individual UnitOps.
Pipe Profile
This selection plots fluid properties for pipe UnitOps along the axial length of the
pipe. This chart requires that the pipe contain multiple segments.
Controller Convergence
For controllers that have not converged, this chart enables you to diagnose the
controller behavior that is preventing convergence. The chart shows how the
controller error function changes with iteration.
Dynamic
CHEMCAD offers a series of charts for use with dynamic, or non-steady-state,
operations. (For more on dynamic process simulation, see Chapter 7, Building and
Using a Dynamic Simulation).
To access any of these charts, click the Charts gallery, then select the appropriate
item under the Dynamic heading.
Stream History
This chart displays stream data recorded over the course of a dynamic run. Before
requesting this chart, you must first use the Record Streams command to select
streams to include, and then run the dynamic simulation.
UnitOp History
This chart displays UnitOp data recorded over the course of a dynamic run. Before
requesting this chart, you must first use the Record UnitOps command to select
UnitOps to include, and then run the dynamic simulation.
Column History
This chart displays selected data for a single dynamic run of a column. Note that in
the Dynamic Column Chart Options dialog, if you choose to plot a variable for a
specific stage, that stage must have been recorded during the dynamic run as part of
the column’s specifications.
Vessel Reactor
This chart displays selected data over time for a single dynamic run of a Vessel
Reactor UnitOp. In the Vessel Reactor Chart Options dialog, you can select various
equipment parameters to chart, and choose whether to include reactor composition
over time.
Dynamic Vessel
This chart displays selected data over time for a single dynamic run of a Dynamic
Vessel UnitOp. Composition over time can be displayed or excluded, and you can
single out a specific phase to appear on the chart.
Batch Column
This chart displays selected data over time for a single run of a Batch Distillation
UnitOp. In the Batch Column Chart Options dialog, you can choose to plot all
operation steps or specify a single step to include.
User
If you have customized CHEMCAD using VBA, C++, or other programming
languages, you can save chart data into a text file and use this feature to display that
data as a curve.
To access this feature, click Charts and then select User-specified at the bottom
of the gallery. This brings 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.
Whenever you are viewing a chart, the top of the CHEMCAD window displays
the Chart tab, beneath the title Charting Tools. On this tab, you will find specialized
commands that control the appearance of the current chart’s data and labels.
The Chart tab commands are described below.
Edit Group
Close All Charts
This command closes the current chart, along with every other chart that is currently
open. To close only the current chart, simply click the x on the chart’s tab at the
bottom of the workspace.
Save
This command enables you to save a chart within the simulation. Saved charts are
listed in the Explorer pane under Saved Charts, where you can re-open them for
later reference. This command is also used to save any changes you may have made
to a re-opened chart.
Save As
This command is much like Save, except that it brings up a Save As dialog that
requires you to provide a name for the chart that you are saving. You can also use it
to make a copy of a re-opened chart under a different name, so that you can change
the new copy’s settings or labels while keeping the original copy.
Export Chart
You can use this command to export the current chart data, either as an Excel .csv
file or as a semicolon-delimited table.
User Series
The User Series feature enables you to add a data point or series of points to an open
chart in a CHEMCAD simulation. This information appears alongside the chart’s
calculated results. This feature is discussed in greater detail later in this chapter.
Type
This setting determines whether the chart displays both data markers and
connecting lines (the default setting), only lines, or only markers.
Legend
This setting determines the location of the chart’s legend. The default location is to
the right of the chart; you can also choose to display the legend above or below the
chart, to the left of the chart, or not at all.
Fixed Axis
By default, CHEMCAD charts place the X and Y axis lines at the edges of the display
area. In cases where the range of data spans the positive and negative number space,
you may prefer to see the lines drawn at X = 0 and Y = 0 for easier reference. Clear
this check box to show the labeled axis lines intersecting at the point of origin. Note
that this option is not available for use with ternary charts.
Spline
Check this box to produce a display where data points are connected by smooth,
curved lines instead of straight lines.
Label
This field displays the default label for the relevant axis. To change the axis label,
type new text here.
Formatting
Use this drop-down set of options to customize the numbers and lines that make up
the relevant axis. The Numerical Display commands (Format Type, Format Digits)
control the way grid numbers display on the axis, and the Axis and Grid commands
(Axis Color, Grid Fade) determine the color and visibility of the axis’ grid lines.
Log Scale
Check this box to switch from linear to logarithmic scale for the relevant axis.
Assigned Series
This control is available for all but the X axis. Click the drop-down control to view
the available data series. Check or clear the box next to a series name to turn that
series on or off for the relevant axis.
Window Group
These commands offer a quick way to place all open tabs in view at the same time.
Click Tile Horizontally to arrange items across the width of the workspace, or Tile
Vertically to arrange them next to one another.
The drop-down options in this dialog enable you to set the color of the data
points and connecting lines for the series; change the line width and style; and apply
a distinctive shape and size to the data points. The Apply shadow check box provides
a shading effect that is especially useful for lighter series colors. When you have set
the series appearance the way you want, click OK to return to the chart.
When you add a user series, it becomes available for use in all current chart tabs
(for the same chart type), as well as in all future charts of the same type that you
generate for the current simulation.
First type a descriptive name in the Series Name field, then enter the desired
data points in the X and Y columns. (Note that you can paste numerical values here
from the Windows Clipboard; simply right-click in the cell where you want the first
copied value to appear and select Paste. See the full description below for more
detail.)
To save the new user series and return to your chart, click OK.
appropriate CHEMCAD chart, create a new user series as described above. After you
provide a series name, right-click the cell directly below the X column heading and
select Paste. The values you copied from another source will populate the cells of the
dialog.
Note that if you copy a block of cells that consists of more than two columns,
only the leftmost two columns will be pasted into the Add User Series dialog.
Note: To remove a point of interest that you have added to a ternary chart, first
delete the applicable user series and then close the chart tab. When you return to the
same chart (Home tab, Results group, then click the ternary chart icon above the
Charts drop-down), the point of interest will no longer be displayed.
Stream
You can run stream property reports for any grouping of streams from your
simulation, as well as specialized stream-based reports for particle size distribution
and petroleum assays.
Select
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
This report displays stream property data for every stream on the flowsheet. No
further input is required after you click All in the Reports gallery.
Feed
This report displays stream property data only for streams issuing from a Feed icon
on the flowsheet. No further input is required after you click Feed in the Reports
gallery.
Product
This report displays stream property data only for streams terminating in a Product
icon on the flowsheet. No further input is required after you click Product in the
Reports gallery.
UnitOp
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 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.
Petroleum Assay
For a text report on pseudocomponent curves (also known as distillation curves),
select Petroleum Assay from the Reports gallery. Select one or more streams
containing hydrocarbons, then click OK to display the report.
UnitOp
CHEMCAD can also run reports to analyze UnitOp data. The results will display in
either WordPad or Excel, depending on how you have configured CHEMCAD to
handle text reports.
To access any of these items, click Reports to view the report gallery, then select
the appropriate item under the UnitOp heading.
Select
To run a report that covers just the Unit Ops you specify, choose Select from the
Reports gallery. In the Select UnitOps dialog box, specify the UnitOps you want to
include in the report, either by typing in the UnitOp IDs (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 one or more UnitOp icons before running the report, the data will
display without further input.
Batch Results
This report summarizes the results of a batch distillation column simulation at the
end of each operating step.
Spec Sheet
This command exports detailed information about a UnitOp into a preformatted
Excel file. This report is useful for tasks such as soliciting a manufacturing quote for
a piece of equipment.
When you select Spec Sheet from the Reports gallery, the Select UnitOps dialog
appears. You can type in a single UnitOp ID or multiple IDs, click the desired
UnitOp icons on the flowsheet, or click All UnitOps in the dialog to create a spec
sheet for all units on the flowsheet. If you request spec sheets for more than one
CHEMCAD User Guide 99
Output and Reports
UnitOp, the resulting Excel file will include a separate worksheet for each UnitOp’s
data.
For a single UnitOp spec sheet, you can select the UnitOp icon before requesting
the spec sheet, and Excel will open and display the data without further input.
Distillation
CHEMCAD offers several reports that focus on distillation data. To access any of
these items, click Reports to view the report gallery, then select the appropriate item
under the Distillation heading.
Column Profiles
Generates a report detailing temperature, pressure, and flow rate for a distillation
column
Tray Composition
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
Mass Transfer
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)
Column Diagnosis
For columns that have not successfully converged, provides recommendations for
changing column settings to achieve convergence
Flowsheet
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 Reports gallery.
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.
User Component
This report lists the physical properties of all user-added components in the
simulation.
Dynamic
This group of reports is used to obtain data about dynamic, or non-steady-state,
processes. Dynamic process simulation is addressed in Chapter 7, Building and Using
a Dynamic Simulation.
Stream History
This report provides stream information recorded over the course of a dynamic run.
Before running this report, you must first use the Record Streams command to select
streams to include, and then run the dynamic simulation.
UnitOp History
This report provides UnitOp information recorded over the course of a dynamic run.
Before running this report, you must first use the Record UnitOps command to
select UnitOps to include, and then run the dynamic simulation.
Column History
This highly customizable report details the data from a single dynamic run of a
column.
Note: Because of this other functionality of UnitOp groups, the order in which you
list UnitOp IDs when setting up these groups is important.
Creating a Group
The quickest way to set up any group is to use the Explorer pane on the left side of
the CHEMCAD screen. Follow these steps to create a stream or UnitOp group:
1. In the Explorer pane, find the top-level item called Groups. Click the triangle
next to Groups to expand this item.
2. Now click either the Streams item or the UnitOp 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.
3. In the next dialog box, select the streams or UnitOps for this group, either by
typing in their flowsheet ID numbers (one per line) or by clicking on objects
in the flowsheet. Click OK to close the dialog box.
Note: The commands to view, edit, select, rename, copy, and delete stream and
UnitOp groups are also offered in the command ribbon, on the Specification tab.
Click the Stream Groups drop-down in the Streams group, or click the UnitOp
Groups drop-down in the UnitOps group, to see a list of existing groups. Hover
over a group name to see the available commands. The same areas of the command
ribbon also offer the Add Stream Group and Add UnitOp Group options.
these dialogs displays, the relevant group names are listed in the lower portion of
the dialog, under the Groups heading.
Selecting a custom group is as easy as choosing a built-in category such as Feed
Streams or All UnitOps—with a single click, you select the group, close the dialog,
and generate the report or chart.
Note: You can also determine the location of the date/time stamp that appears on
your reports, and if needed, specify a path to your copy of WordPad. Start by
clicking the File tab and then selecting Preferences. In the Preferences dialog, click
Report Viewer. In the Report Viewer preferences, you can specify a path to
WordPad if necessary, and choose either Footer or Header as the date/time stamp
location for your reports.
From here, you can click Generate to create 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.
• Add a section by double-clicking any item in the Add New Report Section
area of the Format tab. The new item appears at the end of the report list.
• 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 Writer and then New from the bottom of the Reports
gallery. 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.
• For Heat Curves, a section-specific UnitOp selection tab and the option to
choose a cutting method and number of cut points
Figure 8-09: 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, return to the Report Writer fly-
out menu at the bottom of the Reports gallery. Select Simulation > [Report Name] >
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.
Figure 8-10: Generating a consolidated report that has been saved locally
Similarly, to generate a report that you’ve saved globally, return to the Report
Writer fly-out menu and select Global > [Report Name] > Generate Report. As with
local reports, you can use this menu to edit, export, or delete a global consolidated
report.
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.
Note: A single property set can be assigned to both of these designations, if desired.
The active tooltip set will determine the contents of the stream tooltips that
appear any time you hover the mouse over a stream. The Quickview property set is
assigned as the tooltip set by default.
The active report property set will be used to determine which stream properties
are included in standard stream reports. The Stream Property set is the active report
set by default.
To change the active tooltip or active report designation, select the property set
name and then click either Set Active Tooltip or Set Active Report in the area below
the list of sets. When you do this, the (Tooltip) or (Report) designation will switch to
the property set that you had selected.
combination of the items in these property lists, which will display in the order you
specify.
If you want to change the properties included in a property set, or re-order the
properties, first click the desired set name in the left-hand column. You can now add
or remove check marks for properties as appropriate, to include or exclude those
properties.
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 move that item to 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 Set Preferences dialog.
Note that when you check the box by a first-level item, you select all the items in
that category. Similarly, clearing a first-level box removes all its second-level items
from the property set. A solid check box indicates that some, but not all, second-level
items are currently checked.
Figure 8-14: Property categories with no options selected (left), all options selected, and mixed
selections
As you saw with editing a built-in property set, you can use the Up and Down
buttons to move properties into the desired order. When you have finished, click OK
to save your changes.
Figure 8-15: 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-16: 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.
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.
• When you create a new simulation, all library sets will automatically appear in
the local list of stream property sets.
• 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.
opened on that user’s CHEMCAD installation, the property set will be listed in the
Local Simulation Sets list.
Simply copy the property set to the Library Sets list for that copy of CHEMCAD,
making sure to save the change by clicking OK in both property set dialogs. From
that point onward, the shared property set is available to existing simulations via the
Property Set Library, and to all new simulations automatically.
Stream Boxes
To create a stream databox, start by clicking the Drawing tab. In the Insert group,
click Stream Box. In the Select Streams dialog, you can choose All Streams, Feed
Streams, Product Streams, or Cut Streams, or you can list the specific stream IDs to
include in the stream box and click OK to continue.
The Select a Property Set dialog box displays next. 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.
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 displays 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.
Figure 8-18: 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, click the Drawing tab, then in the Insert group, click
UnitOp Box. Then either type UnitOp IDs in the Select UnitOps dialog box or click
the desired UnitOp symbols on the flowsheet. To include every UnitOp on the
flowsheet, click All UnitOps in the lower portion of the dialog, or 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, click the Drawing tab, then in the Insert group, click 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.
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, then click OK to create the TP
boxes.
Block dialog box, where you can choose any file with the extension .tbd. Your
CHEMCAD installation includes several .tbd files, which you can copy and change
to create your own reusable custom title blocks.
Double-click the .tbd file you want to use, or select it and then click OK. The
selected title block now appears on the flowsheet.
Click and drag the title block to move it to the desired location on the workspace.
Note: Be careful to use only the corner handles when resizing an image. Using the
handles along the sides of the box will distort the image, whereas using the corners
will preserve the image’s original shape as you scale it to a larger or smaller size.
You can group the image and the title block together so that they will behave as a
single unit. To do this, first click the image, then hold down [SHIFT] as you click
anywhere on the title block. Then with both items selected, click the Arrange drop-
down on the Drawing toolbar and select Group.
Now when you drag the title block to a different location, the image will move
along with it. If you ever want to remove or replace the image, you can select the title
block and then use the same method with the Ungroup command. Once the items
are ungrouped, you can select the image independently from the title block and
delete it.
You will probably want to delete some of the specific text that you copied in with
the title block, such as a date, title, or drawing number. You could choose to add
your own placeholder text, for example to suggest a standard date format, or you
may simply leave a character such as X to provide a place for users to begin typing.
To make your title block available for future use, you must save it as a .tbd file.
In the Title Block Designer tab’s Workspace group, click Save As, and then provide
a unique name. When you click Save, the workspace tab will display your new title
block name.
Close the tab to return to the main CHEMCAD workspace and the open
simulation. To test your new custom title block, click the Drawing tab, then in the
Insert group, click Title Block. Choose your new .tbd file and click Open. The
custom title block will appear on the workspace.
Note: Turning off a layer only hides its assigned flowsheet objects from view. Having
a layer hidden does not in any way affect the way the simulation runs, nor does it
change any stream or UnitOp properties.
The Explorer pane also includes a top-level item called Layers, which lists any
layers that you have created in the current simulation. On this list, you can see at a
glance which layers are currently visible ( ) and which are hidden ( ).
Figure 8-24: The Layers entry on the Explorer pane, listing visible and hidden layers
Note: To change the name of a layer you have created, either select it in the Layers
drop-down menu or right-click it in the Explorer pane list, then choose Rename. In
the New Layer dialog, type the new name and click OK.
• On the View tab, click Layers, then select the desired layer from the drop-down
list and click Show/Hide.
• In the Explorer pane, simply click the layer name.
Each time you open a simulation file, CHEMCAD displays or hides its layers
according to the way they were set the last time you saved the simulation. The status
of all layers can be seen in the Explorer pane (the eye icon indicates a visible layer,
while the eye with a slash indicates a hidden one), or in the drop-down menu when
you click the Layers command (a check mark on the list indicates a visible layer).
Deleting a Layer
To remove a layer from the simulation, do either of the following:
• On the View tab, click Layers, then select the desired layer from the drop-down
list and click Delete.
• In the Explorer pane, right-click the name of the desired layer and choose Delete.
When you delete a layer, it disappears from the Explorer pane and the drop-
down layer list. If the deleted layer had been hidden, the objects assigned to it now
reappear.
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
• Customizing UnitOp palettes and color schemes
• 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 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
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
the characteristics you want to include in the template.
Then find this stream on the Explorer pane’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. Click the word Save to
display the Enter Template Name dialog box, then type a name for your new stream
template and click OK. The new template name is now listed beneath the Save item.
To create a UnitOp template, select the appropriate UnitOp ID in the Explorer
pane, and then follow the same procedure used to create a stream template.
Applying a Template
To apply a stream template, first expand the main Flowsheet item for the stream to
be affected, either by clicking the triangle icon 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. Click the name of the
template you want to apply, then choose OK to confirm that you want to apply this
stream template.
Use the same procedure to apply a UnitOp template. Select the UnitOp to be
affected and then expand it in the Explorer pane to apply the desired template. Bear
in mind that for a given UnitOp, only templates for the relevant UnitOp type will be
listed.
Note: Any stream or UnitOp template that you create will be available for use with
all other simulations on the same installation of CHEMCAD, until and unless you
delete the template.
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, go to the Component Database tab and do one of the following:
• In the System Database group, click View/Edit 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.
• In the Simulation Database group, click View Components to bring up the
list of components in the current simulation. Double-click the component you
want in the list (or highlight the component and click View/Edit) to bring up
the View/Edit Component Data menu.
2. Select the user-added component that you want to regress and click New.
This brings up the Edit Regression Set dialog box.
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.
Note: Before you define a petroleum assay, make sure that you have specified in
your component list, as appropriate, water and any light ends that exist in the assay.
1. Click the Thermophysical tab, then in the Petroleum Assay group, click
Initialize.
2. In the Select Streams dialog box, enter the appropriate 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,
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 petroleum assay 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 data 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. 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.
11. 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.
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.
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.
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 Explorer
item again to see your newly defined item in the list.
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.
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 9-10: 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.
Figure 9-11: 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.
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.
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 a selected port.
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,
CHEMCAD User Guide 141
Customizing CHEMCAD
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.
Once you have viewed or changed the settings for a particular port and then
closed the dialog box, the port number displays next to the inlet or outlet dot. It is
recommended that you specify (or at least verify) the index setting for each inlet and
outlet port before continuing.
3. Click and drag to select the UnitOp icon and any drawn additions, then right-
click and select Publish to Palette.
4. On the UnitOp Symbol Properties dialog, specify the symbol’s name, type,
and description. When you click OK, the new UnitOp symbol is published to
the specified UnitOp subpalette.
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 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
With Excel Data Mapping, you can quickly and easily get the most of
CHEMCAD/Excel integration, even if you have no experience with Visual Basic or
Excel programming. In fact, you can use and benefit from this feature even with very
little knowledge of the Excel program.
To use Excel Data Mapping, you must first create one or more Data Maps, and
then set up rules for the execution of each Data Map in use.
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.
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.
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 the cells or cell ranges that
will link to your simulation.
12. When you are ready to save the Data Map, first make sure the Tools tab is
selected. Then in the Data Map group at the left end of the ribbon, click Save
Data Map As. Type a name for your Data Map and then click OK. The newly
created Data Map now appears in the View/Edit drop-down list in the Data
Map group.
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, click the
red X button on its tab at the bottom of the workspace.
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.
3. Select the name of the Data Map for which you want to set rules, then click
OK to return to the Data Map Execution Rule dialog box. Repeat this step for
all other Data Maps whose rules you want to set up at this time.
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.
6. When you have configured all the Data Maps that you want to use, click OK
to save your rules and close the Data Map Execution Rule 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.
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 CHEMCAD templates directory. A typical pathname for
this directory is:
C:\Program Files\Chemstations\CHEMCAD NXT\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.
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.
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.
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.
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: 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.
Sub LoadCHEMCAD()
strJobName = ""
selUpdateStrUopData = True
selOK = False
End If
Call UpdateVersion
End Sub