Jump to content

Properly calculating flow rates in an engine with multiple propellants


Recommended Posts

I'm trying to calculate the electric charge ratio to put in an engine cfg for an engine that has multiple propellants with varying ratios. No matter what I try my equations don't seemt o match up with what I get ingame, so I thought I'd post here. I have this easily working for a single propellant engine (like the stock ion engine) but multiple fuels stump me. I'll explain my approach.

First calculate the mass flow rate for the engine:

mass flow rate (t/s) = thrust (kN) / (specific impulse (s) * g0)

Then for each fuel (let's call them A and B), I then calculate the fractional fuel consumption for each fuel.

fuel frac A = (fuel ratio A / sum of all fuel ratios)
fuel frac B = (fuel ratio B / sum of all fuel ratios)

Then I calculate the unit flow rate for each propellant:

unit flow rate A  (u/s) = (mass flow rate (t/s) * fuel frac A ) / density A (t/u)
unit flow rate B (u/s) = (mass flow rate (t/s) * fuel frac B ) / density B (t/u)

Then I sum the fuel consumption

total flow rate (u/s) = unit flow rate A (u/s) + unit flow rate B (u/s)

Then multiply the inverse by the desired electricity consumption

charge ratio = 1 / (total flow rate (u/s)) * desired EC use (u/s)

That works well for single propellants, but for multiple propellants it really screws up - I don't even get the same unit flow rates from the math above as the VAB shows ingame. And the charge use is of course totally off. 

Any idea what I'm doing wrong? I expect it's something in how I handle the ratios between fuels but Im kinda stumped!

 

 

Link to comment
Share on other sites

I think the step you're missing is the mixture density, which allows you to convert from mass flow rate to unit flow rate.  The mixture density would be the weighted sum of all the propellant densities

(mixture ratio) = SUM (propellant density * propellant ratio) / SUM(propellant ratio)

If you divide the mass flow rate by the mixture ratio, you will get the unit flow rate, then you can multiply by the (normalized) propellant ratio to get the flow rate in units per second for each propellant

Link to comment
Share on other sites

That did the trick! Thanks @blowfish! I actually don't even need to go to the flow rate per second, I just need the unit flow rate, which I can then multiply by the sum of all fuel ratios. Dividing the Ec required by that number gets me what I want for the cfg Ec ratio. 

Edited by Nertea
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...