Skip to content

Gas Turbine_Error in fuel composition analysis #461

Answered by fwitte
MikeSennis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

The issue is, that you are passing an array to all the fluid mass fractions, that cannot work. You do not iterate over the values of the numpy array but over the values of the tuple (first is numpy array, there are no other values in there.

hyd = np.linspace(0, 0.75, 16), # hydrogen volume (molar) fraction in fuel mixture
                           # ^ Due to this comma, python saves the numpy array in a tuple.
for x_H2 in hyd:
    x_NG = 1-x_H2 # natural gas volume (molar) fraction in fuel mixture

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MikeSennis
Comment options

Answer selected by MikeSennis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants