Hello, in the Iron Python example about setting ms outlet properties, the outlet composition setting is coded as follows:
comp = feed.GetOverallComposition()
outflow.SetOverallComposition(comp) # where comp is the inlet ms composition
How can I set my own composition? I tried:
myComp = Array[float] ((1,0,0))
outflow.SetOverallComposition(myComp)
but it didn't work.
Does anyone know the right formulation to set one's own composition?
Best regards,
David B.
Last edit: DavidB 2021-06-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, in the Iron Python example about setting ms outlet properties, the outlet composition setting is coded as follows:
comp = feed.GetOverallComposition()
outflow.SetOverallComposition(comp) # where comp is the inlet ms composition
How can I set my own composition? I tried:
myComp = Array[float] ((1,0,0))
outflow.SetOverallComposition(myComp)
but it didn't work.
Does anyone know the right formulation to set one's own composition?
Best regards,
David B.
Last edit: DavidB 2021-06-22
It works, i forgot to import math and array....
Hey David, do you mind sharing your code for this? I can't seem to create an 'Array' type only an array
Hey James, this is how i created the array :
import math
from System import Array
myComp = Array[float] ((1.0,0.0,0.0))
Last edit: DavidB 2022-01-25