DWSIM 3.0 Build 5031 released Fri, Oct 11. 2013
DWSIM 3.0 Build 5031 was released for Windows, Linux and OS X. This is a major release with a number of new features and enhancements.
Changes since 2.1 Build 4819:
- [NEW] New Unit Operations for Solid-handling simulations: Solids Separator and Continuous Cake Filter
- [NEW] Unified code base and single executable for .NET/Mono, compiled for CLR v4.0
- [NEW] New XML simulation file format for full compatibility between platforms (Windows/Linux/OS X)
- [NEW] New Parallel Calculations engine with support for multicore CPUs and CUDA/OpenCL-capable GPUs
- [NEW] 'Copy Data to Clipboard' function added to flowsheet objects
- [CHG] Stability enhancements to Rigorous Column model and Boston-Britt Inside-Out solver
- [CHG] Report tool now fully supports Excel Spreadsheet file format
- [CHG] Added more material stream composition input options: Mass/Mole Flows, Standard Liquid Volumetric Fractions, Molarity and Molality (for electrolyte simulations)
- [CHG] Mixer and Separator Vessel models now supports up to six inlet streams
- [CHG] NRTL/UNIQUAC Interaction Parameters are now temperature-dependent
- [CHG] All Activity coefficient models now include an option to model the Vapor Phase as ideal. The Data Regression utility also supports this option in order to regress data to find the interaction parameters accordingly
- [CHG] The Compound Creator was enhanced to include more Joback/UNIFAC groups, Element information and Solid Phase properties estimation, including temperature-dependent ones (Cp, Density). The regression graphs now show calculated properties for every temperature dependent property
- [CHG] Phase Envelope utilities now have cancellation support
- [CHG] The Binary Envelope Utility was enhanced to show every kind of equilibrium line supported by DWSIM (VLE, LLE, SLE and Critical)
- [CHG] The Data Regression utility now supports fixing some interaction parameters, enhanced LLE /SLE regression
- [CHG] The Pure Compound Property viewer now includes molecular properties, solid properties and property tables
Equilibrium calculations using the GPU Thu, Apr 18. 2013
The GPU (Graphics Processing Unit) is a piece of hardware that is suitable for massively parallel, simple calculations. Taking this in consideration in the context of a GPU-enabled process simulator like DWSIM, the more compounds a simulation has, the higher the speed gain will be when comparing CPU vs. GPU calculation times.
For instance, taking a very common example of a simulation involving an oil characterization where 50 pseudocomponents were generated, using the Lee-Kesler-Plöcker Property Package to calculate stream properties. In this case, a simple equilibrium calculation at 400 K and 1 atm takes almost 29 seconds on an AMD Phenom II X4 965 CPU to finish, while a GeForce GTX 550 Ti GPU takes only 6 seconds to do the same job. And that's with only the fugacity calculation being done in the GPU in the latter case.
This is only an example of what can be done in DWSIM with a CUDA or OpenCL-enabled graphics card. As I wrote in the above, the more compounds we have in the simulation, the higher the speed gains will be.
GPU/CUDA Processing in DWSIM 3 Sat, Feb 09. 2013
DWSIM 3 Preview 4 Sun, Jan 27. 2013
Here's what is new on this latest build (remember, this is WORK IN PROGRESS... accuracy/reliability is not guaranteed at any level):
- The Data Regression Utility was enhanced to better support LLE calculations. Now it also shows a y/x chart (McCabe-Thiele type) and a table with the regression statistics. I also added multicore processor support here (make sure to enable this option in the General Settings window):
- The Pure Compound Property Viewer now includes a 'Molecular' tab, which displays molecular structure info and a 2D molecule render:
- The Binary Envelope Utility now supports LLE. It will display the equilibrium lines in red, together with calculated VLE data. For this to work, you'll have to choose from one of the three-phase flash algorithms, selecting the second compound as the key one for the second liquid phase search. You can also use the gibbs minimization algorithm for this, it works now.
- Electrolyte support is getting better. I was able to code the Extended UNIQUAC model and it works nicely, but with some small differences in calculated activities when compared to the LIQUAC model. To use the electrolyte models, add Water from the ChemSep database and the compounds from the Electrolyte database. Define the salt dissociation equilibrium reactions accordingly and DWSIM will automatically read the information from the default set of reactions, calculating the phase and chemical equilibria simultaneously for every stream on the flowsheet.
DWSIM and Electrolyte support Wed, Dec 26. 2012
I'm currently working on adding electrolyte support to DWSIM, complete with SVLE equilibrium calculations and two new property packages (LIQUAC2 and Extended UNIQUAC).
The database and model data are ready and in place. Now I'll work on the models themselves and on modifying the Gibbs Minimization algorithm to support solid phases. There will be also support for speciation and hydration reactions on the flash calculation, in order to fully describe the chemical equilibria of the electrolyte system.
DWSIM 3 preview Sun, Oct 28. 2012
Working on DWSIM 3 Sun, Oct 21. 2012
This week I started working on DWSIM 3. You might be asking yourself why such a big jump in the versioning scheme, but that's because there are some deep changes in the way DWSIM will work from now on. The main ones are:
- Unified code base for .NET and Mono
DWSIM 3 will have a single code base which will run on .NET and Mono when compiled to CIL binaries. No more separate sources and binaries. This is already done, but needs more testing.
- New XML simulation file format
The new XML file format will enable true interoperability between platforms. A simulation saved on Windows will be loadable on Linux / OS X and vice-versa. This is what I'm working on currently.
- Compiled for CLR 4.0
DWSIM 3 is being compiled under .NET 4.0 (Visual Basic 2010 Express) so we can take advantage of the language enhancements (XML, LINQ, Parallel classes). The Mono Runtime already has support for these so that's not a big deal.
Speaking of the new XML file format, I'm finishing the code for the write functions, with only the unit ops code waiting to be done. I've defined a new interface called ICustomXMLSerialization that all classes that must be persisted should implement.
Implementation of the functions defined in this interface varies, depending on the classes. For instance, the GraphicObjects implementation is explicit, while for other classes I chose to use quick and dirty Reflection.
The resulting XML file for the Extractive Distillation sample, for instance, will be something like this => test.xml
Saving property values to a text file Sat, Sep 29. 2012
When using DWSIM at work, sometimes I need to calculate properties of simple mixtures like natural gases, NGL, oils and so on. Frequently I also must send the property values to the person who asked me to do the calculation, and I`ve noticed that DWSIM doesn't have a quick and easy way to copy properties from a stream or unit operation to a text file.
And here is where enters the new "Export properties to text file" feature. It is something relatively easy to accomplish with the Property Grid and also very useful when you need to copy only a few results from the simulation to do some extra work on a spreadsheet, for example.
If you use this feature on a Material Stream, you'll get a text file like this one.
This feature will be available on the next public release.