<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blog/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://dwsim.inforside.com.br/blog/index.php?/feeds/atom.xml" rel="self" title="DWSIM Development Blog" type="application/atom+xml" />
    <link href="http://dwsim.inforside.com.br/blog/"                        rel="alternate"    title="DWSIM Development Blog" type="text/html" />
    <link href="http://dwsim.inforside.com.br/blog/rss.php?version=2.0"     rel="alternate"    title="DWSIM Development Blog" type="application/rss+xml" />
    <title type="html">DWSIM Development Blog</title>
    <subtitle type="html">Notes and Discussions About DWSIM's Development</subtitle>
    <icon>http://dwsim.inforside.com.br/blog/templates/default/img/s9y_banner_small.png</icon>
    <id>http://dwsim.inforside.com.br/blog/</id>
    <updated>2010-08-30T02:13:30Z</updated>
    <generator uri="http://www.s9y.org/" version="1.3.1">Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/70-Scripting-in-DWSIM-with-VBScript,-JScript,-IronPython-and-IronRuby.html" rel="alternate" title="Scripting in DWSIM with VBScript, JScript, IronPython and IronRuby" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-08-30T02:13:30Z</published>
        <updated>2010-08-30T02:13:30Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=70</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/70-guid.html</id>
        <title type="html">Scripting in DWSIM with VBScript, JScript, IronPython and IronRuby</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>These days I was remembering that some users were asking, in the very beginning of the project, about scripting support, but somehow I just ignored it because I thought at the time that it was too hard for me.</p><p>But now I was digging around the net and found some interesting tutorials about integration of the MS ScriptControl which supports <b>VBScript </b>and <b>JScript</b>. Also, I learned that <b>IronRuby </b>and <b>IronPython </b>can run on the .NET Framework 2, and not only in the 4th version as I thought initially.</p><p align="baseline">My interest in integrating IronPython just got bigger when I remembered that the guys at <b>OPSIM Project</b> like the Python language a lot. So I asked myself, why not?... and came up with this after some work:</p><p align="center"><img hspace="0" border="1" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/script2.png" /></p><p align="left">In the script window you'll be able to control all aspects of the current simulation, including window properties and so on... in the example below a VBScript statement is used to add a new object to the flowsheet:</p><p align="center"><img hspace="0" border="1" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/script1.png" /></p><p align="left">Since I don't know anything about Ruby, I just copied and pasted an example from the internet to see if it was working...</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/script3.png" /></p><p align="left">The above applies to Python as well... <img src="http://dwsim.inforside.com.br/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /></p><p align="center"><img hspace="0" border="1" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/script4.png" /></p><p align="left">I'll see if I can find a good syntax highlighter and add support for saving and loading code to/from files, undo, redo, etc, those kind of things expected in a good code editor. But the most important - scripting support - is already there.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/69-DWSIM-1.7-Build-3875-released.html" rel="alternate" title="DWSIM 1.7 Build 3875 released" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-08-11T14:10:36Z</published>
        <updated>2010-08-11T14:17:04Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=69</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=69</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/69-guid.html</id>
        <title type="html">DWSIM 1.7 Build 3875 released</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>This is a special release, since it includes a new language for DWSIM's Graphical User Interface (GUI) - <b>German</b>, translated from English by <b>Rainer Göllnitz.</b> Thanks, Rainer!</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/dwsim_de.jpg" /></p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/68-DWSIM-1.7-Build-3868-released.html" rel="alternate" title="DWSIM 1.7 Build 3868 released" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-08-06T12:16:07Z</published>
        <updated>2010-08-09T10:21:42Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=68</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=68</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/68-guid.html</id>
        <title type="html">DWSIM 1.7 Build 3868 released</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>This release includes the interface for external plugin development (specific documentation to come later) and updates to rigorous column solvers (IO and SC).</p><p>Until now, the Inside-Out and Simultaneous Correction methods to solve distillation columns were not converging, not without a lot of &quot;tweaks&quot;. So I decided to review and rewrite some parts of the code, which ended up in adding stability and <b>real convergence</b>. So this is the actual behavior of the solvers when used to simulate the column samples:</p><p><table cellspacing="1" cellpadding="1" border="1" style="width: 50%;"><tbody><tr><td></td><td><b>IO</b></td><td><b>SC</b></td><td><b>BP</b></td><td><b>SR</b></td></tr><tr><td><b>extrdist</b></td><td>converges first tower only</td><td>converges first tower only</td><td>converges all towers</td><td>N/A</td></tr><tr><td><b>distcol16</b></td><td>converges even w/o initial estimates </td><td>converges w/o initial estimates (4 iterations)</td><td>converges</td><td>N/A</td></tr><tr><td><b>ngpu</b></td><td>doesn't converge the demethanizer</td><td>too slow, many components/trays</td><td>converges all towers</td><td>N/A</td></tr><tr><td><b>petroleum_dist</b></td><td>doesn't converge</td><td>too slow, many components/trays</td><td>converges</td><td>N/A</td></tr></tbody></table></p><p /><p>The Sum Rates method is just for absorbers and converges in all cases. The Bubble Point method also always converges distillation columns. </p><p>I identified the condenser as the main cause of non-convergence for the IO method, specially if it is a total one (the changes suggested by the newton update in the course of the iteration are just too high sometimes). </p><p>Simultaneous Correction, as every other Newton-Rhapson method, requires good initial estimates in order to converge, and it is very slow if you have many components and/or trays, because the Jacobian is being calculated numerically with the 4-point differencing scheme. I tried both methods (normal 2-point and 4-point) and saw a 50% decrease in the number of iterations when using the 4-point scheme. Maybe later I can include an option to select which scheme to use.</p><p>That's all for now. I'll let these solvers alone for a while, because they take just too much of my time and I'm starting to feel that's just not worth it... at least not to be developed by only one person with nobody reviewing the code. It just requires too much case and scenario testing, and that demands time that I don't have right now.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/67-Plugin-system-for-Utilities.html" rel="alternate" title="Plugin system for Utilities" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-21T20:11:59Z</published>
        <updated>2010-07-28T12:53:55Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=67</wfw:comment>
    
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=67</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/67-guid.html</id>
        <title type="html">Plugin system for Utilities</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
