DEVELOPMENT OF A CAPE-OPEN 1.0 SOCKET. Introduction

Similar documents
SIMULIS THERMODYNAMICS

CAPE-OPEN and Simulis Thermodynamics enable you to use rigorous thermodynamics in MATLAB

Aspen Dr. Ziad Abuelrub

Live Formulations of International Association for the properties of Water and Steam (IAPWS)

Introduction. thermal match of the fluid with the source and sink streams (Angelino, Colonna, & Paliano, 1998).

Ammonia Synthesis with Aspen Plus V8.0

Process Design Decisions and Project Economics Prof. Dr. V. S. Moholkar Department of Chemical Engineering Indian Institute of Technology, Guwahati

Slide 1. A look into the CAPE-OPEN kitchen of COCO. Jasper van Baten, AmsterCHEM

Getting started with BatchReactor Example : Simulation of the Chlorotoluene chlorination

Exercise 1. Material balance HDA plant

CAPE-OPEN Delivering the power of component software and open standard interfaces in Computer-Aided Process Engineering

Slide 1. Reactions to COCO. Jasper van Baten, AmsterCHEM

Problem Solving Using CAPE-OPEN Software: Residue Curves Case Study

TOPIC: Conceptual Flowsheet for Production of Benzene from Toluene. Proposed Solution:

New CAPE-OPEN capabilities

SOFTWARE INTELIGENT PACKAGE FOR PHASE EQULIBRIA (PHEQ) IN SYSTEMS APPLIED IN CHEMISTRY AND CHEMICAL ENGINEERING

Exercise 1. Material balance HDA plant

STEAMEST: A Software Tool for Estimation of Physical Properties of Water and Steam

Analyzing solubility of acid gas and light alkanes in triethylene glycol

SIMULIS THERMODYNAMICS, JUST ONE MORE THERMODYNAMIC PACKAGE?

AN INTRODUCTION TO ASPEN Plus AT CITY COLLEGE

Pressure Swing Distillation with Aspen Plus V8.0

Outotec s HSC 8.0 Chemistry Software

Evaluation of the Dynamics of a Distillation Column with Two Liquid Phases

OUTOTEC HSC CHEMISTRY BENEFITS

Principles of Chemical Engineering Processes

ChemSep Case Book: Handling Missing Components

CHEMICAL ENGINEERING II (MASTERY) Professor K. Li Dr. S. Kalliadasis Professor R. Kandiyoti

Predictive Equation of State

Level 2: Input output structure

Separation Trains. Sieder et. al. Chapter 9 and 13. Terry A Ring Chemical Engineering University of Utah

MATHEMATICAL MODEL OF A VAPOUR ABSORPTION REFRIGERATION UNIT

Shortcut Distillation. Agung Ari Wibowo, S.T., M.Sc Politeknik Negeri Malang Malang - Indonesia

Process Design Decisions and Project Economics Prof. Dr. V. S. Moholkar Department of Chemical Engineering Indian Institute of Technology, Guwahati

THE USE OF SIMULINK FOR PROCESS MODELLING IN THE SUGAR INDUSTRY

Integrated Knowledge Based System for Process Synthesis

Specific Problems of Using Unisim Design in the Dynamic Simulation of the Propylene-Propane Distillation Column

"Thermodynamic Analysis of Processes for Hydrogen Generation by Decomposition of Water"

POSITION R & D Officer M.Tech. No. of questions (Each question carries 1 mark) 1 Verbal Ability Quantitative Aptitude Test 34

INTRODUCTION TO ASPEN PLUS SIMULATION

INTRODUCTION TO CHEMICAL PROCESS SIMULATORS

Development of a Thermodynamic Engine in OpenModelica

Flash Point Calculation by UNIFAC

Write a report (6-7 pages, double space) on some examples of Internet Applications. You can choose only ONE of the following application areas:

Predici 11 Quick Overview

Adam G. Hawley Darin L. George. Southwest Research Institute 6220 Culebra Road San Antonio, TX 78238

