<?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>VLEFIT.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">VLEFIT.xls</span>
        </div>
        <h1><a name="kanchor121"></a>VLEFIT.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 by adjusting 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 so that predicted values fit experimental data.</p>
        <p class="caption">How does it do it?</p>
        <ol>
            <li class="listnum" value="1">Enter your experimental phase equilibria data for 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, but you do have experimental equilibrium data for the required binary pairs.</p>
        <h2>Using the spreadsheet</h2>
        <p class="para">The spreadsheet has several worksheets.</p>
        <h3>Experimental</h3>
        <p class="para">This is the worksheet where you enter 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>
            <li class="listbull" value="4">The choice of temperature and pressure units, from the list in blue below the temperature and pressure input values.</li>
            <li class="listbull" value="5">
                <p>Your experimental data.</p>
                <p>
                    <SPAN class="emphasisbold">Note: </SPAN>If you have more data points than we have used, and are familiar with Excel, you can extend the range, remembering to change the cell references in the dependent activity model worksheets. Otherwise you should limit the data by choosing suitable points from the data available. If you have fewer data points, or missing data, enter #N/A in the cells which would otherwise be empty.</p>
            </li>
        </ul>
        <p class="para">After you enter the data, 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 experimental 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 experimental data, enabling you to decide easily whether the solution is acceptable.</p>
        <p class="para">
            <SPAN class="emphasisbold">Note: </SPAN>If you have not used #N/A for missing data, the plots for x, y will not be relevant and should be ignored.</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/ExampleVLEFIT_xls.htm" style="">Open topic with navigation</a>
        </p>
    </body>
</html>