I just finished the Utilities Plugin system for DWSIM. What follows is a little Q&amp;A to help clarify your minds:<br /><br /><u>Q) What is this plugin system?</u><br />A) It is nothing more than an interface definition for add-in classes in DWSIM. You can develop a class library in any .NET language which implements the interface, compile it as a .NET DLL and copy the generated file to the plugins folder. Next time you start DWSIM, it will detect the plugin and make it available as an utility in any simulation.<br /><br /><u>Q) What information from the simulation will be available to the plugin?</u><br />A) You will have the entire DWSIM Namespace available - since you're adding a reference to it - and also a reference to the active simulation and all its objects (streams, unit operations, settings, etc.). You will be able to, for example, instantiate new thermodynamic classes to do calculations, but nothing stops you from using your own class libraries, even if they are in separate assemblies (files). <br /><br /><u>Q) Ok, so what do I need to do to build a working plugin?</u><br />A) The basic steps to create a plugin for DWSIM are:<br />1 - Create a new .NET project in your IDE of choice (Visual Studio, SharpDevelop or MonoDevelop), in any .NET language;<br />2 - Add a reference to <b>DWSIM.exe</b>, and set the <b>CopyLocal</b> property to <b>False </b>(you don't have to copy the entire DWSIM application to create the plugin, just add the reference);<br />3 - Create a class that implements the Interface <b>IUtilityPlugin</b> located in the <b>DWSIM.Interfaces</b> Namespace;<br />4 - Implement the required methods;<br />5 - Compile your project as a .NET DLL;<br />6 - Copy the generated DLL to the <i>plugins </i>folder in the DWSIM application folder;<br />7 - Start DWSIM and create a new/open an existing simulation;<br />8 - Your plugin will be available in the &quot;Plugins&quot; menu item.<br /><br /><p align="baseline">To test the system I created an example plugin which shows some information about itself and a list of GUIDs of the objects in the active simulation. It is really easy and all you will need is some guidance on how to use DWSIM methods and access flowsheet objects and their properties.</p><p align="center"><img hspace="0" border="1" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/exampleplugin1.jpg" /></p><p align="center"><img hspace="0" border="1" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/plugin1.jpg" /></p><p align="center"><img hspace="0" border="0" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/exampleplugin3.jpg" /></p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/66-Gibbs-Reactor-video-tutorial.html" rel="alternate" title="Gibbs Reactor video tutorial" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-18T21:14:43Z</published>
        <updated>2010-07-18T21:17:05Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=66</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/66-guid.html</id>
        <title type="html">Gibbs Reactor video tutorial</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Download <a href="https://sourceforge.net/projects/dwsim/files/DWSIM/DWSIM%201.7/Video%20Tutorials/gibbs.zip/download">here</a>.</p><p>If you have any suggestion for other video tutorials, please leave a message in the comments section.</p><p>/Daniel</p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/65-DWSIM-1.7-Build-3850-released.html" rel="alternate" title="DWSIM 1.7 Build 3850 released" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-17T17:44:21Z</published>
        <updated>2010-07-17T17:44:21Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=65</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=65</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/65-guid.html</id>
        <title type="html">DWSIM 1.7 Build 3850 released</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Just minor fixes and a gift: The <b>Lee-Kesler-Plöcker Property Package</b>. Changelog:</p><p>- [NEW] Lee-Kesler-Plöcker Property Package<br />- [FIX] Fixed K-value calculation call in the Sum Rates method for solving Absorption Columns<br />- [FIX] Fixed IO Flash calculation in single phase region<br />- [FIX] Fixed Critical Point calculation with PR and SRK Equations of State<br />- [FIX] Fixed portions of GUI language that were not being set on the first run</p><p>Click <a href="http://dwsim.inforside.com.br/downloads.html" target="_blank">here</a> to go to the downloads page.</p><p align="baseline">Regarding the new PP, I would like to count on your help to test it against other simulators.</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/lkp2.jpg" /></p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/lkp1.jpg" /></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/64-Optimizing-the-IO-Flash-and-more.html" rel="alternate" title="Optimizing the IO Flash and more" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-14T18:25:14Z</published>
        <updated>2010-07-14T22:15:25Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=64</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/64-guid.html</id>
        <title type="html">Optimizing the IO Flash and more</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>I just tried a different approach to solve the single phase temperature problem with the IO flash and it <strong>seems</strong> to be faster and equally reliable as the nested loops one. I did some benchmarking and here are the results (numbers represent execution time in seconds):</p><p><table cellspacing="1" cellpadding="1" border="1" style="width: 500px;"><tbody><tr><td></td><td><b>IO old</b></td><td><b>IO new</b></td><td><b>NL</b></td></tr><tr><td><b>cavett16</b></td><td>52.424</td><td>7.952</td><td>8.93</td></tr><tr><td><b>ngpu</b></td><td>N/D</td><td>42.124</td><td>22.94</td></tr><tr><td><b>extrdist</b></td><td>4.62</td><td>3.19</td><td>2.7</td></tr><tr><td><b>Single PH Flash</b></td><td>5.796</td><td>1.67</td><td>2.14</td></tr></tbody></table></p><p /><p>That's definitely an improvement, except when the IO flash is used to calculate bubble and dew points without proper initialization, which is the case when we solve columns with no initial temperature estimates.</p><p align="baseline">I also finally found the error in the triple sum routine for critical point calculation. It was, in fact, an error in the equation on the paper (by Michelsen and Heidemann, &quot;Calculation of Critical Points from Cubic Two-Constant Equations of State&quot;). They wrote an &quot;alpha&quot; were it should be an &quot;a&quot;. I found another paper with the correct expression, and now the calculated critical points seem to be consistent:</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/MIXpd.png" /></p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/CONDpd.png" /></p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/NGpd.png" /></p><p>Pretty nice, eh?</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/63-Important-information-about-the-new-IO-Flash-in-DWSIM-1.7.html" rel="alternate" title="Important information about the new IO Flash in DWSIM 1.7" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-09T21:07:42Z</published>
        <updated>2010-07-12T00:57:09Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=63</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=63</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/63-guid.html</id>
        <title type="html">Important information about the new IO Flash in DWSIM 1.7</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>The original IO algorithm is intended to work only in the VLE region, that is, it was not meant to use in single-phase scenarios. That's why you'll see DWSIM slowing down when calculating PH/PS flashes in the single-phase region with the IO algorithm.</p><p>I'm still trying to find a way to tune the parameters and make the algorithm at least as fast as the nested loop one but, for now, be advised. If you would like to test it, try to run the Cavett simulation with the IO method and check the compressor calculation time - it is very slow because it is only gas, and there is a PS flash and a PH one right after.</p><p>Also, the critical point calculation is not behaving as expected. The problem is in the &quot;triple sum&quot; calculation, because the stability curve is being calculated correctly. I'll try to find another paper with the formulation for the PR EOS and check against the one I used to make the code. This only affects the phase envelope and critical point utilities, but it is important for you to know that this is a known bug.</p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/62-DWSIM-1.7-Build-3840-released.html" rel="alternate" title="DWSIM 1.7 Build 3840 released" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-09T00:35:26Z</published>
        <updated>2010-07-09T01:59:04Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=62</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=62</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/62-guid.html</id>
        <title type="html">DWSIM 1.7 Build 3840 released</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p align="center"><img hspace="0" border="0" align="baseline" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/pic0002.jpg" /></p><p>Build 3840 introduces the Gibbs Reactor and comes with important changes in the thermodynamics framework. Changelog:<br />
