Unknown Species Error

169 views
Skip to first unread message

Burak Gunaydin

unread,
Oct 7, 2020, 9:40:29 AM10/7/20
to Cantera Users' Group
Hi everyone,
I'm very new to Cantera and I'm using it on MATLAB. I'm trying to define a chemical composition, but I'm getting a ctmethods error, saying that its an Unknown Species. However, I checked the data files and I can see the compound on nasa_gas file on line 11118. Can you tell me where my mistake is? I'm attaching a pastebin link below.

Steven DeCaluwe

unread,
Oct 7, 2020, 12:05:24 PM10/7/20
to <cantera-users@googlegroups.com>
Hi Burak,

You are loading the GRI 3.0 mechanism, from the ‘gri30.yam’ file.  The species ’SF6’ is not part of that mechanism.

Is there a different mechanism you are trying to load?

Best,
Steven


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/7b05b936-3b33-42ea-be8e-b766fb01b314n%40googlegroups.com.

Burak Gunaydin

unread,
Oct 8, 2020, 12:52:29 AM10/8/20
to Cantera Users' Group
Hello Steven,
Thanks for your reply. After posting this, I realized that SF6 is in nasa_gas.xml and nasa_gas.xml files. However, I still can't define the composition. I ran the "help Solution" command and it returns "s = Solution('input.xml'[, phase_name[, transport_model]])". I have very limited knowledge on Cantera, but I guess I should type "nasa_gas.xml" for the input.xml part, but I couldn't figure out what I should type for phase_name. I'm adding a screenshot of the SF6 part in the nasa_gas.xml file, and the return of help Solution command below.
Thanks for your interest,
BurakSF6 nasa_gas.jpghelp Solution return.jpg

Steven DeCaluwe

unread,
Oct 12, 2020, 10:31:13 AM10/12/20
to <cantera-users@googlegroups.com>
Hi Burak,

The ’nasa_gas’ inputs contain a collection of species definitions, but no phase definitions. You can use these definitions in a file of your own making where you define the phase.

The two ways you could use this would be:
1. Copy and past this species definition into an input file where you define the overall phase.
2. In your phase definition, you can define species by direct reference to the ’nasa_gas’ definitions.  You can see an example of this here, which uses species defined in gri30.yaml:


Best,
Steven



On Oct 7, 2020, at 10:52 PM, Burak Gunaydin <burakgu...@gmail.com> wrote:

Hello Steven,
Thanks for your reply. After posting this, I realized that SF6 is in nasa_gas.xml and nasa_gas.xml files. However, I still can't define the composition. I ran the "help Solution" command and it returns "s = Solution('input.xml'[, phase_name[, transport_model]])". I have very limited knowledge on Cantera, but I guess I should type "nasa_gas.xml" for the input.xml part, but I couldn't figure out what I should type for phase_name. I'm adding a screenshot of the SF6 part in the nasa_gas.xml file, and the return of help Solution command below.
Thanks for your interest,
Burak<SF6 nasa_gas.jpg><help Solution return.jpg>

On Wednesday, October 7, 2020 at 7:05:24 PM UTC+3 S. DeCaluwe wrote:
Hi Burak,

You are loading the GRI 3.0 mechanism, from the ‘gri30.yam’ file.  The species ’SF6’ is not part of that mechanism.

Is there a different mechanism you are trying to load?

Best,
Steven


On Oct 7, 2020, at 12:26 AM, Burak Gunaydin <burakgu...@gmail.com> wrote:

Hi everyone,
I'm very new to Cantera and I'm using it on MATLAB. I'm trying to define a chemical composition, but I'm getting a ctmethods error, saying that its an Unknown Species. However, I checked the data files and I can see the compound on nasa_gas file on line 11118. Can you tell me where my mistake is? I'm attaching a pastebin link below.


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/7b05b936-3b33-42ea-be8e-b766fb01b314n%40googlegroups.com.


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/803aa539-8e38-4637-8a70-4a18fbcf9d80n%40googlegroups.com.
<SF6 nasa_gas.jpg><help Solution return.jpg>

Reply all
Reply to author
Forward
0 new messages