<?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="" MadCap:InPreviewMode="false" MadCap:PreloadImages="false" MadCap:RuntimeFileType="Topic" MadCap:TargetType="WebHelp" lang="en-ca" xml:lang="en-ca" MadCap:conditions="Default.OriginalTopics" MadCap:PathToHelpSystem="../../" MadCap:HelpSystemFileName="Default.xml" MadCap:SearchType="Stem">
    <!-- saved from url=(0016)http://localhost -->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>&#160;Phase Envelopes</title>
        <link href="../SkinSupport/MadCap.css" rel="stylesheet" />
        <link href="../Resources/Stylesheets/mfwman.css" rel="stylesheet" />
        <script src="../SkinSupport/MadCapAll.js">
        </script>
    </head>
    <body>
        <h1><a name="kanchor68"></a><a name="_Ref160952448"></a>Phase Envelopes</h1>
        <p class="para" style="background-color: #ffff00;">If there is no reference stuff here, delete the topic. </p>
        <p class="para">The Phase Envelope utility will trace any phase boundary including gas, liquid and solid on pressure-temperature co-ordinates. The phase envelope utility will work with any Multiflash model but some models, such as activity coefficient models, are only valid at low pressures and will not produce closed phase boundaries.</p>
        <p class="para">Other features include:</p>
        <ul>
            <p class="para_8">the ability to trace selected phase boundaries on the basis of mass or volume fraction in addition to mole fraction and the nucleation boundary. </p>
            <p class="para_8">the flexibility to include the plotting of constant enthalpy, entropy, volume or free energy boundaries. </p>
            <p class="para_8">A generalisation of the plotting facility so that for any chosen phase boundary it is possible to plot any phase or property against another. </p>
        </ul>
        <p class="para">The use the Phase Envelope utility click on the Phase Envelope toolbar button, <span class="span_6"><img src="../Resources/Images/mfwman/030000CF.png" style="width: 28px;height: 24px;" /></span><span class="span_6"> or </span>select the option from the Calculate menu.</p>
        <p class="para">A window similar to the following is displayed:</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D0.png" style="width: 453px;height: 355px;" />
        </p>
        <p class="para">The buttons along the bottom of this window perform calculations or other actions the three tabs that control what is calculated and plotted.</p>
        <h2>VLEAutoPlot</h2>
        <p class="para">The VLEAutoPlot button will generate a vapour-liquid phase boundary starting from the dew point line at low pressure. This is the usual phase envelope calculation. None of the settings on the Phase tab or Initial Values tab are used by this option.</p>
        <p class="para">It is possible that the message box shown below will be displayed</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D1.png" style="width: 369px;height: 127px;" />
        </p>
        <p class="para">The default for the maximum number of points to calculate is 100. This may not be sufficient to complete the phase boundary. Clicking on Yes will allow the calculations and plot to continue. If the calculations have reached any limit within the 100 points the message will not appear.</p>
        <h2>Phase tab</h2>
        <p class="para">The Type of Solution, Select Phase, Select Basis and Phase <span class="MCTextPopup"><a href="javascript:void(0);" class="MCTextPopupSpot_0" onclick="FMCTextPopup( event, this ); return false;">Fraction<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="Collapsed" MadCap:alt2="Expanded" class="MCExpandingIcon" /></a><span class="MCTextPopupBody_0" style="display: none; ">A complex mixture of hydrocarbons, whose aggregate properties are characterised by standard tests, the results of which may be found in PVT laboratory reports.</span></span> boxes are used when you click on the <span class="span_3">Plot</span> button.</p>
        <p class="para">The Select Phase box allows you to select the specific phase for which you wish to plot a boundary, for example WATER. The Phase Fraction box sets the value of fraction of the phase selected to be plotted. For example, to plot the water dew point line select the WATER phase and set the phase fraction to 0 and click on Plot. A phase fraction of zero should always be used to plot the boundary where a phase first appears (or disappears). Phase fractions greater than zero will plot lines where the selected phase is present with the fraction specified. As with the dew, bubble and fixed phase fraction calculations there may not be a solution for the specification made. For example, if the phase fraction of the water phase is set as 1.0 it is unlikely that there will be a solution unless the composition is almost pure water.</p>
        <p class="para">The Type of Solution settings have the same meaning as discussed previously. Normal should usually be selected.</p>
        <p class="para">The Select Basis box allows you to select the property to be plotted.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D2.png" style="width: 453px;height: 355px;" />
        </p>
        <p class="para">&#160;</p>
        <p class="para">The mole fraction, mass fraction and volume fraction properties refer to the fraction of the specified phase. To calculate a phase appearance boundary (with a fraction of 0) it is recommended that you select the mole fraction basis.</p>
        <p class="para">Selecting enthalpy, entropy, volume or internal energy will disable the Type of Solution and Select phase boxes because the property line plotted is the total for all the phases present. The value of the property to be plotted should be entered in the units shown. The units can be changed by clicking on the Units button. Click the Plot button to plot the constant property line.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D3.png" style="width: 453px;height: 355px;" />
        </p>
        <p class="para">&#160;</p>
        <h2>Initial Values Tab</h2>
        <p class="para">The settings on the Initial Values Tab are used when the Plot button is clicked. They are disregarded for the VLEAutoplot operation.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D4_379x297.png" style="width: 379;height: 297;" />
        </p>
        <p class="para">The <span class="span_3">Initial Values</span> section allows you to set a pressure or temperature value for the start of the phase boundary or property plot.. The <span class="span_3">Start from</span> setting selects either the pressure or temperature as the starting point and the <span class="span_3">Initial value to</span> section sets the initial direction for the pressure or temperature.</p>
        <p class="para">Pressure increasing from 1 bar is the default setting and is usually a good choice for many phase boundaries. However, you should be aware that occasionally there may not be a solution for a particular boundary at this pressure and it may be necessary to vary initial conditions to start the tracing of the phase boundary. When plotting phase boundaries for solids it is often a good strategy to start from a high pressure and change the direction to decrease.</p>
        <p class="para">If the boundary still proves difficult to trace, starting values for both the temperature and pressure can be provided. Checking the <span class="span_3">Use starting value</span> box will then provide Multiflash with an initial guess for the starting point and may make it possible to trace the phase boundary.</p>
        <h2>Frame Tab</h2>
        <p class="para">The Frame tab allows you to set P,T boundaries for the calculation and to set the properties you wish to see displayed on the x and y axes. </p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D5_364x285.png" style="width: 364;height: 285;" />
        </p>
        <p class="para">&#160;</p>
        <p class="para">The section headed <span class="span_3">For Calculation</span> allows setting of minimum and maximum values for temperature and pressure that will be used when calculating a phase boundary or property line. It is usually best not to enter any limits because the ranges for the calculation are usually unknown in advance. If the initial point on a line falls outside the specified range no further calculations will be done.</p>
        <p class="para">The <span class="span_3">For Plotting</span> section controls how the results of the calculation are displayed. Normally the x-axis displays temperature and the y-axis displays pressure. However these settings can be changed to enthalpy, entropy, volume, internal energy or the fraction of any phase. All the possibilities are shown in the drop-down list for each axis. The minimum and maximum values for plotting on each axis can also be set. If the T,P range for calculation is limited then the plotted values will also be limited irrespective of the plotting range set.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D6_366x287.png" style="width: 366;height: 287;" />
        </p>
        <p class="para">A typical phase envelope plot might be a <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="Collapsed" MadCap:alt2="Expanded" class="MCExpandingIcon" /></a><span class="MCTextPopupBody_0" style="display: none; ">Vapour-liquid equilibrium</span></span> plot for a hydrocarbon fluid. The axes will be pressure versus temperature.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D7_408x280.png" style="width: 408;height: 280;" />
        </p>
        <p class="para">By changing the plotting variables it is also possible to look at the liquid mole fraction as a function of temperature. </p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D8_415x285.png" style="width: 415;height: 285;" />
        </p>
        <p class="para">Before the new plot is displayed you will be reminded that you have altered at least one of the axis properties and that boundaries plotted on the previous axes will be lost.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000D9_426x88.png" style="width: 426;height: 88;" />
        </p>
        <p class="para">If you wish to return to the standard P,T axes to plot you must remember to alter the axes yourself in the Frame tab, they will not be reset automatically.</p>
        <p class="para">The Frame tab also allows you to change the maximum number of points calculated at any one time. A limit is needed because some phase boundaries do not have a natural end point or form closed loops. The default value for the maximum is 100. This limit can be increased if desired.</p>
        <h2>Phase Envelope Output</h2>
        <p class="para">A typical phase envelope output is shown below. The boundary labelled V/L=0 is generated with the VLEAutoPlot function. The other phase boundaries are added one at a time with the Plot function.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000DA_423x291.png" style="width: 423;height: 291;" />
        </p>
        <p class="para">Any critical points are labelled with a C and discontinuities, where phase boundaries cross, are marked with a D.</p>
        <p class="para">The numerical values for each point plotted are displayed in the main window. Critical points or discontinuities are marked with a C or D in the table.</p>
        <p class="CodeBase_1">Phase envelope output: </p>
        <p class="CodeBase_2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; T/K&#160;&#160;&#160;&#160;&#160;&#160; P/bar</p>
        <p class="CodeBase_2"> 39 &#160;&#160;&#160;&#160; 294.300&#160; 110.80&#160;&#160;&#160;&#160;&#160; </p>
        <p class="CodeBase_2"> 40D&#160;&#160;&#160;&#160; 294.300&#160; 110.80&#160;&#160;&#160;&#160;&#160; </p>
        <p class="CodeBase_2"> 41 &#160;&#160;&#160;&#160; 294.304&#160; 110.95&#160;&#160;&#160;&#160;&#160; </p>
        <p class="CodeBase_2"> 42 &#160;&#160;&#160;&#160; 294.306&#160; 111.03&#160;&#160;&#160;&#160;&#160; </p>
        <p class="para">The first column is the number of the point plotted.</p>
        <h2><a name="kanchor69"></a><a name="_Ref18743540"></a>Customising the phase envelope plot</h2>
        <p class="para">From the Phase Envelope window you can choose to keep or delete the most recently plotted phase boundary or to clear the whole plot. If you do not clear the plot any new phase boundaries will be added to the existing plot. This is a useful way to look at how multiple phases relate to each other or to plot quality lines (lines for differing amounts of a liquid phase) for any phase envelope.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000DB_413x284.png" style="width: 413;height: 284;" />
        </p>
        <h3>Options</h3>
        <p class="para">The Options button allows you to delete or customise each line on the plot.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000DC.png" style="width: 388px;height: 181px;" />
        </p>
        <p class="para">You can change the label, the colour and line style. Tool bar buttons on the plot window also give access to the controls of the graphics package. The Edit button <img src="../Resources/Images/mfwman/030000DD.png" style="width: 23px;height: 26px;" /> provides detailed adjustments.</p>
        <h3>Add Data</h3>
        <p class="para">The Add Data button allows you to add data points to the plot. These would typically be experimental points that you wish to compare with predictions. Clicking on Add Data displays a table.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000DE_225x313.png" style="width: 225;height: 313;" />
        </p>
        <p class="para">Enter the data to be plotted (which can be pasted) and click on Save and Plot. Several data series can be added.</p>
        <p class="para_15">
            <img src="../Resources/Images/mfwman/030000DF_399x274.png" style="width: 399;height: 274;" />
        </p>
        <h3>Write to Excel</h3>
        <p class="para">Although you can call all Multiflash functions directly from an Excel spreadsheet, including the Phase envelope function, you can also transfer the plot and phase boundary points generated in the Multiflash GUI to Excel. Once you are happy with a plot clicking on Write to Excel will generate a spreadsheet with a Chart corresponding to the tabular values reflected in the main window with the values themselves posted to a worksheet.</p>
        <p class="para">The “Write to Excel” facility is supported for Excel 97 onwards.</p>
        <h3><a name="_Ref347232046"></a>PT flash</h3>
        <p class="para">It is possible to do a PT flash at any point on the phase diagram plot. Moving the cursor across the plot displays the temperature and pressure as X, Y coordinates above the plot.</p>
        <p class="para">
            <img src="../Resources/Images/mfwman/030000E0_429x295.png" style="width: 429;height: 295;" />
        </p>
        <p class="para">Right-clicking the mouse displays the PT Flash button. Click on this button to carry out a PT flash at the conditions shown. The output is displayed in the main window.</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#Reference/PhaseEnvelopes.htm" style="">Open topic with navigation</a>
        </p>
    </body>
</html>