Skip to main content
1-Visitor
September 29, 2014
Question

Compressibility factor of GN

  • September 29, 2014
  • 4 replies
  • 1692 views

Hello.

I find myself trying to calculate the compressibility factor of natural gas based on the procedure of calculating the attached document and check if the template is crafted correctly with a given example therein. I do not know how I'm doing it is the most appropriate because I am newbie using M15, but in trying to solve a system of equations I get one of the variables is not defined.

Hope you can help me and if there is something ridiculous in the preparation of such return please hagamenlo know.

4 replies

1-Visitor
September 29, 2014

Is there any chance you could post an example instead of a 3.0MB file?

24-Ruby IV
September 29, 2014

May be this my calculation will be any help to you:

http://twt.mpei.ac.ru/ochkov/TTMI/13/13-06.PNG

19-Tanzanite
September 29, 2014

Error messages from solve blocks are useless. No matter what the problem is, you always get an undefined variable error.

A trivial substitution reduces your problem to one equation with one unknown. That makes it easy to find the real problem, which is that there is no solution. There is no value of D that results in the expression on the rhs being equal to your target pressure.

Pressure.png

BPP1-VisitorAuthor
1-Visitor
September 29, 2014

Richard're absolutely right, I have committed any error in equations or other part of the file, since according to the document in which this calculation is based there is a value of "D" for this data.

Thank you.