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

Handle ambient species, which are used in reactions but have "infinite" supply #111

Open
artgoldberg opened this issue Sep 24, 2020 · 0 comments

Comments

@artgoldberg
Copy link
Contributor

artgoldberg commented Sep 24, 2020

Certain species, such as O2, and H2O, which we call ambient, are assumed to have infinite supply in the environment.

Ambient species may be used in reactions, but cannot be used in expressions. They do not have initial populations, which means that their initial population is 0 by default.

Comprehensive approach for ambient species:

At initialization

  • Input list of ambient species (best identified by a boolean value in WC Lang species types)
  • The mass of ambient species must be 0
  • Set the population of ambient species to 0
  • Prohibit use of ambient species in expressions

During simulation

  • Disable negative population exceptions or negative population warnings for ambient species
  • Don't include ambient species in predictions
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

1 participant