Closed wigging closed 2 years ago
Two bits of follow up:
import numpy as np
in order to work.Traceback (most recent call last): File "
", line 1, in File "/Users/decaluwe/opt/anaconda3/envs/cantera/lib/python3.6/site-packages/cantera/composite.py", line 598, in getattr self.class.name, name)) AttributeError: 'SolutionArray' object has no attribute 'set_mixture_fraction'
Thanks, @wigging -- this seems like it should be pretty straightforward. Working on an implementation, atm.
Okay, @wigging this is now incorporated, via https://github.com/Cantera/cantera/pull/1242
Abstract
Set the mixture fraction for a SolutionArray. This can be accomplished with the equivalence ratio so a similar approach could be used for the mixture fraction.
Motivation
The equivalence ratio can be set for a SolutionArray using something like the following:
However, the above example cannot be done with the mixture fraction.
Possible Solutions
A possible implementation for the mixture fraction could be: