simulkade / PVTtool

A Matlab toolbox for the PVT calculation using the cubic equations of state (EOS)
24 stars 17 forks source link

Step by Step #1

Open Crisp09 opened 4 years ago

Crisp09 commented 4 years ago

I got a ternary mixture of CH4, N2 and H2 and want to get VLE Diagramms. Could someone explain me how to use the PVT Tool stepbystep. I don't get it. :/ I used Matlab 2019 and tried to first addComponents but the tool only allows one Component and shows me a 0x0 matrix. I also tried it with addMixture('CH4' 'H2' 'N2', 300, 100000) but it didn't work because of to many input arguments. I would be really grateful if someone could help.

simulkade commented 4 years ago

Hi @Crisp09, See one of the examples, for instance this one

Crisp09 commented 4 years ago

Thanks a lot. I get these errors when I try:

Reference to non-existent field 'Pc'.

Error in kval_estimate (line 48) critical_pres = [mixture.components.Pc]; % [pa]

Error in lleflash (line 50) ki = kval_estimate(mixture);

Error in examplecomment (line 22) lleflash(mixture1, thermo1, options)

simulkade commented 4 years ago

Could you copy your whole example?

On Fri, Jul 3, 2020 at 10:13 AM Crisp09 notifications@github.com wrote:

Thanks a lot. I get these errors when I try:

Reference to non-existent field 'Pc'.

Error in kval_estimate (line 48) critical_pres = [mixture.components.Pc]; % [pa]

Error in lleflash (line 50) ki = kval_estimate(mixture);

Error in examplecomment (line 22) lleflash(mixture1, thermo1, options)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simulkade/PVTtool/issues/1#issuecomment-653416443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOLLRX5E5BGWW4WMMZPMETRZWHLVANCNFSM4OO35EYQ .