You are on page 1of 27
Introduction to Aspen Properties: Using Excel to do Calculations aspentech Using Excel to do Calculations Introduction to Aspen Properties ventach Objective + Leam to use the Excel Add-in © 2002 AspenTech, All Rights Reserved. 4-1 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech Aspen Properties — Excel Add-in + Allows calls to Aspen Properties from within an Excel spreadsheet + Use Aspen thermodynamic methods, models, and data in other engineering calculations + Retrieve property information to present with Excel's printing, layout, and graphics abilities + Use Aspen property models within a USER2 model or Aspen Plus Calculator block + Calculate Pure Component and Mixture properties. + Perform two and three-phase flash calculations pentech Steps for Installing the Excel Add-in + Setup Aspen Properties (Install, License, Customize...) + To install the Add-in, Open Excel ~ Go to Tools/Add-ins ~ Choose Browse ~ Find the Aspen Properties xeq directory (Program Files/AspenTech/Aspen Properties 11.1/Engine/xeq) = Click on the Aspen Properties Add-in — Follow the instructions on screen + When complete, Aspen Properties appears as a new menu item within Excel © 2002 AspenTech, All Rights Reserved. 4-2 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech Selecting a Property Package (1) 1. Select any cell on the worksheet. Go to SESIEEaT=Iremnia the Aspen Properties Tool bar menu and ———— choose the Select Property Package = option. Choose elther Aspen Properties (for the package saved as *.aprbkp file) or CAPE-OPEN (for the package saved as CAPE-OPEN compliant property package) from the list of types of Property Packages. § —“—! ==! +1 available Ifyou select CAPE-OPEN, the following property packages appear. The available CAPE-OPEN property packages are those saved in the Cape-Open Property Packages directory where the Aspen Properties Engine was installed (e.g., C:\Program Files\AspenTech\Aspen Properties 11.1\Engine\CapeOpen Property Packages) stech Selecting a Property Package (2) 2. Choose the desired property package from the list then click the OK button If you select Aspen Properties, the Open dialog box appears Type *.aprbkp in the File name field to show all Aspen Properties backup files. You can then locate the property packages that have been configured and saved as the Aspen Properties backup files. Click open to select the property package © 2002 AspenTech, All Rights Reserved. ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations @axpertocn Selecting Components (1) + To select components from a selected property package for use in the Excel property functions: 1. Select a range of cells depending on the number of components required. Go to the Aspen Properties/Select Components menu A list of components available in the property package appears 2. Select the desired components. Click OK @speriecn Selecting Components (2) een [elo ot me bet ne ts ws ome te Osea ae. e LMOe SS © 2002 AspenTech, All Rights Reserved. 4-4 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations pentech Selecting Properties + Toselect properties to be STITT sab used in defining the Excel property functions: 1. Select a range of cells and go to the Aspen Properties/Select Properties menu. A\list of supported properties appears 2. Select the desired properties, Click OK spentech Selecting Units (1) + Allinput to and output from Aspen Properties functions are in SI units. However, Aspen Properties Excel Calculator provides: 1. Utility to specify a units label for a value you enter. For example, you can specify that the value has the temperature units of C 2. A function to convert a value from one unit to another + To select units: 1. Select a cell and go to the Aspen Properties/Select, Units menu Allist of available units appears © 2002 AspenTech, All Rights Reserved. 4-5 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations @ sspentech Selecting Units (2) @speriecn Using Properties Functions form of an array functions, such as the SUM, AVERAGE, STDEV, MAX, ete. + Touse a property + Aspen Properties provides functions for performing property and flash calculations as well as units conversion. ‘These functions can be ‘categorized in two types, depending on their return value. Scalar functions return a single value, whereas Array functions return muliple values in the ‘+ Aspen Properties functions workin the same way as the Excel builtin fon the function button conthe toolbar, then | 2 follow the instructions. |-¢] for the functions wizard function, Righight the |B) oe EX mew vor Fane Tor Gs aerate ra tee deed cal or OSES SAY Aden are Ale multiple cel for an array function), click x a WATER ETHANOL BENZENE TOLUENE © 2002 AspenTech, All Rights Reserved. Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations @ cpentech Scalar Functions (1) * These functions return a Eup pera ax single property value 4. Select a single cell and go to the InserlFunction menu ‘or use the Function button on the toolbar ‘Paste Function window appears, Cates tse repre sh apne ancy Coutts ld sores mest Yad Phae = at a [7] _coet_| @axzenach Scalar Functions (2) 2. Select Aspen Properties in the Function category list and a desired scalar Function name from the list available. Once a function is selected, click OK ‘Anew window appears with a list of function arguments to be filed. Fill the arguments by selecting the cells on the spreadsheet containing the corresponding information, ¢.9., Temperature, Pressure, ComponentList, or you can enter the value directly Make sure you complete all the arguments. Use the scroll bar to see more arguments. Due to the limitation of the Excel function dialog, the dialog box cannot be expanded to show all the required arguments. Click OK © 2002 AspenTech, All Rights Reserved. 4-7 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations spentech Scalar Functions (3) — ‘ComponentList = (WATERY ETHANO Molefradion [anes SCS = as aS as 2 Temperature es] = 0 YapoeFcetion y= Reef 9130 SASH SH, Cleats phase equibium tspectied temperature andl vapor facie. Reture=byricor. Use shresciieter Petar ot Componentist CI] Formiarenwe= 91205999 Li] _cmt_| spentech Array Functions + These functions return multiple values, depending on the number of components = Select a range of cells and go to the Insert/Function menu or Use the Function button on the toolbar. A Paste Function window appears ~ Select Aspen Properties in the Function Category list and a desired array Function name from the list available (a description of available functions is given on next slide) Fill the arguments by selecting the cells on the spreadsheet containing the corresponding information, e.g., Temperature, Pressure, ComponentList, or you can enter the value directly. Make sure you fillin all the arguments = While holding down Ctrl + Shift keys, click OK © 2002 AspenTech, All Rights Reserved. ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations ventach Aspen Properties Excel Functions (1) + The following Aspen Properties Excel functions are available: Function Type Description MoturePropery Scalar and Array Mature Properties PHFlash Scalar and Array Pressure ~ Molar enthalpy fash PureComponentGonstant Array Pure component constant, such as molecular weight PursProperty ‘ray Pure component properties PvFiash Scalar and Array Pressure - Vapor fraction flash THFiash Scalar and Array Temperature ~ Molar enthalpy fash Trias Scalar and Array Temperature ~ Pressure lash TVFiash Scalar and Array Temperature-Vaporfracton flash UnitsConversion Scalar Units Conversion, eg., Convert temperature from K to °F VaporPressure Aray Vapor pressure of pure component ata givon tomperatur, spentech Aspen Properties Excel Functions (2) + Arguments for the functions are listed below: sae ‘ype Oren Pemvene Sat Sopra des cer oean see et a renee Vsoracan Say Vartan reared true Serta Pash nto Seo) © 2002 AspenTech, All Rights Reserved. 4-9 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ech PureGomponentConstant + This function returns pure component constant values such as molecular weight and normal boiling point. It retums multiple values, with one value for each component specified. Use Shift- irl while defining this function for multiple components. You must select the same number of cells as the number of components, Return values are in SI units + Syntax — PureComponentConstant(ComponentList, Property Name) + Arguments — ComponentList — List of strings specifying component IDs for components in the mixture. Can be a single value or an array — Property Name — A string specifying name of property to be calculated. Must be a single value. Valid cxciot ssaproperty names are displayed through Aspen. spentech VaporPressure + This function retums vapor pressure of pure component at a given temperature. Temperature must be specified in Kelvin, This function returns multiple values, with each value representing vapor pressure of a component specified in the lst, Use Shift-Cir while defining this function for multiple components. You must select the same number of cells as the number of components + Syntax — VaporPressure(ComponentList, Temperature) + Arguments — ComponentList — List of strings specifying component IDs for components in the mixture. Can be a single value or an array — Temperature — A real number specifying temperature in Kelvin © 2002 AspenTech, All Rights Reserved. 4-10 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ‘aspentech PureProperty (1) + This function retums the pure component property for the specified components at given temperature and pressure. Temperature must be specified in Kelvin and pressure in N/sqm. This function returns multiple values, with one property value for each component specified. Use Shift+Ctrl while defining this function for multiple components. Return values are in SI units + Syntax — PureProperty(ComponentList, PropertyName, ‘Temperature, Pressure, Phase) stech PureProperty (2) + Arguments — ComponentList — List of strings specifying component IDs for which properties are to be calculated. Can be a single value for one component or an array for multicomponents — PropertyName — A string specifying name of property to be calculated. Must be a single value. Valid property names are displayed through the Aspen Properties/Select properties menu ~ Temperature — A real number specifying temperature in Kelvin Pressure ~ A real number specifying pressure in N/sqm — Phase ~A string specifying the phase for the property. Valid phases are L, Vand S © 2002 AspenTech, All Rights Reserved. 4-11 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech MixtureProperty (1) + This function retums property for the specified mixture at the given temperature, pressure and mole fractions. Temperature must be specified in Kelvin and pressure in Nisam. This function returns a single property value (molar volume, molar enthalpy etc.) as well as multiple values for the property of a component in the mixture (fugacity coefficient, activity coefficient, ete. Use Shift+Citrl while defining this function for multiple values. Return values are in SI units + Syntax ~ MixtureProperty(ComponentList, MoleFraction, PropertyName, Temperature, Pressure, Phase) spentech MixtureProperty (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture. Can be a single value or an array ~ MoleFraction ~ Mole fractions of components in the mixture. Must be in the same order as ComponentList. Total of mole fraction values must be 1 — PropertyName — A string specifying name of property to be calculated. Must be a single value. Valid property names are displayed through Aspen Property/Select properties menu item — Temperature — A real number specifying temperature in Kelvin — Pressure — A real number specifying pressure in Nim2 ~ Phase ~ A string specifying the phase for the property. Valid ses are L, Vand S. (Note: Phase is case sensitive) © 2002 AspenTech, All Rights Reserved. 4-12 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations spestach Flash Calculations (1) + There are several functions available for flash (phase equilibrium) calculations. Aspen Properties supports vapor-liquid (2 phase) as well as vapor-liquid-tiquid (3-phase) equilibrium calculations. Valid types for lash are: Valine Type Specineatons vapors ash pou ash vapactiqu tasn pou sh Fash emperair-Erhalpy mH PUKY spentech Flash Calculations (2) Fash Descriptions Type Return TH BETAXAX2,¥ eh Prossure-Vapor acon vapor tqui aud ash PHF ProssureEntalpy PH TV BETAXIX2.¥ po tqu-eud ash ‘TeFlash3 Temperature Pressure 1. VM BETAKA X,Y porque ash veporiquiqu ‘TaFlashs Temperate Erhay TH PV. BETAXX2,¥ veportqu-qud Wash + All input and return values are in SI units. You can use the Units Conversion function to convert the input from other units and to convert the return values to the desired units + T.P,H,BETA, and V are scalar retum values. X,X:1,X:2, and Y are arrays with length equal to the number of components specified in ‘ComponentList © 2002 AspenTech, All Rights Reserved. 4-13 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech PVFlash (1) + This function performs vapor-quid flash calculations for a given mixture at specified pressure and vapor fraction. Pressure must be specified in N/sqm. Depending on the return value requested, this function returns single or multiple values. If temperature (T) or molar enthalpy (H) is requested, a single value is returned. If liquid (X) or vapor (Y) composition is requested, multiple values are returned. Use Shift+Ctrl while defining this function to request X or Y. Return values are in SI units + Syntax = PVFlash(ComponentList, MoleFraction, Pressure, VaporFraction, Returns) spentsch PVFlash (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Pressure — A real number specifying pressure in N/sqm — VaporFraction - A real number between 0 and 1, specifying the molar vapor fraction Returns ~ A string specifying the variable to be returned. Valid values are T, H, X and Y representing temperature, molar enthalpy and liquid and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-14 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech PHFlash (1) + This function performs vapor-liquid flash calculations for a given mixture at specified pressure and molar enthalpy. Pressure must be specified in N/sqm. Molar enthalpy must be specified in ikmol. Depending on the return value requested, this function returns single or multiple values. If temperature (T) or vapor fraction (V) is requested, a single value is returned. liquid (X) or vapor (Y) composition is requested, multiple values are returned. Use Shift+Ctrl while defining this function to request X or Y. Return values are in SI units + Syntax = PHFlash(ComponentList, MoleFraction, Pressure, MolarEnthalpy, Returns) spentsch PHFlash (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction Mole fractions of components in the mixture. Must be in the same order as Componenttist. Total of mole fraction values must be 1 — Pressure — A real number specifying pressure in N/sqm — Molar enthalpy — A real number specifying the molar enthalpy in J/kmol Returns ~ A string specifying the variable to be returned. Valid values are T, V, X and Y representing temperature, vapor fraction and liquid and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-15 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ech TPFlash (1) + This function performs vapor-liquid flash calculations for a given mixture at specified temperature and pressure. Temperature must be specified in Kelvin and pressure must be specified in Nisam. Depending on the return value requested, this function returns single or multiple values. If vapor fraction (V) or molar enthalpy (H) is requested, a single value is returned. If liquid (X) or vapor (Y) composition is requested, multiple values are returned. Use Shift+Ctrl while defining this function to request X or Y. Return values are in SI units + Syntax — TPFlash(ComponentList, MoleFraction, Temperature, Pressure, Retums) spentsch TPFlash (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin = Pressure — A real number specifying pressure in Nim2 Returns ~ A string specifying the variable to be returned. Valid values are V, H, X and Y representing vapor fraction, molar enthalpy and liquid and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-16 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech TVFlash (1) + This function performs vapor-liquid flash calculations for a given mixture at specified temperature and vapor fraction. Temperature must be specified in Kelvin. Depending on the retum value requested, this function retums single or multiple values. If pressure (P) or molar enthalpy (H) is requested, a single value is returned. If liquid (X) or vapor (Y) composition is requested, multiple values are returned. Use Shift+Ctl while defining this function to request X or Y. Return values are in SI units + Syntax — TVFlash(ComponentList, MoleFraction, Temperature, VaporFraction, Retums) spentsch TVFlash (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction - Mole fractions of components in the mixture, Must be in the same order as Componenttist. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin — VaporFraction - A real number between 0 and 1, specifying the molar vapor fraction — Returns - A string specifying the variable to be returned, Valid values are P, H, X and Y representing pressure, molar enthalpy and liquid and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-17 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech THFlash (1) + This function performs vapor-liquid flash calculations for a given mixture at specified temperature and molar enthalpy. Temperature must be specified in Kelvin. Molar enthalpy must be specified in J/kmal. Depending on the return value requested, this function returns single or multiple values. If pressure (P) or vapor fraction (V) is requested, a single value is returned. If liquid (X) or vapor (Y) composition is requested, multiple values are retumed. Use Shift+Ctri while defining this function to request X or Y. Retum values are in SI units + Syntax — THFlash(ComponentList, MoleFraction, Temperature, MolarEnthalpy, Returns) spentsch THFlash (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin — Molar Enthalpy ~ A real number specifying the molar enthalpy in J/kmol — Retums - A string specifying the variable to be returned, Valid values are P, V, X and Y representing temperature, vapor fraction and liquid and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-18 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations aspentech PVFlash3 (1) + This function performs vapor-liquid-iquid flash calculations for a given mixture at specified pressure and vapor fraction. Pressure must be specified in N/sqm. Depending on the return value requested, this function retums single or multiple values. if temperature (T), molar enthalpy (H), or molar fraction liquid 4 (BETA) is requested, a single value is returned. If liquid 1 (X:1), Tiquid 2 (X:2) or vapor (Y) composition is requested, multiple values are returned. Use Shift+Ctrl while defining this function to request X:1, X:2 or Y. Return values are in SI units + Syntax = PVFlash3(ComponentList, MoleFraction, Pressure, VaporFraction, Returns) spentsch PVFlash3 (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Pressure — A real number specifying pressure in N/sqm — VaporFraction - A real number between 0 and 1, specifying the molar vapor fraction Returns ~ A string specifying the variable to be returned. Valid values are T, H, BETA, X:1, X:2 and Y representing temperature, molar enthalpy, molar fraction liquid 1, and liquid 1, liquid 2 and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-19 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ech PHFlash3 (1) + This function performs vapor-liquid-iquid flash calculations for a given mixture at specified pressure and molar enthalpy. Pressure must be specified in N/sqm. Molar enthalpy must be specified in Jikmol. Depending on the retum value requested, this function returns single or multiple values. if temperature (T) vapor fraction (V), or molar fraction liquid 1 (BETA) is requested, a single value is retumed. If liquid 4 (X:1), liquid 2 (X:2) or vapor (¥) composition is requested, multiple values are returned. Use Shift+Ctrl while defining this function to request X:1, X:2 or Y. Return values are in SI units + Syntax — PHFlash3(ComponentList, MoleFraction, Pressure, MolarEnthalpy, Returns) spentsch PHFlash3 (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Pressure — A real number specifying pressure in N/sqm — Molar enthalpy — A real number specifying the molar enthalpy in J/kmol Returns ~ A string specifying the variable to be returned. Valid values are T, V, BETA, X:1, X:2, and Y representing temperature, vapor fraction, molar fraction liquid 1 and liquid 4, liquid 2 and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-20 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ech TPFlash3 (1) + This function performs vapor-liquid-iquid flash calculations for a given mixture at specified temperature and pressure. ‘Temperature must be specified in Kelvin and pressure must be specified in N/sqm, Depending on the return value requested, this function retums single or multiple values. If vapor fraction (V), molar enthalpy (H), or molar fraction liquid 1 (BETA) is Tequested, a single value is returned. If liquid 1 (X:1), liquid 2 (%:2) or vapor (Y) composition is requested, multiple values are retumed. Use Shift+Cirl while defining this function to request X:1, X:2 or Y. Return values are in SI units + Syntax — TPFlash3(ComponentList, MoleFraction, Temperature, Pressure, Retums) spentsch TPFlash3 (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin — Pressure — A real number specifying pressure in Nim2 Returns ~ A string specifying the variable to be returned. Valid values are V, H, BETA, X:1, X:2, and Y representing vapor fraction, molar enthalpy, molar fraction liquid 11 and liquid 1, liquid'2 and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-21 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations spentach TVFlash3 (1) + This function performs vapor-liquid-iquid flash calculations for a given mixture at specified temperature and vapor fraction. Temperature must be specified in Kelvin. Depending on the retum value requested, this function retums single or multiple values. If pressure (P), molar enthalpy (H), or molar fraction liquid 1 (BETA) is requested, a single value is retumed. If liquid 4 (%-1), liquid 2 (X:2) of vapor (¥) composition is requested, multiple values are retumed. Use Shift+Ctri while defining this function to request X:1, X:2 or Y. Retum values are in SI units + Syntax = TVFlash3(ComponentList, MoleFraction, Temperature, VaporFraction, Returns) spentsch TVFlash3 (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin — VaporFraction - A real number between 0 and 1, specifying the molar vapor fraction — Returns - A string specifying the variable to be returned, Valid values are P, H, BETA, X:1, X:2, and Y representing pressure, molar enthalpy, molar fraction liquid 1 and liquid 1, liquid 2 and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-2 ‘Aspen Technology, Inc. Introduction to Aspen Properties: Using Excel to do Calculations ech THFlash3 (1) + This function performs vapor-liquid-iquid flash calculations for a given mixture at specified temperature and molar enthalpy. ‘Temperature must be specified in Kelvin. Molar enthalpy must be specified in J/kmol. Depending on the return value requested, this function returns single or multiple values. if pressure (P), vapor fraction (V), or molar fraction liquid 1 (BETA) is requested, a single value is returned. If liquid 1 (X:1), quid 2 (X-2) or vapor (Y) composition is requested, multiple values are retumed. Use Shift+Cir! while defining this function to request X:1, X:2 or Y, Return values are in SI units + Syntax — THFlash3(ComponentList, MoleFraction, Temperature, MolarEnthalpy, Retums) spentsch THFlash3 (2) + Arguments — ComponentList — List of strings specifying component IDs for ‘components in the mixture — MoleFraction — Mole fractions of components in the mixture. Must be in the same order as ComponenttList. Total of mole fraction values must be 1 — Temperature — A real number specifying temperature in Kelvin — Molar Enthalpy ~ A real number specifying the molar enthalpy in J/kmol — Retums - A string specifying the variable to be returned, Valid values are P, V, BETA, X:1, X:2, and Y representing temperature, vapor fraction, molar fraction liquid 1 and liquid 4, liquid 2 and vapor mole fractions, respectively © 2002 AspenTech, All Rights Reserved. 4-23 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations sspentech UnitsConversion (1) + This function performs Units Conversion from a given unit to a desired unit, for example, you can use this function to convert temperature from K to " + Syntax. = UnitsConversion (From_Units, To_Units, From_Value)For example, UnitsConversion(*K","C",300) + Arguments — From_Units ~ Name of Input Units ~ To_Units ~ Name of Output Units From_Value ~ A real number in input units which need to be converted — Returns — A converted number in output units spentech UnitsConversion (2) + Units conversion can also be performed using the following steps, except that the conversion is carried out in the same cell, instead of from one cell to another 1. Select the cell containing a value to be converted Click the right mouse button and select the Specify Units ‘option on the menu 3. Select the units type from the Select Units dialog box and select the units label. Click OK. The selected call is now tagged with the specified units label 4, Select the cell again. Click the right mouse button and select the Convert Units option on the menu 5. Select the units type from the Select Units dialog box and select the units label. Click OK. The converted number will now appear in the cell © 2002 AspenTech, All Rights Reserved. 4-24 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations pentech Example of Using Excel Property Calculator (1) ws ant ‘sen28 305.78 aspentech isu Property Pu Proper conta Example of Using Excel Property Calculator (2) saseeeen Soman SSramona our srenesd oomaae Sheree oan? serum aarzserct tenant a1eereat Sat ak wat ane © 2002 AspenTech, All Rights Reserved. Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations pentech Example of Using Excel Property Calculator (3) a paves poner ‘aspentach Opening an Excel file with Links + When an excel file containing Aspen Properties link is opened, you may have to update Links to “Aspen Properties.xla” file and the Aspen Properties Data Package used (.aprbkp or .cota file) 1, Use Excel Edit/Links option to update the location of Aspen Properties.xla file 2. Reselect / Update the Property Package 3. Reselect / Update Components © 2002 AspenTech, All Rights Reserved. 4-26 ‘Aspen Technology, Inc. Introduction to Aspen Properties Using Excel to do Calculations @aenecn Use Excel Edit/Links option | SS Use Change Source to locate Aspen Properties.xla file ( 0.9., D:\Program Files\AspenTech\Aspen Properties 11.1\Engine\xeq ) @speriecn Reselect the Property Package and Components 13) ee eve Fant 158 Peon i Ceee gay sae sagan aa

You might also like