<br />
- [NEW] Gibbs Reactor model (vapor phase only) with two solving methods: reaction extents and direct minimization<br />
- [NEW] New global settings for Property Packages: Flash Algorithm and Calculate Bubble/Dew points<br />
- [NEW] New approach for equilibrium calculation: Inside-Out by Boston and Britt<br />
- [NEW] Added an option to adjust Rackett Parameters and Acentric Factors to match SG and NBP in Petroleum Characterization Utilities<br />
- [NEW] New Quick Settings toolbar: Unit system and number formatting<br />
- [NEW] New menu gives quick access to DWSIM Tools<br />
- [NEW] Added the option to select stream component amounts as properties to show on PFD tables<br />
- [CHG] Completely rewritten Equilibrium Reactor model<br />
- [CHG] Updated ChemSep database loading code to support ChemSep 6.62<br />
- [FIX] Fixed an exception when working with pump curves to calculate pump power<br />
- [FIX] Fixed a bug in temperature calculation with the Steam Tables Property Package<br />
</p><p>Click <a target="_top" href="http://dwsim.inforside.com.br/downloads.html">here</a> to go to the downloads section.<br />
</p><p>In the next days I'll add some content to the Wiki:</p><p>- A tutorial on how to use the Gibbs Reactor<br />- A source code guide telling where to find what<br />- Explanation of the new flash algorithm<br />- Explanation of the gibbs and equilibrium reactor modeling<br />
</p><p style="text-align: left;">That's all for now. Thanks for your support!</p><br />
<p style="text-align: left;">/Daniel</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/61-More-on-DWSIM-1.7.html" rel="alternate" title="More on DWSIM 1.7" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-07-06T19:21:58Z</published>
        <updated>2010-07-06T20:49:10Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=61</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=61</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/61-guid.html</id>
        <title type="html">More on DWSIM 1.7</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p align="baseline"><b>Component amounts in property tables</b>: component amounts (mass/molar fraction/flow) will be available as selectable properties for display in flowsheet table and as selectable properties for adjusts, specifications and optimization.</p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/comptable.png" /></p><p align="baseline"><b>Phase diagram with IO flash</b>: fixed, now it is giving the same results as the default algorithm, but faster.</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/pdio01.png" /></p><p align="baseline"><b>Bubble and Dew point calculations on streams</b>: The user will be able to calculate bubble and dew points at stream conditions, and display the results in the property grid (if the stream is at liquid-vapor equiibrium).</p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/bdpoints0.png" /></p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/bdpoints.png" /></p><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/60-Phase-Envelopes-with-new-flash-schemes.html" rel="alternate" title="Phase Envelopes with new flash schemes" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-06-30T21:03:09Z</published>
        <updated>2010-07-06T20:12:57Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=60</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/60-guid.html</id>
        <title type="html">Phase Envelopes with new flash schemes</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p align="baseline">The Inside-Out approach shows some difficulty in converging non-bubble points. From what I've found during my tests, this originates from the higher temperature variation on each iteration towards convergence, leading the equation of state to generate trivial solution K-values (all close to 1).</p><p><img hspace="0" border="0" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/penv_flashB.png" /><img hspace="0" border="0" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/penv_flashB2.png" /></p><p> On the other hand, my new and improved algorithm is showing very good results:</p><p><img hspace="0" border="0" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/penv_flashD.png" /><img hspace="0" border="0" vspace="0" src="http://dwsim.inforside.com.br/blog/uploads/penv_flashD2.png" /></p><p>DWSIM 1.7 is coming in a few days... just wait a little more time. </p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/59-New-Equilibrium-Calculation-Scheme.html" rel="alternate" title="New Equilibrium Calculation Scheme" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-06-30T03:28:00Z</published>
        <updated>2010-06-30T12:25:20Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=59</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/59-guid.html</id>
        <title type="html">New Equilibrium Calculation Scheme</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>In DWSIM 1.7 you will have the option to choose between two flash algorithms or schemes - <b>DWSIM Default</b> (traditional Rachford-Rice for PT flash and nested loops for PH/PS flashes) and <b>Inside-Out </b>(from Boston and Britt). There will be a global setting which controls calculations done by all Property Packages OR you can define this setting in a per-Property Package basis. The default for each added property package is the global setting.</p><p align="baseline">Source code changes are much more deeper. I removed all repeated code from property packages and now all equilibrium calculations are handled by the base class (<i>PropertyPackageBaseClass</i>) and flash methods in separate classes, grouped by scheme. The property packages will provide only the necessary K-value, Fugacity, Enthalpy and Entropy values for the equilibrium routines.</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/io1.jpg" /></p><p align="baseline" /><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/io2.jpg" /></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/58-Inside-Out-Flash-in-DWSIM.html" rel="alternate" title="Inside-Out Flash in DWSIM" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-06-25T02:24:28Z</published>
        <updated>2010-06-25T20:52:47Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=58</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=58</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/58-guid.html</id>
        <title type="html">Inside-Out Flash in DWSIM</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>I just finished coding the IO Flash algorithm by Boston and Britt in DWSIM. And it is working! Convergence of my test problem was actually a bit slower than the current method but I guess that it is something related to my initial estimates...</p><p>Anyway, DWSIM 1.7 will contain this new flash code and also a new, more conservative Michelsen two-phase flash algorithm which is guaranteed to converge even on difficult cases like those near the critical point.</p><p>I can't wait to see the Phase Envelope utility without bubble points going towards infinity.... <img src="http://dwsim.inforside.com.br/blog/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/57-Next-on-DWSIM.html" rel="alternate" title="Next on DWSIM" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-06-16T02:36:31Z</published>
        <updated>2010-06-16T11:35:36Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=57</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=57</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/57-guid.html</id>
        <title type="html">Next on DWSIM</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p align="baseline">The Gibbs Reactor is done and the Equilibrium Reactor was completely rewritten. The first can be solved using equilibrium reaction information or not, just like in UNISIM/HYSYS. With the same mixture and reactions, these three methods should always give the same results, although through completely different calculation methods. The results were validated against UNISIM and book examples.</p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/Jun15snap002.jpg" /></p><p align="baseline">Also, there are some changes in the Petroleum utilities. In the Distillation Curve charac. utility you can now provide a single density or molar weight value which will be taken into account when calculating pseudocomponents.</p><p align="center"><img src="uploads/Jun15snap005.jpg" /></p><br />
