<?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: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>Tuning with incomplete titration data</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>
        <h1>Tuning with incomplete titration data</h1>
        <p class="caption">Problem: </p>
        <p class="para">How do I&#160;tune my model if my titration data does not include the amount of heptane required to initiate asphaltene precipitation?</p>
        <p class="caption">Approach:</p>
        <ol>
            <li class="listnum" value="1">
                <p>Characterize the <span class="MCTextPopup"><a href="javascript:void(0);" class="MCTextPopupSpot_0" onclick="FMCTextPopup( event, this ); return false;">STO<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; ">Standard tank oil</span></span>, if this composition is provided, or flash the characterised live oil to STO conditions (1 bar, 60 °F), using the RKSA model to ensure that no separate asphaltene phase is formed.</p>
                <p>
                    <SPAN class="emphasisbold">Requirement: </SPAN>If you have bubble point data, tune your model with the PVT lab tests tool (saturation) prior to flashing to STO conditions.</p>
            </li>
            <li class="listnum" value="2">
                <p>Using the STO composition, change the model set to asphaltene, match the asphaltene data using STO conditions as the AOP data value, and save the file (STO.mfl).</p>
                <p>
                    <SPAN class="emphasisbold">Important: </SPAN>Do not include the bubble point data in the matching; that data is valid only for the live oil.</p>
            </li>
            <li class="listnum" value="3">Create an Excel spreadsheet to read the file (titration_sto.xls).</li>
            <li class="listnum" value="4">In the spreadsheet, add heptane, and a command line describing the asphaltene parameters.</li>
        </ol>
        <p class="para">For this example we have generated the file STO.mfl from the live oil composition in the file titration.mfl. STO.mfl should be used in the Excel spreadsheet.</p>
        <p class="para" style="background-color: #ffff00;" MadCap:conditions="Default.AuthorComments">In the spreadsheet you then need to do two things: add a new component to the list, heptane, and add a command line describing the asphaltene parameters. This can be copied from the Multiflash GUI by using Tools/Show/Problem to display the commands. The command line can be copied and pasted to the spreadsheet but for fitting purposes it must be set up so that the RAP parameter appears in a single cell so that it can be optimised using the Excel Solver, e.g.</p>
        <p class="caption">Try it yourself:</p>
        <ol>
            <li class="listnum" value="1">On  the <SPAN class="GUI">File </SPAN>menu, click <SPAN class="GUI">Open</SPAN>, and open the file STO.mfl.</li>
            <li class="listnum" value="2">&#160;</li>
        </ol>
        <p class="para">You then need to create an Excel worksheet to read this .mfl file. Details of how to do this are described in the Excel manual, but we have provided an example spreadsheet, titration_sto.xls.</p>
        <p class="code">include c:\work directory\sto.mfl";<br />model MREFASPHALTENE RAEQUIL DATA AAPREEXP 1.00000000 AAEXP 1.00000000 RAPREEXP <br />.636986<br />RAEXP <br />0.96698<br />;<br />component heptane;</p>
        <p class="para">The spreadsheet, titration_sto.xls, is set up to optimise the value of RAPREEXP (RAP) using the Excel Tools/Solver by comparing the calculated wt% of asphaltene deposited for given amounts of heptane to the experimental wt% deposited.</p>
        <p class="para">For our particular example the data reported in the paper included a live oil and a STO composition, a wt% asphaltene for the STO, an asphaltene precipitation point and five points for the heptane titration.</p>
        <p class="para">The reported titration data are plotted below</p>
        <p class="para">
            <img src="../../Resources/Images/mfwman/060001B3_373x251.png" style="width: 373;height: 251;" />
        </p>
        <p class="para_6">Fitting to the onset precipitation point using the matching facility produced the following parameters</p>
        <p class="para_22">RAP&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0.94176</p>
        <p class="para_22">RAE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0.96636</p>
        <p class="para_6">Whereas fitting to the other four points in Excel gave parameters</p>
        <p class="p_13">RAP&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0.94999<br />RAE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0.96636</p>
        <p class="para">These parameters represent the STO titration data well, but the amount of heptane to just initiate precipitation is slightly higher. You can check the predicted value for the amount of n-heptane required for the onset of asphaltene precipitation using a tolerance calculation with heptane as the second fluid. The predicted amount is .997 g/g oil rather than .962.</p>
        <p class="para">
            <img src="../../Resources/Images/mfwman/060001B4_330x222.png" style="width: 330;height: 222;" />
        </p>
        <p class="para">It is clearly preferable to generate the live oil <span class="MCTextPopup"><a href="javascript:void(0);" class="MCTextPopupSpot_0" onclick="FMCTextPopup( event, this ); return false;">APE<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; ">Asphaltene phase envelope</span></span> from live oil data. Some predictions are possible from titration data but it is important that all data are compatible, particularly the compositions of the STO and the flashed liquid and the physical properties of pseudo components by matching to bubble point data in both cases if you have them.</p>
        <p class="para">For this example we also had a measured precipitation point and you can see the APEs resulting from the different approaches.</p>
        <p class="para">
            <img src="../../Resources/Images/mfwman/030001B5_426x293.png" style="width: 426;height: 293;" />
        </p>
        <p>
            <img src="../../Resources/Images/reltop.gif">
            </img>
        </p>
        <p class="reltop">
            <img src="../../Resources/Images/rellink.gif" /><a href="TuningThe_AsphalteneModel.htm">Tuning the asphaltene model</a>
        </p>
        <p class="page_footer">© 2015 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#Using_Multiflash/WorkingWithAsphaltenes/TuningWithIncompleteTitrationData.htm" style="">Open topic with navigation</a>
        </p>
    </body>
</html>