Synergy between Data Reconciliation and Principal Component Analysis.

Simulation of Methanol Production Process and Determination of Optimum Conditions

Stoichiometric Reactor Simulation Robert P. Hesketh and Concetta LaMarca Chemical Engineering, Rowan University (Revised 4/8/09)

WS Prediction of the carbon deposition in steam reforming unit (Equilibrium reaction calculation in Gibbs Reactor)

WHAT'S NEW IN HSC CHEMISTRY 6.0

Systems Engineering Spring Group Project #1: Process Flowsheeting Calculations for Acetic Anhydride Plant. Date: 2/25/00 Due: 3/3/00

Approximate Procedures for Simulation and Synthesis of Nonideal Separation Systems. Teresa do Rosário Senos Matias

Reactors. Reaction Classifications

Figure 4-1: Pretreatment schematic

PVTpetro: A COMPUTATIONAL TOOL FOR ISOTHERM TWO- PHASE PT-FLASH CALCULATION IN OIL-GAS SYSTEMS

All Rights Reserved. Armando B. Corripio, PhD, P.E., Multicomponent Distillation Column Specifications... 2

Exercise 3. Assessing the economic potential of level-2 (EP2)

Computer Aided Design Module for a Binary Distillation Column

6. What's new in HSC Chemistry 5.0

12. Petroleum Calculations

Advanced Process Analysis System

Transactions on Information and Communications Technologies vol 18, 1998 WIT Press, ISSN

Reactor Design within Excel Enabled by Rigorous Physical Properties and an Advanced Numerical Computation Package

ChemSep Tutorial: Distillation with Hypothetical Components

Full Furnace Simulations and Optimization with COILSIM1D

A Novel Software Tool for Crystallization Process Development

Semi-empirical Process Modelling with Integration of Commercial Modelling Tools

Preface Acknowledgments Nomenclature

THE PROCESS SIMULATION COURSE THE CULMINATION OF CORE UNDERGRADUATE COURSEWORK IN CHEMICAL ENGINEERING

USE OF EQUATIONS OF STATE (EOS) SOFTWARE. Donald P. Mayeaux. President A+ Corporation, LLC Black Bayou Rd. Gonzales, LA USA

The Rachford-Rice Contest

15. Studio ScaleChem Getting Started

Overview of Reacting Flow

"Thermodynamic Analysis of Processes for Hydrogen Generation by Decomposition of Water"

Chemical Engineering Thermodynamics

INDUSTRIAL EXPERIENCE WITH HYBRID DISTILLATION PERVAPORATION OR VAPOR PERMEATION APPLICATIONS

DEPARTMENT OF CHEMICAL ENGINEERING FACULTY OF ENGINEERING AND TECHNOLOGY SRM UNIVERSITY COURSE PLAN

Review of differential and integral calculus and introduction to multivariate differential calculus.

Lecture (9) Reactor Sizing. Figure (1). Information needed to predict what a reactor can do.

DISTILLATION. Keywords: Phase Equilibrium, Isothermal Flash, Adiabatic Flash, Batch Distillation

Course Name: Thermodynamics for Chemical Engineers

Dynamic Simulation of Reactor to Produce 1- Butene by Dimerization of Ethylene

Bloomsburg University Weather Viewer Quick Start Guide. Software Version 1.2 Date 4/7/2014

CHEMICAL ENGINEERING

Athena Visual Software, Inc. 1

Chemical Process Design / Diseño de Procesos Químicos

THERMODYNAMIC ANALYSIS OF MULTICOMPONENT DISTILLATION-REACTION PROCESSES FOR CONCEPTUAL PROCESS DESIGN

RATE-BASED MODELING OF TWO COMMERCIAL SCALE H 2 S STRIPPING COLUMNS

2014 Software Global Client Conference

ASPEN HYSYS ADVANCED PROCESS MODELLING TOPICS

Chapter I: Hands-on experience in SCILAB operations

