Search the web
Sign In
New User? Sign Up
cantera · Cantera User's Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with mixtures and maxTemp in Python   Message List  
Reply | Forward Message #1954 of 1972 |
Re: Problem with mixtures and maxTemp in Python

Hi Harry,
first of all thank you! The error message diappeared, but I am not
sure if the function works correctly:


In the multiphase problem there is one gasphase and several pure solid
and liquid phases (iron and iron oxides).
The melting point of one iron oxide is 1650 K (FeO(s), see NASA.cti),
therefore the thermodynamic data end there for the solid. I added some
amount of FeO(s) to the initial composition. While doing the
calculations from 600 to 2000 K, every 100 K I print mix.maxTemp()
The output is always 3000 K instead of 1650 K.


Starting at 1650 K I get an additional error:
Logfile error.
beginLogGroup: MultiPhase::equilibrate
endLogGroup: equilibrate

By the way, where can I find this logfile?



What do you think, am I doing something wrong?
Thanks again!

Regards,

Burak

--- In cantera@yahoogroups.com, "Moffat, Harry K" <hkmoffa@...> wrote:
>
> Hi Burak,
>
> I have fixed the mixture.py class so that the maxTemp() and
minTemp() member functions now work as intended.
> You will have to check out a fresh CVS version of the code.
>
> Best wishes,
> Harry
>
> Harry Moffat (w) (505)
844-6912
> Nanoscale and Reactive Processes (f) (505) 844-8251
> Sandia National Laboratories
hkmoffa@...
> P. O. Box 5800-0836
> Albuquerque, NM 87185-0836
>
> -----Original Message-----
> From: cantera@yahoogroups.com [mailto:cantera@yahoogroups.com] On
Behalf Of galliumnitrid
> Sent: Thursday, January 08, 2009 5:43 AM
> To: cantera@yahoogroups.com
> Subject: [cantera] Problem with mixtures and maxTemp in Python
>
> Dear all,
> I am not sure if there are many users left in this group, however, I
> have the following problem while using Cantera:
>
> I am calculating multiphase equilibria. The data for some species are
> not valid for the whole temperature range of interest. Therefore I
> wanted to check this within the script -to avoid errors- using the
> maxTemp() and minTemp() functions.
>
> (My mixture is named mix.)
>
> I all ways get the following error in Python:
> ------------------------------------------------
> mix.maxTemp()
>
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, in <module>
> mix.maxTemp()
> File "c:\python25\lib\site-packages\Cantera\mixture.py", line 184,
> in maxTemp
> return _cantera.mix_maxTemp(self._index)
> AttributeError: Mixture instance has no attribute '_index'
> >>>
> ------------------------------------------------
>
> Is the syntax wrong? Or anything else?
>
> It would be nice if anybody could help.
>
> Regards
> Burak
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>





Sun Jan 11, 2009 5:53 pm

galliumnitrid
Offline Offline
Send Email Send Email

Forward
Message #1954 of 1972 |
Expand Messages Author Sort by Date

Dear all, I am not sure if there are many users left in this group, however, I have the following problem while using Cantera: I am calculating multiphase...
galliumnitrid
Offline Send Email
Jan 8, 2009
12:43 pm

Hi Burak, I have fixed the mixture.py class so that the maxTemp() and minTemp() member functions now work as intended. You will have to check out a fresh CVS...
Moffat, Harry K
hkmoffat
Offline Send Email
Jan 9, 2009
9:00 pm

Hi Harry, first of all thank you! The error message diappeared, but I am not sure if the function works correctly: In the multiphase problem there is one...
galliumnitrid
Offline Send Email
Jan 11, 2009
5:53 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help