Hi Daniel, I have a Natural Gas mixture at a given pressure, and I need to calculate the dew point temperature, using your DTL library. I'm trying to develop a command line app. The gas mixture has several components like:
Nitrogen
Carbon Dioxide
Methane
Ethane
Propane
Isobutane
N-Butane
Isopentane
N-Pentane
N-Hexane
N-Heptane
N-Octane
N-Nonane
H2S
Is there any example of something like this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel, it worked, thank you. I had to debug the DWSIM.Thermodynamics library in order to understand what are the function's arguments, but also due to the fact that it was throwing an exception for my compounds mixture. It seems there is an internal default compound list created in PropertyPackage.vb, line 10272: AddDefaultCompounds(New String() {"Methane", "Ethane", "Propane"}). I commented out this line, then the method started working with no issues.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel, sometimes the CalcEquilibrium() function is not returning the proper result. I guess it is because the pressure I'm using is above the cricondenbar pressure for the same natural gas mixture. Is there a way to calculate the cricondenbar pressure?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel, I have a Natural Gas mixture at a given pressure, and I need to calculate the dew point temperature, using your DTL library. I'm trying to develop a command line app. The gas mixture has several components like:
Is there any example of something like this?
Use the CalcEquilibrium function with the PressureVaporFraction flash type, VF = 1.0 (dew point): https://github.com/DanWBR/dwsim5/blob/windows/DWSIM.Thermodynamics.StandaloneLibrary.Tests/Example2.vb#L43
Hi Daniel, it worked, thank you. I had to debug the DWSIM.Thermodynamics library in order to understand what are the function's arguments, but also due to the fact that it was throwing an exception for my compounds mixture. It seems there is an internal default compound list created in PropertyPackage.vb, line 10272: AddDefaultCompounds(New String() {"Methane", "Ethane", "Propane"}). I commented out this line, then the method started working with no issues.
Hi Daniel, sometimes the CalcEquilibrium() function is not returning the proper result. I guess it is because the pressure I'm using is above the cricondenbar pressure for the same natural gas mixture. Is there a way to calculate the cricondenbar pressure?
Only if you build the dew point curve with PV/TV flashes and get the highest calculated pressure.
Is there any example to build the dew point curve? Or what function should I use? I'm only using the CalcEquilibrium function.
Check my code to build such diagram: https://github.com/DanWBR/dwsim5/blob/windows/DWSIM.Thermodynamics/Property%20Packages/PropertyPackage.vb#L3694
Maybe you can call this function from DTL? I've never tried it.