<?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="Multiflash reference|Multiflash commands" 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>Supplying an external file of BIPs</title>
        <link href="../SkinSupport/Slideshow.css" rel="stylesheet" />
        <link href="../SkinSupport/MadCap.css" rel="stylesheet" />
        <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">Multiflash reference</span><span class="MCBreadcrumbsDivider"> &gt; </span><a class="MCBreadcrumbsLink" href="MultiflashCommandsIntroduction.htm">Multiflash commands</a><span class="MCBreadcrumbsDivider"> &gt; </span><span class="MCBreadcrumbs">Supplying an external file of BIPs</span>
        </div>
        <h1>Supplying an external file of BIPs</h1>
        <p class="para">We supply binary interaction parameters, for light gases and hydrocarbons for use with the cubic equations of state from the OILANDGAS databank and for activity coefficient models from INFOBIPS or INFOLLBIPS. If you have interaction parameters available for other binary pairs and other models you may wish to supplement or overwrite those stored in Multiflash. The Tools/BIPs facility has been supplied to allow you to do this easily without the need for commands and to save any changes by saving the problem setup file. However, if you wish to store a preferred set of BIPs and to overwrite the stored BIPs every time you run Multiflash it may be easier to set up your own input file. You can then overwrite our BIPs by loading this file or including it as part of your problem setup. In this case it may be easier to construct the file using Multiflash commands.</p>
        <p class="para">The command for setting up a bipset takes the form</p>
        <p class="para">bipset, bipset_name, number of BIPs for model, degree of temperature dependence, temperature function, units, binary pair, values for BIPs;</p>
        <p class="para">The default names for the model bipsets are the model name followed by <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> e.g. PRBIP</p>
        <p class="para">For example, A typical file of BIP data might be:</p>
        <p class="CodeExplained"><span class="span_7">bipset PRBIP 1 constant eos none&#160; butane pentane 0.</span><span class="span_7">0</span><span class="span_7">1 ; bipset PRBIP 1 constant eos none&#160; </span><span class="span_7">pentane hexane </span><span class="span_7">0.</span><span class="span_7">0</span><span class="span_7">1 ; </span><span class="span_7"><br /></span><span class="span_7">bipset PRBIP 1 constant eos none&#160; </span><span class="span_7">hexane heptane </span><span class="span_7">0.</span><span class="span_7">0</span><span class="span_7">1</span> ;</p>
        <p class="para">N.B. You must reload this BIP file every time you change the model as one of the commands when a model is loaded removes existing bipsets.</p>
        <p class="para">If you define the bipset incorrectly, e.g. if for butane pentane the temperature function is defined as activity with units of J/mol, then a warning message will appear when you try to use this with the PR equation</p>
        <p class="CodeExplained">bipset PRBIP 1 constant activity J/mol butane pentane 0.01 ;</p>
        <p class="CodeExplained">*** ERROR&#160;&#160;&#160;&#160; 584 ***</p>
        <p class="CodeExplained">Existing BIP set uses a different temperature function</p>
        <p class="para">Some examples for other models are shown below:</p>
        <p class="CodeExplained_2">bipset WILSONBIP2 2 constant activity j/mol acetone water 6139 1450;</p>
        <p class="CodeExplained_2">bipset NRTLBIP3 3 linear activity J/mol methanol water .22 4.4e-3 .30 -6.6e-3 .003 0.0</p>
        <p class="page_footer">© 2013 - 2014 KBC Advanced Technologies plc. All rights reserved.</p>
        <script type="text/javascript" src="../SkinSupport/MadCapBodyEnd.js">
        </script>
        <p class="MCWebHelpFramesetLink MCWebHelpFramesetLinkBottom"><a href="../../Default_CSH.htm#MultiflashCommands/Supplying_an_external_file.htm" style="">Open topic with navigation</a>
        </p>
    </body>
</html>