Upstream LNG Technology Prof. Pavitra Sandilya Department of Cryogenic Engineering Centre Indian Institute of Technology, Kharagpur

Compact Titration. Compact Titrator G20. One Click Titration Simple & Dependable

Tutorial 11. Use of User-Defined Scalars and User-Defined Memories for Modeling Ohmic Heating

Creating Phase and Interface Models

NR402 GIS Applications in Natural Resources

A Generalized Correlation for Pool Boiling Heat Transfer Coefficient Based on Corresponding State Rule for Pure Compounds and Binary Mixtures

7th FIG Regional Conference Spatial Data Serving People: Land Governance and the Environment - Building the Capacity

Hydrocarbon Components and Physical Properties Core COPYRIGHT. Basic Terminology

Transcription:

DEVELOPMENT OF A CAPE-OPEN 1. SOCKET Eric Radermecker, Belsim S.A., Belgium Dr. Ulrika Wising, Belsim S.A., Belgium Dr. Marie-Noëlle Dumont, LASSC, Belgium Introduction VALI is an advanced data validation and reconciliation software, used online in industry to improve the accuracy of plant data. It is not a simulation software and although process simulation and advanced data validation and reconciliation are similar on several aspects, they are quite different as well. The main difference being the way plant data are handled. In simulation, plant data are used to tune various parameters of simulation models, giving a better model, while in data validation plant data are used to check and correct measurements, giving better information of the actual state of the plant. Both process simulation and data validation and reconciliation are based on a mathematical model of a process. These models are built using predefined objects modeling the process units operations and the products that are handled. Some information must be available about the physical properties of the chemical components present in the system like their molecular weight, their density, etc. On the mathematical side, process simulation has been traditionally developed on a modular sequential approach. Each process unit is represented by a mathematical model that calculates the state of the output streams knowing the state of the input streams and some unit operation specifications. Each unit is modeled after the other. When some streams are recycled, convergence algorithms are to be used. Using such an approach is not possible for data validation and reconciliation. Instead the program must generate equations that relate inputs and outputs. An optimization algorithm is then used to find the set of values that are as close as possible to the measurements while satisfying the equations. Learning Phase As a first step of this work, it was important to have a better understanding of both the CAPE- OPEN standards and the COM technology, before even starting the development work. A training course was followed, given by Prosim that has a long experience in implementations of CAPE-OPEN standards. Cape-open standards CAPE-OPEN standards are the uniform standards for interfacing process modeling software components developed specifically for the design and operation of chemical processes. The standard defines rules and interfaces that allow CAPE (Computer-Aided Process Engineering) applications or components to interoperate. They are based on universally recognized software technologies as COM and CORBA (the two middlewares supported by CAPE-OPEN). The standards are open, multiplatform and available free of charge. They are described in a formal documentation set. 1

Several versions of the standards are available today: -.9.3: Released in August 21, this version is still available to support historical applications. It should not be used for any new applications - 1.: Released in April 22. This is the currently supported version. - 1.1: The official release was made in October 26. More information about CAPE-OPEN standards can be found on the CO-LaN Website (www.colan.org). The CAPE-OPEN Laboratories Network (CO-LaN) is the internationally recognized user-driven organisation for the testing and management of the CAPE-OPEN standard. The organisation maintains the list of CO-compliant Software Components. The complete documentation set of each version of the standards can be downloaded from the CO-LaN Website in a zipped file. Here are some examples of tools using CAPE models: Steady-state and dynamic simulation, training simulators, data acquisition and reconciliation, optimization of processes, process design tools COM technology COM (Component Object Model) is an interface standard for software components introduced by Microsoft in 1993. It is used to enable inter process communication and dynamic object creation in any programming language that supports this technology. The term COM is often used in the software development industry as a term that encompasses the OLE, ActiveX, COM+ and DCOM technologies. The main advantage of COM is that it s a language-neutral way of implementing objects that can be used in environments different from the one they were created in. Although the interface standard has been implemented on several platforms, COM is primarily used in Microsoft Environment. After discussion, Belsim decided to develop the Material Object in.net C# 2.. The Material Object is the central point of the architecture and the link between our software and the CAPE-Open Property Package/Thermo Systems. Based on that, two Belsim software have been adapted to be able to create an instance of the Material Object using COM interfaces: - ValiModeller: Graphical User interface designed to model the process. This interface is developed in C++. - ValiEngine: Calculation Engine developed in FORTRAN. Several COM interfaces in addition to the one defined for CAPE-OPEN have been developed in the Material Object to ease the communication with the calling application. First Implementation A first CAPE-OPEN socket version.93 was developed in 21 but the use of a CO-Thermo Package was very difficult for a non-expert user. The Graphical User Interface (ValiModeller) was not able to deal with a third party thermodynamic model and we had to use a text editor to define a thermo plug. Furthermore, the compliance was not complete because Vali did not use the actual compounds of the CO-Thermo Package for all the calculations. Having had this experience, eased the development work of a CAPE-OPEN 1. socket. 2