<p>On both utilities, you'll have the option to tune Acentric Factors and Rackett parameters to match NBPs and specific gravities, using the default Property Package (first on the list) or the Peng-Robinson EOS, if there isn't any.  In the case of NBP fitting, you'll get a better phase behavior <br />
agreement with experimental data.</p><div align="center"><img src="uploads/Jun15snap006.jpg" /></div><div align="center"><div align="center"><img vspace="0" hspace="0" border="0" src="http://dwsim.inforside.com.br/blog/uploads/Jun15snap008.jpg" /></div><br />
</div><p align="baseline">The result is the calculated density matching the value provided while characterizing the sample, for the ZRa adjustment. If that still doesn't work, you can force an ideal mixing rule for the calculation of liquid density in the property package configuration window (because Rackett's method uses averaged properties - Tc, Pc, ZRa, Vc, etc. for the whole mixture by default). And THEN it should work.</p><p align="center"><img vspace="0" hspace="0" border="0" src="http://dwsim.inforside.com.br/blog/uploads/Jun15snap004.jpg" /></p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/Jun15snap007.jpg" /></p><p align="baseline">I included a new &quot;Tools&quot; menu item which contains the component and reaction tools available only in the simulation configuration window until now.</p><p align="center"><img vspace="0" hspace="0" border="1" src="http://dwsim.inforside.com.br/blog/uploads/Jun15snap003.jpg" /></p><p>Also updated is the ChemSep database loading code to reflect some changes they did in the PCDManager's output XML. DWSIM 1.7 will contain these and other minor changes/fixes and will be released as soon as I finish updating the documentation and some tutorials.</p><p>/Daniel</p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://dwsim.inforside.com.br/blog/index.php?/archives/56-Gibbs-Reactor,-Pt-1.html" rel="alternate" title="Gibbs Reactor, Pt 1" />
        <author>
            <name>Daniel Medeiros</name>
                    </author>
    
        <published>2010-05-25T02:07:25Z</published>
        <updated>2010-05-25T11:45:52Z</updated>
        <wfw:comment>http://dwsim.inforside.com.br/blog/wfwcomment.php?cid=56</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://dwsim.inforside.com.br/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=56</wfw:commentRss>
    
    
        <id>http://dwsim.inforside.com.br/blog/index.php?/archives/56-guid.html</id>
        <title type="html">Gibbs Reactor, Pt 1</title>
        <content type="xhtml" xml:base="http://dwsim.inforside.com.br/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p align="baseline">Calculation mode 1 is done. Here you have to inform which equilibrium reactions are occurring without worrying about the equilibrium constants.</p><p align="center"><img vspace="0" hspace="0" border="0" src="http://dwsim.inforside.com.br/blog/uploads/gibbs0.jpg" /></p><p align="center"><i><font size="1">The &quot;N/A&quot; component is actually Carbon Monoxide.</font></i></p><p align="baseline">In this mode, the result is composed by reaction extents and component conversions, just like the Eq Reactor. Currently I'm using the Simplex method from the DotNumerics library to minimize the mixture Gibbs free energy, and it is working OK.</p><p align="center"><img src="http://dwsim.inforside.com.br/blog/uploads/gibbs1.jpg" /></p><p /> 
            </div>
        </content>
        
    </entry>

</feed>