Skip to content
Discussion options

You must be logged in to vote

Hi @HaSchneider,

great addition, thank you! I think there is two issues in the implementation right now:

First, you do need to subtract the mass of pure nitrogen vanishing from the mass balance due to conversion to NO. It seems (to me) in the first elif block that you were calculating the difference between what was available and what is converted. I think this would be the correct formulation (but please confirm):

            if self.lamb.val_SI < 1:
                dm=0
            elif n_nitrogen >= inl[1].m.val_SI*self.f_nox.val_SI /0.03001 *0.5:  #molar mass of NO: 0.03001 kg/mol
                dm = -inl[1].m.val_SI* self.f_nox.val_SI /0.03001 *inl[0].fluid.wrapper[self.n2]._molar_mass

Replies: 1 comment 1 reply

Comment options

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

Answer selected by HaSchneider
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