Development Phase The Material Object (MO) The Material Object is the communication interface between the PME (Process Modeling Environment) and the PMC (Process Modeling Components). In the CAPE-OPEN 1. architecture, the Material Object is implemented at the PME level. In the case of our development (Thermo Socket), the Material Object was the central point of the architecture and the link between Belsim Software and Thermo Plugs making crucial this part of the system. It was decided to develop a proprietary Material Object in C# 2. using Visual Studio 25. According the specifications of CAPE-OPEN 1., the Material Object developed by Belsim implements the interface ICapeThermoMaterialObject. All Methods defined in this interface have been implemented. Cape-Open thermo plugs viewer The first graphical tool to be developed was a small tool based on COM technology to allow the user to see what Thermo Systems and Property Packages are available on a given computer. This tool has been developed in C# 2. using Visual Studio 25. Figure 1: Example of interface listing thermodynamic packages available 3

Graphical user interface (ValiModeller) ValiModeller is the Graphical User Interface in the suite of VALI software. It is developed in C++. When defining a validation problem you need to choose a thermodynamic package (list of compounds, list of thermodynamic methods and if you have binary parameters). In ValiModeller the option of choosing between Belsim s own thermodynamic package or a CAPE-OPEN package has been integrated. The user needs to select between the following options: - Build a thermodynamic package from existing integrated databases of compounds and Thermodynamic methods (called native thermo and compounds). - Select a Cape-Open 1. Thermo Property Package available on the computer. The selection is made through the viewer shown here above. ValiModeller is also able to list the compounds and properties available in the CO-Thermo Package. Figure 2: Example of interface listing information of a property package The information shown in this window is collected from the Property Package through the Material Object (MO). 4

Vali Engine In a first step, it was necessary to verify that everywhere in the code when a pure compound property is needed, the property is given by the Thermo Package (through the MO) and not by an internal calculation. These properties are: Name, Chemical Formula, CAS number, Molecular Weight, Boiling Temperature, Enthalpy of Formation. After that, the different routines used to calculate a given property of a mixture have been modified to get the result of the calculation from the Thermo Package and not from a Vali internal routine. Here are the following properties: Liquid and Vapor Enthalpy, Volume, Entropy, Gibbs Free Energy, Viscosity, Conductivity and Fugacities (or Fugacity Coefficients or Activity Coefficients). The choice to calculate flashes directly from the Thermo Package (optional) or to calculate them using the internal routines with the Properties listed above coming from the Thermo Package is also available. 5

