Redlich-Kwong MFTP Real Gas model in python

289 views
Skip to first unread message

Kevin Holst

unread,
Apr 5, 2013, 10:30:39 AM4/5/13
to canter...@googlegroups.com
I'm interested in looking at thermo properties of gases at densities where real gas effects come into play. I use the Python interface for Cantera, but I can't seem to find out how to implement the Redlich-Kwong MFTP real gas model (described in revision r733). Was this left out of the current python interface? If so, how would I go about putting it in there?
 
My guess is that it has to do with the files '_cantera.pyd' and 'cantera_shared.dll'. If the real gas model was compiled into the dll, am I correct in thinking that I just have to (somehow) rewrite the _cantera.pyd file to access this model?
 
Thanks,
 
Kevin Holst

Ray Speth

unread,
Apr 11, 2013, 7:58:12 PM4/11/13
to canter...@googlegroups.com
Hi Kevin,

It's not so much that the RedlichKwongMFTP class was left out of the Python module as that it's just not connected to the functions used to create new ThermoPhase objects. On top of that, there doesn't seem to be an example anywhere of how to write an XML input file for this class, and there's no functionality for writing .cti input files for it either.

The first part I can fix, but you'll probably need Harry to provide an example input file in order to be able to use this model.

Regards,
Ray
Reply all
Reply to author
Forward
0 new messages