Glad to hear you got it working. Your other error is somewhat
perplexing - I just input the same "gas = gri30('Mix')" command into
Matlab (I assume you're using Matlab?), and it created the phase just
fine.
The only possibility that comes to mind is where you say "I have
a .cti file created with..." I'm assuming that you're using the
"gri30.cti" file supplied with Cantera, but if you've instead created
your own version, is it possible that you've given the phase
declarations a name other than 'gri30_mix'? If so, the 'gri30.m'
function in the Matlab toolbox is looking for a phase name
('gri30_mix') that doesn't exist, which would result in your error
below.
Does the following call:
gas = importPhase('gri30.cti', 'gri30_mix')
also result in an error?
> --
> You received this message because you are subscribed to the Google
> Groups "Cantera User's Group" group.
> To post to this group, send email to canter...@googlegroups.com.
> To unsubscribe from this group, send email to cantera-users
> +unsub...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/
> group/cantera-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To post to this group, send email to canter...@googlegroups.com.
Visit this group at http://groups.google.com/group/cantera-users.
For more options, visit https://groups.google.com/d/optout.
Hello,
I have been trying to determine the thermal conductivity and viscosity of a gas /mixtures for ranges of temperature using cantera/python platform.Please see the attached file for the code would be glad if anyone could diagnose the error found in the code.
Thank you.
On 14/05/2015 16:09, Bryan W. Weber wrote:
Dear Oku,--
I'm glad what you ran worked. I don't have time right now to write the whole code for you, but you can use a for loop and change the temperature by the line gas.TP in the code you have already. Cantera uses the NASA polynomial parameterization for the thermo parameters, I'm not sure how it calculates the thermal conductivity and viscosity.
Bryan
On Thursday, May 14, 2015 at 8:28:50 AM UTC-4, Oku Nyong wrote:Dear Bryan,
I also sorry for my previous post of the wrong window.I wasn't watchful on my own part.You guys are really doing a good job.I have updated my cantera to the use Beta Cantera 2.2 hoping to get use to new updated package.
I actually ran this
import cantera as ct
gas = ct.Solution('h2o2.xml')
gas.TP = 1000, None
print gas.thermal_conductivity
print gas.viscosity
and i got the values for the thermal conductivity and gas viscosity at 1000k,I intend to calculate the transport properties for two range of temperature for instance T < 1000 K, and another for
T > 1000 K.
Does Cantera uses the NASA parameterizations for range of temperature?
I would be glad if you could illustrate with an example how to calculate this temperature dependence thermal conductivity and gas viscosity for two temperature range using air.
Thank you.
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.