Testing Phase Process Description We have chosen the well known hydrodealkylation (HDA) process to test CAPE-OPEN 1. thermo plug. Data come from sample flow sheets available on COCO (cape open to cape open) internet site (http://www.cocosimulator.org/index_sample.html) Hydrogen 1 9 purge gas Split 8 Toluene Feed pump 1 15 Recycle pump Mix furnace Recycle Compressor 2 4 5 6 7 Main HEX Flash cooler reactor 3 Methane fuel gas Flash 14 benzene 11 13 12 biphenyl Toluene recovery Benzene column Demethanizer Stream Pressure Temperature Flow rate Flow Hydrogen Flow Methane Flow Benzene Flow Toluene Flow Biphenyl Hydrogen 555.494 1.4 734.139 696.624 37.5151 Toluene 14.538 77 368.172 368.172 purge gas 475.724 1.4 72.699 333.331 381.663 5.12483.5824 7.4942e-5 Methane fuel gas 145.38 11.64 25.7949 1.78439 23.396.7943 4.74478e-5 benzene 14.538 175.58 349.751 2.12628e-16 349.736.157672 biphenyl 14.538 466.464 6.6652 3.88561e-1.11862 5.94792 Unit psi F Figure 3 : HDA process (COFE software) HDA process converts toluene to benzene. The main reaction path is: CH 7 8 + H2 CH 6 6 + CH4 Benzene produced is involved in a side reaction: 2C6H6 C12H1 + H2 The reactions proceed irreversibly without a catalyst at temperature in the range of 12-127 F with approximately 75% of the toluene converted to benzene and 2% of the benzene produced in the HDA reaction converted to biphenyl. The reactions occur in series in single processing unit. HDA process is presented in figure 3 (The figure is a printed view of the COFE software). 6

Figure 4 : Reaction section (VALI software) Process simulation with VALI The process has been modelled with VALI software using its own (we call it native) thermodynamic database of chemical compounds (to define hydrogen, methane, benzene, toluene and biphenyl) and methods (the classical SOAVE equation was chosen). It has been divided in two main sections: reaction and distillation. The resulting graphical user interface is presented in figures 4 and 5. Figure 5 : Distillation section (VALI software) 7

Process simulation with VALI and CAPE-OPEN thermo plugs The next step was to substitute the native thermodynamic models with different imported CAPE-OPEN thermo plugs. The first one was a COCO Thermodynamics for Engineering Applications called COCO_TEA.ThermoPack.1 containing the same compounds and a modified SOAVE-REDLICH- KWONG equation. Figure 6 : interface listing information of HDA property package of COCO 8

The second one was a Simulis package containing the same compounds and a classical SOAVE-REDLICH-KWONG equation. Figure 7 : interface listing information of HDA property package of Simulis Simulation results with VALI native and CAPE-OPEN thermo plugs The simulation results were similar with 349.6 klbmol/hr benzene and 5.94 klbmol/hr biphenyl productions from 368 klbmol/hr toluene input. The flash conditions were computed identical at 1 F and 475.5 psia. The CPU time consumed for the different computations was depending on the thermo plug type. The verification phase was speedier with the native one and much slower with the simulis one. The resolution phases were similar. 9

Table 1. CPU Time and Number of Iterations Comparison Verification Resolution Total Iterations Native.71 3.63 5.69 4 Coco 3.14 3.42 8.38 5 Simulis 5.75 2.66 1.56 3 Verification phase implies loading all the necessary data and physical property model, and checking that all required properties can be calculated. In the resolution phase, mass and energy balance equations were solved, as well as specifications handled as pseudo measurements. In this case, the number of specified measurements was such that the problem was just calculable (no redundancy). The number of iteration needed to solve the problem with the prescribed accuracy differs slightly according to the thermo system used, even if the same equation of state was selected in all cases. We expect that the convergence criterion in the solution of the equation of state was not the same in all cases which may have an impact on the speed of convergence in the outer loop. Conclusion Using a thermo socket is time consuming during the verification phase certainly to access the corresponding dll file. However it seems that the time required to perform one iteration is approximately the same for the native thermo or for the CAPE OPEN plugs. Similar test has been done with the Cavett s problem with similar conclusions. General Conclusion These developments were time consuming and especially estimating the time needed for the development was difficult. Testing and Debugging were also rather challenging because all the thermo plugs were not available on the same computer as our source codes. To conclude, VALI has today a CAPE-OPEN 1. socket that has been successfully tested on several different CAPE-OPEN 1. thermo plugs. 1