Menu

Natural Gas Nydrocarbons Dew Point

lukiller
2019-01-11
2019-03-24
  • lukiller

    lukiller - 2019-01-11

    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?

     
  • lukiller

    lukiller - 2019-01-17

    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.

     
  • lukiller

    lukiller - 2019-03-19

    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?

     
  • Daniel Medeiros

    Daniel Medeiros - 2019-03-20

    Only if you build the dew point curve with PV/TV flashes and get the highest calculated pressure.

     
  • lukiller

    lukiller - 2019-03-21

    Is there any example to build the dew point curve? Or what function should I use? I'm only using the CalcEquilibrium function.