View - ProSim
Transcription
View - ProSim
Getting started with Simulis® Thermodynamics Case 1: Building a water and ethanol flash TP calculation function in Excel © 2014 ProSim S.A. All rights reserved. 2 Introduction This document presents the different steps to follow in order to calculate a flash at a fixed temperature and pressure for a mixture of water and ethanol, in a Excel spreadsheet. The steps are the following: 1: 2: 3: 4: 5: Creating a Simulis object in a spreadsheet Managing the unit system Selecting the compounds Selecting the thermodynamic model Building functions in the spreadsheet © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Step Step Step Step Step Step 1: Creating a Simulis object in a spreadsheet 1. Go to the “Add-Ins” tab 3. Select “Simulis Calculator” object © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 2. Click on the “Insert” menu 3 Step 1: Creating a Simulis object in a spreadsheet 4 1. Select cells range to insert the Simulis Calculator object 2. Click on “OK” You can insert multiple Simulis objects (Calculators or other Simulis objects) in the same spreadsheet. When selecting the cells, you choose the size and shape of your Simulis object. You can also select the cells first, then insert the Simulis object. © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. …a new Simulis Calculator object is created…. Step 2: Managing the unit system 5 1. You can access the contextual menu through the main menu button or with a right click of the mouse on the “Simulis 2. Select “Edit the input unit system” to customize the input system. © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Calculator” object Step 2: Managing the unit system 6 You can select predefined unit systems… Both input and output unit systems can be customized. You can also choose different unit systems for the input and for the output © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. …or customize your unit system, quantity per quantity, with the scroll down menu. Step 3: Selecting your compounds 7 …or right click on the Simulis Calculator object to access the scroll down menu, then select “Edit the Calculator” © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Select “Edit” in the Simulis toolbar, then choose the object you want to edit… Step 3: Selecting your compounds 8 To create your own compounds, click on "Add a new compound" © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. You can add compounds for which properties are available in the databases you installed. To do so, click on “Select compounds" Step 3: Selecting your compounds 3. Click on the Search button to get the list of compounds that match your criteria 9 4. The search results are shown in this area. 1. Select the compounds server(s) (databases or packages) available in which you wish to search the compounds © 2007 ProSim S.A. All rights reserved. You can run multiple searches without closing this windows www.prosim.net Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel © 2014 ProSim S.A. All rights reserved. 2. You have access to multiple search criteria Step 3: Selecting your compounds 10 1. Double click to add the compound to your final selection, on which you will run the calculations 3. Click on "Close" to end the compounds selection process © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 2. The selected compounds are listed in this area Step 3: Selecting your compounds 1. Repeat the sequence for the other compounds © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 2. Right-clicking on the compound will give you access to options to manage the list of compounds 11 Step 4: Selecting the thermodynamic model 1. Click on the “Model” tab to enter the thermodynamic models editor 12 2. Select the Thermodynamic profile © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 3. Adjust the different parameters calculation methods according to your system, when necessary Step 4: Selecting the thermodynamic model 1. Click on the “Binaries” tab to enter the binaries search window 13 2. Click here for binaries interaction coefficients automatic search 4. Click on “OK” to validate your inputs and return to MS Excel © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 3. Results are shown here Step 5: Building functions in the spreadsheet 14 2. Insert a function 1. Select a cell 5. Click on “OK” to enter the function arguments window 4. Select the desired function © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 3. Choose the Simulis Calculator set of functions Step 5: Building functions in the spreadsheet 15 This function enables you to edit the names of the compounds of your system in the spreadsheet 1. Select the Simulis object in the spreadsheet (enter the name of the object) 3. Click on “OK” to validate © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 2. Select the compound index number in the list you built (eg: 1 is water, 2 is ethanol) Step 5: Building functions in the spreadsheet 16 1. The results of the first function appear on your spreadsheet © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 2. Follow the same steps to display the appropriate unit names of your system Step 5: Building functions in the spreadsheet 17 The creation of the flash function will follow the same process 1. Select the range of cells where the results will be shown 2. Insert the function 4. Press “OK” to enter the function argument window © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. 3. Select the flash TP function in the Simulis Calculator functions list Step 5: Building functions in the spreadsheet 18 The function will return mass or molar composition of the liquid (xl), and vapor (yv) phases, and the equilibrium constants (ki) for all compounds (in our case, we will get six values). © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Key in the function parameters and press simultaneously Ctrl+Shift+Enter to return a vector in the results cells you selected (see user’s guide) Step 5: Building functions in the spreadsheet 19 © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Results appear directly in the spreadsheet 20 ProSim SA 51, rue Ampère Immeuble Stratège A F-31670 Labège Cedex France www.prosim.net Phone: +1 215 600 3760 info@prosim.net © 2007 ProSim S.A. All rights reserved. Getting started with Simulis Thermodynamics: Case 1: Building a water - ethanol flash TP calculation function within Excel www.prosim.net © 2014 ProSim S.A. All rights reserved. Phone: +33 (0) 5 62 88 24 30 ProSim, Inc. 325 Chestnut Street, Suite 800 Philadelphia, PA 19106 U.S.A.