Using Excel VBA For Process-Simulator Data Extraction
Using Excel VBA For Process-Simulator Data Extraction
Babak Firoozi
Fluor Corp.
FIGURE 1. Process simulation software helps capture a full picture of a plant's performance and can enable engineers to access large amounts of design data for projects
WWW.CHEMENGONLINE.COM
OCTOBER 2016
CHEMICAL ENGINEERING
FIGURE 5. A simple flowsheet is given to demonstrate the generation of the HMB table for three
crude slates
he following code presents a simple example of the GetValue command for the
given spreadsheet data:
68
CHEMICAL ENGINEERING
WWW.CHEMENGONLINE.COM
OCTOBER 2016
FIGURE 6. An HMB table can be easily generated for multiple design cases using VBA
software products.
Edited by Mary Page Bailey
Editors note: Expanded code
examples can be found with
the online version of this article
at www.chemengonline.com.
References
1. Aspelund, A., others, An Optimization-Simulation Model
for a Simple LNG Process, Computers & Chemical Engineering, 34.10, pp. 1,6061,617, 2010.
2. Aspen Hysys Customization Guide, March 2011.
Author
Babak Firoozi is a process engineer working in the Energy and
Chemicals division of Fluor Corp. (3
Polaris Way, Aliso Viejo, CA, 92698;
Email: babak.firoozi@fluor.com).
Firoozis process engineering experience is in the oil-and-gas industry, primarily focusing on process
simulation, downstream refining
and landfill-gas processes. He
earned his B.S.Ch.E. from the University of Baja California, Mexico, and he earned his M.S.Ch.E. from California
State University. He also is a registered Professional Engineer in the state of California.
Corporation Stops
Digital Z Series
Solenoid Pump
Calibration
Cylinders/Columns
PBV & RPV Series
Pressure Valves
Hayward is a registered trademark
of Hayward Industries, Inc.
2016 Hayward Industries, Inc.
Thermoplastic Valves
Strainers
Filters
Instrumentation
Pumps
Circle 14 on p. 78 or go to adlinks.chemengonline.com/61500-14
CHEMICAL ENGINEERING
WWW.CHEMENGONLINE.COM
OCTOBER 2016
69