<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:tocPath="Using Multiflash|Example Excel spreadsheets" MadCap:medium="non-print" MadCap:InPreviewMode="false" MadCap:PreloadImages="false" MadCap:RuntimeFileType="Topic" MadCap:TargetType="WebHelp" lang="en-ca" xml:lang="en-ca" MadCap:PathToHelpSystem="../../" MadCap:HelpSystemFileName="Default.xml" MadCap:SearchType="Stem">
    <!-- saved from url=(0016)http://localhost -->
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>UNIFACFIT.xls</title>
        <link href="../SkinSupport/Slideshow.css" rel="stylesheet" MadCap:generated="True" />
        <link href="../SkinSupport/MadCap.css" rel="stylesheet" MadCap:generated="True" />
        <link href="../Resources/Stylesheets/mfwman.css" rel="stylesheet" />
        <script src="../SkinSupport/jquery.min.js">
        </script>
        <script src="../SkinSupport/MadCapAll.js">
        </script>
        <script src="../SkinSupport/MadCapTopicAll.js">
        </script>
    </head>
    <body>
        <div class="MCBreadcrumbsBox_0"><span class="MCBreadcrumbsPrefix">You are here: </span><span class="MCBreadcrumbsSelf">Using Multiflash</span><span class="MCBreadcrumbsDivider"> &gt; </span><a class="MCBreadcrumbsLink" href="WorkingWithExcelSpreadsheets.htm">Example Excel spreadsheets</a><span class="MCBreadcrumbsDivider"> &gt; </span><span class="MCBreadcrumbs">UNIFACFIT.xls</span>
        </div>
        <h1><a name="kanchor120"></a>UNIFACFIT.xls</h1>
        <p class="caption">What does it do?</p>
        <p class="para"> This spreadsheet enables you to generate binary interaction parameters (BIPs) for activity models if UNIFAC group structures are available for your chosen components. The <span class="MCTextPopup"><a href="javascript:void(0);" class="MCTextPopupSpot_0" onclick="FMCTextPopup( event, this ); return false;">BIP<img style="border: none;margin-left: 5px;" src="../SkinSupport/ExpandingClosed.gif" MadCap:altsrc="../SkinSupport/ExpandingOpen.gif" onload="if ( typeof( FMCPreloadImage ) == 'function' ) { FMCPreloadImage( '../SkinSupport/ExpandingOpen.gif' ); }" alt="Closed" MadCap:alt2="Open" class="MCExpandingIcon" /></a><span class="MCTextPopupBody_0" style="display: none; ">Binary interaction parameter</span></span> values are adjusted so that predicted values fit the UNIFAC values.</p>
        <p class="caption">How does it do it?</p>
        <ol>
            <li class="listnum" value="1">UNIFAC is used to calculate the phase equilibria of the binary pair.</li>
            <li class="listnum" value="2">You use the Excel solver tool to fit the data and generate BIPs for the binary pair. You can minimise the sum of squares of the differences between given and predicted temperature or pressure, or the differences in gas composition.</li>
        </ol>
        <p class="caption">Why is it useful?</p>
        <p class="para">There are times when you want to use an activity model that has no stored BIPs for one or more binary pairs in your fluid. This spreadsheet is useful when you do not have the time to search for experimental data for the missing pairs, or are unable to find any.</p>
        <h2>Using the spreadsheet</h2>
        <p class="para">The spreadsheet has several worksheets.</p>
        <h3>UNIFAC</h3>
        <p class="para">This is the worksheet where you generate the phase equilibria data (liquid and gas phase compositions and temperature or pressure) that you are going to fit.</p>
        <p class="para">You specify, by entering information in the appropriate red cells:</p>
        <ul>
            <li class="listbull" value="1">The databank to act as the source of pure component data, either Infodata or DIPPR if you have it.</li>
            <li class="listbull" value="2">The names of the two components for your binary pair.</li>
            <li class="listbull" value="3">Whether you wish to generate data for an isotherm or isobar and your chosen temperature or pressure.</li>
        </ul>
        <p class="para">The required data is generated by the Multiflash functions when the calculation in the spreadsheet is updated.  It includes both column headings and plots. The composition range is fixed and the units are SI. There is no need to change these, although you can if you want.</p>
        <p class="para">You can see the status of the data generation in the spreadsheet. This should be OK if the UNIFAC group structures are available for your chosen components. An error status of –13201 means that the structures are missing for one or both components.</p>
        <p class="para">After the data is generated, select the worksheet for the model you want to use, WilsonE, UNIQUAC <span class="MCTextPopup"><a href="javascript:void(0);" class="MCTextPopupSpot_0" onclick="FMCTextPopup( event, this ); return false;">VLE<img style="border: none;margin-left: 5px;" src="../SkinSupport/ExpandingClosed.gif" MadCap:altsrc="../SkinSupport/ExpandingOpen.gif" onload="if ( typeof( FMCPreloadImage ) == 'function' ) { FMCPreloadImage( '../SkinSupport/ExpandingOpen.gif' ); }" alt="Closed" MadCap:alt2="Open" class="MCExpandingIcon" /></a><span class="MCTextPopupBody_0" style="display: none; ">Vapour-liquid equilibrium</span></span> or NRTL VLE. </p>
        <h3>Activity model worksheets</h3>
        <p class="para">All the model worksheets function in a similar manner. The component names, conditions, temperature or pressure, and phase equilibria data are copied automatically from the UNIFAC worksheet. You then enter an initial guess for the BIPs (a useful default is to start with 0.0 for both) and use the Excel Solver tool to start the fitting procedure. The calculated BIPs appear in the cells used for the initial guesses and in the cells reporting the fitted BIPs. The equilibrium data are plotted for comparison with the UNIFAC generated data, enabling you to decide easily whether the solution is acceptable.</p>
        <p class="para">If the solution is not acceptable you can try one or more of the following:</p>
        <ul>
            <li class="listbull" value="1">Start with a different initial estimate for the BIPs.</li>
            <li class="listbull" value="2">Use a different criterion for minimisation. The default setting is to minimise the sum of squares of the differences between given and predicted temperature or pressure. You can also minimise differences in gas composition by changing the target cell in Excel Solver.</li>
            <li class="listbull" value="3">Change the constraints on the values for BIPs when fitting. We have set limits on the values the BIPs can take as part of the Excel Solver tool.</li>
        </ul>
        <p class="para">After you have generated acceptable BIPs, you can store them in the Multiflash .mfl file that you are using for your fluid calculations.</p>
        <p class="page_footer">© 2015 <span class="VariablesCompanyName">KBC Advanced Technologies ltd</span>. All rights reserved.</p>
        <script type="text/javascript" src="../SkinSupport/MadCapBodyEnd.js">
        </script>
        <p class="MCWebHelpFramesetLink MCWebHelpFramesetLinkBottom"><a href="../../Default_CSH.htm#ExcelSpreadsheets/ExampleUNFACFIT_xls.htm" style="">Open topic with navigation</a>
        </p>
    </body>
</html>