s-amouyal12 / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

water.xml only seems to have one phase #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In python I load Cantera `import cantera as ct` 
2. I load a solution `water = ct.Solution('water.xml')`
3. The species list returned `water.species_names` is only ['H2O(S)']

What is the expected output? What do you see instead?
The species_names list should include both H2O(S)and H2O(L)

What version of the product are you using? On what operating system?
Python 2.7.7 :: Anaconda 2.0.1 (32-bit) with Cantera 2.1.1 installed on Windows 
Vista SP2

Please provide any additional information below.
The xml file may be malformed in some way, as it seems to have both H2O(S)and 
H2O(L), but only H2O(S) loads correctly.

Original issue reported on code.google.com by sgl...@gmail.com on 10 Sep 2014 at 12:13

GoogleCodeExporter commented 8 years ago
This behavior is expected. The default is to load the first phase defined in 
the xml file (or cti file), which in this case is the stoichiometric solid 
phase (H2O(S)). To load the liquid phase, type

liquid_h2o = ct.Solution('water.xml','liquid_water')

To explicitly load the solid phase, type

solid_h2o = ct.Solution('water.xml','ice')

For further help on how to use these phases, please post on the Cantera User's 
Group (http://groups.google.com/forum/#!forum/cantera-users).

Best,
Bryan

Original comment by bryan.w....@gmail.com on 10 Sep 2014 at 12:58

GoogleCodeExporter commented 8 years ago
Bryan ! 

water is not ice at this temperature (300K) !!! it is liquid 

Original comment by NBSah...@gmail.com on 26 Nov 2014 at 12:18