Open AntonBaluev opened 8 years ago
Hi Anton,
I may add a custom compound framework to DTL in the future. In the meantime you can use DWSIM to create a database of custom compounds and load it in DTL. Use the Initialize overload that takes an array of string as argument. This array of strings must contain the paths for user compound databases.
https://github.com/DanWBR/DTL/blob/master/DWSIM/Interfaces/Thermodynamics.vb, Line 63
http://dwsim.inforside.com.br/wiki/index.php?title=Using_the_Compound_Creator_Utility
Hi Daniel, First of all its a great library and many thanks for your efforts.
I have looked at the example provided and api, and as I understand the feed and mixtures you can create only from PropertyPackage.AvailableCompounds property.
Is there any way to add custom component? I come from petroleum engineering and fluid pvt characterization deals a lot with not pure but "pseudo" components and fractions. Here where I am at the moment.
Its obviously fails, because more properties should be defined for the compound. But ConstantProperties() has way too many fields and many of them is not used in this flash.
What should I define for this hydrocarbon like compound to make PTFlash work?
For pseudo component we usually have molecular weight, specific gravity, and boiling point. Critical temperature, Tc; critical pressure, pc; and acentric factor of each component in a mixture are required by EOS and estimated from correlations. I am a bit lost with ConstantProperties class. Any advice would be much appreciated.
Anton.