Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diamond CVD example produces incorrect growth rate #1806

Open
joelager opened this issue Nov 7, 2024 · 1 comment
Open

Diamond CVD example produces incorrect growth rate #1806

joelager opened this issue Nov 7, 2024 · 1 comment

Comments

@joelager
Copy link

joelager commented Nov 7, 2024

Problem description
Running the diamond CVD example as is yields a large negative (non-physical) rate for diamond

image

Steps to reproduce

Just run the script

Behavior

System information

  • Cantera version: 3.0.0
  • OS: Linux and MacOS
  • Python/MATLAB/other software versions: 3.10, 3.11, 3.12

Attachments

Original code - yields index 8 which is actually hydrogen

  iC = d.kinetics_species_index(dbulk.species_index('C(d)'), 1)   # wrong, indexed to H

Correct code, yields the index for bulk diamond

  iC = d.kinetics_species_index('C(d)')

Additional context

This is what the result should look like
image

@speth
Copy link
Member

speth commented Nov 8, 2024

Thanks @joelager, good catch! Would you like to open a Pull Request fixing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants