Jump to content

NFT Fuel Tank Capcities and Ratios Discussion


Nertea

Recommended Posts

So there's some discussion going around the NFT and CryoEngines threads about a Thing I Did . It is hereby split to here.

Basically, LH2 is really light and airy and this makes problems. Not on its own, but when combined with LH2/OX rockets, regular LF/O engines and LV-Ns, things get messy. So maybe we need to discuss what to do?

Here are some very basic constants that there is no room to change under this paradigm:

  • Liquid Fuel is 0.005 t/u and is 5.5 litres per unit
  • Oxidizer is 0.005 t/u and is 5.5 litres per unit
  • Liquid Hydrogen is 0.00007085 t/u and is 1.0 litres per unit

Some of my general notes:

  • Placing LH2 in tanks according to their is not fun (too large)
  • Stock mass fractions for fuel tanks are very inaccurate and detrimental to things. However, messing with the mass fraction of stock tanks is off the table
  • LF/OX and LH2/OX need to exist in a realm together
  • If you want exact realism, get out of the thread ;)

Things about NFT balance:

  • CryoEngines are burning fuel at 1 LOX:10 LH2 . This is close enough to stoich by mass for me. No point in making it 8.7 or whatever, or simulating oxygen rich, or fuel rich, or some exotic thing. Unlikely to change unless argument is *very* good.
  • CryoEngines' fuel switch patch guesses volumes at 5.5 x total tank capacity (LF+O), then places 1.5x too much LH2 by volume in them. Oxidizer content is computed by ratio from that.
  • NFT orbital tanks have 1.5x too much LH2 in them by volume. Oxidizer calculated similarly.

Discuss! And everyone be nice. Or else.

Link to comment
Share on other sites

I dare assume NFT orbital tanks have better dry mass/wet mass ratio at the cost of drag (all the se xy skeletal framework and the like) and impact/heat tolerance. If this is not the case, then that's my suggestion. LH2 is relatively low mass so making the tanks lightweight too (obviously a fuel that low density is gonna have a rather poor wet/dry mass ratio in any case) helps make lifting a lot of them to orbit easier (I wont say easy because part wobble, length, fairing size, etc.).

The LH2/Ox mix in stock fuel tanks feels solid in terms of the cryo engines. Its easy enough to come by delta V, TWR, and generally anything else I need in lifters.

LH2 in NTRs currently produces far far too little delta V for the sheer craft size. Here in lies the current problem.

Below is a StarLight tug being inserted into orbit. It uses a single nuclear lightbulb (porkjet) which I configured to run on LH2. Thats what it takes to push one of two 30 ton space station segments out to Jool.

48BRSlw.png

The problem is how KSP calculates fuel consumption. AFAIK, this is calculated based on engine Isp, thrust output, and fuel mass (as it is IRL). LH2's low mass makes the stuff get guzzled down. As for solutions, I got nothin' ATM.

Link to comment
Share on other sites

One way to reward LH2-fueled NTR's is to give LH2-throwing NTR's an ISP boost (or LF-throwing NTR's an ISP penalty, or both)

Nuclear thermal engines could be less picky about what reaction mass they use (LH2, LF, LFO, O, ...), but the ISP should vary depending on what they're throwing out the nozzle - lower atomic weight propellants will get thrown faster and as a result should have higher ISP. So you partly compensate for the lower density of LH2 by giving LH2-throwing NTR's higher ISP than LF-throwing NTR's. Apparently at the core temperatures found in plausible NTR designs molecular hydrogen decomposes into monatomic hydrogen and this itself gives an ISP boost.

When I get a chance I'll play with the math I found here: http://space.stackexchange.com/questions/2021/nuclear-thermal-rocket-specific-impulse-calculation-uses-1-amu-is-that-wrong and come up with ISP fudge factors that seem plausible.

Link to comment
Share on other sites

One way to reward LH2-fueled NTR's is to give LH2-throwing NTR's an ISP boost (or LF-throwing NTR's an ISP penalty, or both)

Nuclear thermal engines could be less picky about what reaction mass they use (LH2, LF, LFO, O, ...), but the ISP should vary depending on what they're throwing out the nozzle - lower atomic weight propellants will get thrown faster and as a result should have higher ISP. So you partly compensate for the lower density of LH2 by giving LH2-throwing NTR's higher ISP than LF-throwing NTR's. Apparently at the core temperatures found in plausible NTR designs molecular hydrogen decomposes into monatomic hydrogen and this itself gives an ISP boost.

When I get a chance I'll play with the math I found here: http://space.stackexchange.com/questions/2021/nuclear-thermal-rocket-specific-impulse-calculation-uses-1-amu-is-that-wrong and come up with ISP fudge factors that seem plausible.

I dare assume KSP Liquid Fuel is RP-1 kero, which has ~0.9 g/mL density. May I suggest basing the maths off of that value?

Link to comment
Share on other sites

I'm honestly just glad that there is now such wide support for a Hydrogen/Kerosene/LOx fuel paradigm. Thanks so much for making it happen.

As far as I can tell there are only two ways to fix the tankage problem: higher capacity or higher density, and we've already fudged the density and aren't messing with it anymore.

To me it doesn't make sense to alter the capacity for one fuel type but not another, so I think all the tanks could use a bit more, but since this isn't the CryoRockets thread where this usually happens, there are some other options open. I would say that the NFP tanks are of a sufficiently different construction to warrant different properties than the stock ones, and since the problem mostly occurs with LH2-only NTR vessels it might help to up their capacity only. it's already pretty high though.

Oh, and nuclear thermal engines do start to care if they are burning oxidizer... it starts to oxidize the engine!

Link to comment
Share on other sites

I think NathanKell mentioned in RealFuels thread that stock LF/OX are close to Aerozine 50 and N2O4 by stats in resourceglobal.cfg file or something similar. Maybe you can use that.

Link to comment
Share on other sites

I'm going to watch this thread with a lot of interest. I don't get super hung-up on the realism aspect, but if a bunch of people agree that something works well, I'll use it in my playthroughs.

With the mods I'm using I find it interesting comparing LqdHydrogen designs (with or without oxidizer) vs. Liquid/Oxidizer. The delta V and TWR ends up about the same, but the former cuts quite a few tons off of what I need to lift to orbit when I assemble them.

Link to comment
Share on other sites

The delta V and TWR ends up about the same, but the former cuts quite a few tons off of what I need to lift to orbit when I assemble them.

This right here. I actually favor doing it the split way using LOX for the lower atmospheric lift and LH2/Ox for the upper stages to keep that weight down for the low end and remain efficient on the high end. As for the the NFT tank mass/volume issue I don't really have a solution either. Personally for me I tend to mix in the tanks as needed for various configurations but it tends to be when I need less dV that I use the NFT tanks since I get so much more out of other tanks. When I don't need as much, I go for the NFT tanks to conserve mass as a result of lower fuel weight. It seems to me that I can pretty much get whatever I need but I would like to see a solution that would make stock tanks and NFT tanks fairly interchangeable.

Link to comment
Share on other sites

LOL Rocket designs of all types...the heavy density of the the LOX is the reason I use it on the lower stage in order to keep center of mass as close to thrust as possible during primary lift. It does sometimes result in some tricky staging if I have to go between 10-15km on small two stage lifters but for bigger payloads, I always will use at least 3 so I end up staging the payload somewhere around 35-40km or higher. Not quite as stable but I can get to a 100km staging orbit on 3800-4000 dV with no problem at all.

Anyway, back to my original latest post. I've been playing around with the various NFT tanks tonight and getting a bit more of an idea where some of the inconsistencies might exist. One thing I'm finding is that on my larger lifters (3.75m), the NFT tanks are pretty well balanced against stock. Just a basic example of this:

Results shown from Engineer using KS-68 'Mars' Cryoengine with vacuum settings around Kerbin with a 108 kt payload

  • Kerbodyne S3-7200 w/ LH2/Ox = 24,601 kg = 580 m/s dV. This setup has 36,000/3600 LH2/Ox. Tank dry mass is 4.05t
  • NFP Mondo-30 Hydrogen Tank w/ LH2/Ox = 21899 kg = 581 m/s dV. This setup has 35450/3545 LH2/Ox. Tank dry mass is 1.66t

So, as can be seen here, the performance is pretty much identical (don't think we're gonna quibble over 1 m/s dV) but there is one huge difference - cost. This may not apply to some people but does to those of us who are heavy career players (all I play actually). The Kerbodyne tank is only 5166.2 whereas the Mondo-30 is 18194.4. That's a significant difference you pay for simply saving 2.39t. The height difference between the two is nearly negligible too with the Mondo-30 saving you .1m of height. Where I see there are inconsistencies in a number of other tanks, what I'm seeing on the 3.75m formats seem to be very well balanced. The other size 3 NFP tanks are a little more complicated to simulate and I would never fly those kinds of configurations with size 1,2 and 3 stock tanks mixed together but when I put them on just to balance out weights/fuel totals I see pretty much the same thing as I do between the Mondo-30 and Kerbo 7200 in the 3.75m lines.

Link to comment
Share on other sites

Here's what I posted in the NFP thread. I tried different tankage/engine combos for a 2.3-ton command module, and here's the result:

Tunguska + LH2/OX Jumbo: wet mass 29.3t, dry mass 9.8t, TWR 0.96, 4317 m/s delta-v.

Tunguska + LH2/OX NFP tankage: wet mass 31t, dry mass 7.6t (!), TWR 0.90, 5525 m/s delta-v.

Hydrogen LV-N + LH2 NFP tankage: wet mass 29.4t, dry mass 8.25t, TWR 0.21, 7152 m/s delta-v.

Hydrogen LV-N + LH2 Jumbo tanks: wet mass 29.0t, dry mass 17.3t (!), TWR same, 3950 m/s delta-v.

The only times the cryo rocket came anywhere close to the nuke in terms of delta-v was when I either used a stock tank with LH2 for the nuke (much too heavy!) or an NFP tank with LH2/OX for the cryo (a little too light). As long as I stuck with using tanks for roughly their intended purpose (NFP tanks for LH2 only, stock tanks for fuel/oxidizer combinations), things seem pretty balanced, at least for this size of ship. Stock LF/OX engines get high TWR and low delta-v, hydrogen nukes get low TWR and high delta-v, cryo rockets ended up about halfway in-between, which is pretty much (in my non-engineer's mind at least) the way it should be.

My only suggestion would be (if this is possible) to disable Interstellar Fuel Switch for the NFP tanks, keep them restricted to LH2-only.

EDIT: Just for the sake of argument, here are the values for the same ship with LF/O propulsion.

Poodle + LF/O stock tanks: wet mass 27.8t, dry mass 6.6t, TWR 0.92, 4361 m/s delta-v.

Skipper + LF/O stock tanks: wet mass 29.1t, dry mass 7.8t, TWR 2.28, 3659 m/s delta-v.

Which is interesting because the Poodle option actually compares favorably to the Tunguska option (and is a bit cheaper to boot, for us career-mode people). Presumably the difference is because the Poodle is half the weight of the Tunguska, and really more a cryo equivalent to the Skipper. If I use a Chelyabinsk instead (love the names, by the way), delta-v goes back up to 5171 at cost of an NTR-like TWR of 0.21.

Edited by Hotaru
Link to comment
Share on other sites

Just from when I was playing around with the CryoEngine mass ratios from before... I tried 1:4, 1:6, 1:8, 1:10, 1:12... 1:10 as you have it now is the most sane. I did the actual tests on it. 1:10 is the way (works best for gameplay, makes writing configs far simpler, is close enough for chemistry purposes, works nice if one wants to add a module to the ISRU to make LH2 and Ox).

So that one should simply go off the table.

I haven't gotten into the NFT Hydrogen stuff yet, but from what I'm seeing on the cryoengines side the tankage is pretty close to perfect as far as I'm concerned from what I seem to recall you wanted for tradeoffs for Kerosene vs LH2.

My 2 cents then would be to make the NFT electrical parts do what you think is best for delta-V via ISP (and adjust the electrical use so with the new ISP they use the amount of electricity per second at full throttle you'd like) and leave the tanks the way they are. So, if from the NFT-Propulsion side we're needing too many hydrogen tanks for fun... have the MPDTs use less hydrogen per second, but same amount of electricity. Looks like maybe the same should happen for the NTRs as far as fuel use and thrust when using LH2. Properties of a kerbal NTR should be what they must be to fill the spaceflight role they're supposed to demonstrate rather than adhering to what real world numbers are... as we're not using real world NTRs because real ones behave quite differently to what we have now.

Link to comment
Share on other sites

I'm not sure if everyone is aware of this but IFS allow different mass when switching between Liquid Hydrogen and Liquid Fuel. I myself use the standard that a LH tank is 1/6 the dry mass of a LF tank.

Edited by FreeThinker
Link to comment
Share on other sites

My only suggestion would be (if this is possible) to disable Interstellar Fuel Switch for the NFP tanks, keep them restricted to LH2-only.

I also think that this would be the best solution. Another idea would be to increase the dry mass of the NFP tanks if you put oxidizer in them, making it close to the stock tanks, so you can keep all the aesthetic possibilities while having good balance.

- - - Updated - - -

Also maybe, just maybe, increasing the NTR's ISP a little bit? According to Wikipedia solid-core NTRs running on liquid hydrogen typically achieved ISPs of 850 to 1000s, while the LV-N is only 800s in vacuum. 900s would be reasonable I think.

Link to comment
Share on other sites

Also maybe, just maybe, increasing the NTR's ISP a little bit? According to Wikipedia solid-core NTRs running on liquid hydrogen typically achieved ISPs of 850 to 1000s, while the LV-N is only 800s in vacuum. 900s would be reasonable I think.

So what I'm seeing is that the ISP of solid-core NTR's running on H2 should increase modestly (like you say, to perhaps ~900-950s or so), while solid-core NTR's running on stuff made of bigger atoms should have substantially lower ISP, likely closer to that of chemical rockets. Higher-temperature NTR's should have proportionately higher ISP's, again with LH2 having a substantial ISP boost over LF.

one convenient table is here:

http://www.projectrho.com/public_html/rocket/enginelist.php#ntrsolidcore

note that 1: ISP is exhaust velocity divided by earth's gravity - divide the velocities by 9.8 m/s^2 to get ISP

and 2: the table assumes that the heat in the engine core will cause propellants to decompose into molecular gases.

I haven't yet reverse engineered the decompositions picked to do an analogous one for RP-1, but the exhaust velocity & ISP should be lower than methane due to the proportionately higher carbon content.

- - - Updated - - -

I'm not sure if everyone is aware of this but IFS allow different mass when switching between Liquid Hydrogen and Liquid Fuel. I myself use the standard that a LH tank is 1/6 the dry mass of a LF tank.

Can a plugin tell if a tech node is unlocked?

It would make sense for materials science research to result in decreased tank dry mass. Look at the Space Shuttle external tank: The initial version was 35t; after a bunch of those were made they cut the weight to 30t; later on they changed the alloy to an Aluminum-Lithium mix and reduced the weight to 26.5t. You could reflect this by unlocking additional parts but it would quickly get unwieldy.

For career game balance, I'd think lighter tanks should generally be more expensive.

Link to comment
Share on other sites

Well I just wasted an hour of my life extracting raw data, a LOT of it. For those interested, my raw data is below. All data gathered via KER VAB readouts.


Chelyabinsk + FL800 = 4,755 dV + 1.61-4.67 TWR (3,533kg)
Chelyabinsk + Centi 3 = 6,053 dV + 1.34-5.19 TWR (4,194kg)
LH2 Nerv + FL800 = 753 dv + 1.60-1.75 TWR (3,861kg)
LH2 Nerv + Centi 3 = 1,076 dV + 1.65-1.86 TWR (3,705kg)
LF Nerv + FL800 = 5,979 dV + 0.82-1.75 TWR (7,500kg)
LV909 + FL800 = 5,445 dV + 1.22-6.12 TWR (5,000kg)
2.5m-----------------------------------------------------------
Tunguska + Jumbo 64 = 5,642 dV + 1.11-3.98 TWR (35,317kg)
CHelyabinsk + Jumbo 64 = 7,315 dV + 0.25-1.27 TWR (22,667kg)
Tunguska + HM21 = 7,243 dV + 1.02-5.26 TWR (27,515kg)
CHelyabinsk + HM21 = 9,940 dV + 0.23-2.09 TWR (24,865kg)
LH2 Nerv + Jumbo 64 = 3,843 dV + 0.62-0.96 TWR (9,891kg)
LH2 Nerv(x2) + Jumbo 64 = 2,768 dV + 0.94-1.29 TWR (12,971kg)
LH2 Nerv + HM21 = 4,261 dV + 0.77-1.25 TWR (7,909kg)
LH2 Nerv(x2) + HM21 = 2,846 dV + 1.11-1.54 TWR (10,989kg)
LF Nerv + Jumbo 64 = 13,476 dV + 0.16-0.87 TWR (39,000kg)
LF Nerv(x2) + Jumbo 64 = 11,211 dV + 0.29-1.21 TWR (42,080kg)
Poodle + Jumbo 64 = 6,459 dV + 0.68-4.43 TWR (37,750kg)
3.75m----------------------------------------------------------
Yukutan + Kerbo S3 = 5,234 dV + 2.54-8.67 TWR (58,151kg)
Tunguska + Kerbo S3 = 6,695 dV + 0.53-2.43 TWR (52,651kg)
Yukutan + Mondo 60 = 6,595 dV + 2.49-11.68 TWR (59,356kg)
Tunguska + Mondo 60 = 8,911 dV + 0.52-3.92 TWR (53,856kg)
LH2 Nerv + Kerbo S3 = 4,877 dV + 0.33-0.57 TWR (18,506kg)
LH2 Nerv(x4) + Kerbo S3 = 2948 dV + 0.88-1.23 TWR (27,666kg)
LH2 Nerv + Mondo 60 = 5,902 dV + 0.47-0.91 TWR (13,077kg)
LH2 Nerv(x4) + Mondo 60 = 2,983 dV + 1.10-1.54 TWR (22,237kg)
LF Nerv + Kerbo S3 - 15,266 dV + 0.07-0.51 TWR (84,000kg)
LF Nerv(x4) + Kerbo S3 = 11,628 dV + 0.26-1.16 TWR (93,160kg)
Poodle + Kerbo S3 = 7,005 dV + 0.31-2.37 TWR (82,750kg)

Tank data------------------------------------------------------
FL800 LH2/Ox = 4,000 LH2 + 400 Ox
FL800 LH2 = 6,160 LH2
FL800 LF = 800 LF
FL800 LFO = 360 LF + 440 Ox
FL800 dry = 500kg
Centi 3 LH2 = 6,000 LH2
Centi 3 LH2/Ox = 5,455 LH2 + 545.5 Ox
Centi 3 DRY = 280kg
Jumbo 64 LH2/Ox = 32,000 LH2 + 3,200 Ox
Jumbo 64 LH2 = 49,380 LH2
Jumbo 64 LF = 6400 LF
JUmbo 64 LFO = 2,,880 LF + 3,520 Ox
Jumbo 64 DRY = 4,000kg
HM21 LH2 = 42,750 LH2
HM21 LH2/Ox = 38,863.6 LH2 + 3866.4 Ox
HM21 DRY = 1880kg
Kerbo S3 LH2/Ox = 72,000 LH2 + 7,200 Ox
Kerbo S3 LH2 = 110,880 LH2
Kerbo S3 LF = 14,400 LF
Kerbo S3 LFO = 6480 LF + 7920 Ox
Kerbo S3 DRY = 9000kg
Mondo 60 LH2 = 90,000 LH2
Mondo 60 LH2/Ox = 81,818.2 LH2 + 8,181.8 Ox
Mondo 60 DRY = 3700kg
1.25m----------------------------------------------------------

The numbers Mason, what do they mean?

Anyone here get the reference?

One thing that's blatantly obvious is that the LH2 Nerv gets a heck of a lot less dV for the same tankage. On the other hand, the LH2 Nerv gets more delta V per mass than the cryo engines. The Chelyabinsk & HM21 tank give 9,940 delta V with a total mass of 24,865 kg. The LH2 Nerv & HM21 tank has only 4,261 delta V, but only weighs in at 7,909kg. The cryo engine gives 0.40m/s dV/kg whereas the Nerv gives 0.54 m/s dV/kg. For additional comparison, the LH2 Nerv gives 0.39m/s dV/kg when placed on a Jumbo 64. Conversely, the LF Nerv gives 0.35m/s dV/kg. As a final reference point, the Chelyabinsk gives 0.32m/s dV/kg. Those number speak for themselves. If we, however, put this in context that the cryo engine gets almost twice the dV per jumbo 64 that the LH2 Nerv does, and that the LF Nerv gets three and a half times the dV per tank (assuming tank is set to engine's fuel only), the convenience of having to take three and a half times less tankage for the same dV, even at a significantly lower TWR, becomes the higher concern for the player. The gains in efficiency are not significant enough over the losses in convenience to make this appealing.

Additionally, the NFP LH2 tanks have a bit of wierdness going on when they're filled with LH2/Ox. This can be seen in the table above as their masses are greater than stock tanks with the same fuel composition even though their dry masses are lower and their volumes are roughly the same. What I gather is that the fudge factor on fuel volumes is applied to the NFP tanks but not the stock tanks when using the fuel switcher.

(As a random sidenote, I had an idea on alternate meshes. Perhaps the LH2 section could shrink down to about 90% of the tank's length and the other 10% became four small white cylinders for the LOX.)

The NFP tanks have a measurable advantage for mass and dV however they are currently at a disadvantage for sheer volume. I presume this is because stock tanks assume the entire tank mesh is usable volume, whereas Nertea calculates his tank volumes based on the actual gold pill tank inside the structural framework. The Jumbo 64 holds ~13.5% more LH2 than the HM21, which is the Near Future equivalent.

Where do we go from here?

Please keep in mind that KSP is a game first, simulator second. It does need to be balanced somewhat realistically. KSP needs to be balanced so real world concepts can carry over into the game and vice versa, as well as being balanced so something a person looks at a thinks "this looks like it should work", will actually work. It also needs to be set up for good gameplay & fun value. I will offer my suggestions based on these assertions.

Firstly, I do not want to change the fuel quantities on stock tanks configured to hold LH2/Ox.

JAxJ3Yk.png

I'd like to not invalidate this rocket based on the determinations here.

I feel the above LV is big enough that someone would think "that looks like it should work" and it does. Inversely I feel like what it takes to move a semi-reasonable payload out to Jool is far more than it needs to be.

48BRSlw.png

This is a good bit larger than what I imagine someone would look at and say "yeah that looks about right".

My normal reccomendation would be to add a fudge factor to the NFP tanks that is not shared by the stock fuel tanks, however I think in the effort of keeping a shred of realism (since this pack aims to appear more realistic than stock, even if it is not) that option is off the table. An alternative proposal would be to remove the fudge factor from stock tanks, but again, this only exaggerates the problem when using certain parts, rather than fixing it.

LH2/Ox is in a solid place right now, even if there is mass wierdness with the NFP tanks. Cryo engines gain a measurable and often significant boost in dV from using the NFP tanks than using stock tanks, as one would expect given their intent to be more efficient, yet not suitable for launch vehicles (boosting their drag coefficient slightly would be a great motivator here).

LH2 is definitely in a bit of a bind. I feel the best solution would be to adjust the fudge factor slightly. To affect maximum noticeable difference for minimum value adjustment, I would change both the stock and NFP fudge factors to make them farther apart, while reducing the amount you need to change either. I think increasing the NFP tank FF by 10% (to 1.6 from 1.5) and decreasing the stock FF by 10% (to 1.4 from 1.5) would create enough of a measurable difference in delta V while creating a relatively modest change in tank capacity all around.

There's probably a LOT I didn't touch on that I should have, but this post was getting long enough and has eaten almost two hours to extract the data, analyze, make determinations, validate my logic, and write the post. If you want to use my data to expand this or another line of thinking, please do.

EDIT:

On engine Isp & Tank Mass

To address some of the other points in the thread previous, I feel we shouldnt touch on engine performance too much. I especially think there should not be nerfing of stock performance to create a reason for this version to be used. Doing that gets into a bit of a different scope. I know Nertea had some awesome sketches for NTRs a while back when he was fed up with landing legs and IVAs. If he were to go into making a 'Near Future Atomic Rockets' then I think that comes into scope a lot more.

In regards to tank mass, I believe the dry masses of NFP tanks are sufficiently low. The larger the tank, the better the dry mass is compared to stock tanks. The Centi-3 has only a 44% better dry mass while the Mondo 60 has 60% less dry mass than the Kerbodyne S3. I believe this is a significant enough difference.

Edited by Captain Sierra
Link to comment
Share on other sites

Poking around in the IFS config, I found something that struck me as inconsistent. For the stock fuel tanks, there is a mass adjustment if you use an LH2-containing configuration:


// masses
%mixLH2mass = #$mass$
@mixLH2mass *= 0.9
%onlyLH2mass = #$mass$
@onlyLH2mass *= 0.85

Basically, a stock tank with LH2/OX has 90% the usual dry mass, and LH2-only has 85%. This seems reasonable, given that LH2 weighs a lot less than LF, and the tank therefore doesn't need as much structural reinforcement.

However, for Nertea's cryogenic tanks, there is no mass adjustment for OX-containing configurations. It simply reads:

tankMass = #$../mass$;$../mass$;$../mass$

In order to be consistent with the adjustments made for stock tanks, it seems like the cryo tanks should include the following:


// masses
%mixLH2mass = #$mass$
@mixLH2mass *= 1.06
%onlyOXmass = #$mass$
@onlyOXmass *= 1.18

Edited by Fraz86
Link to comment
Share on other sites

Tank you (get it? :sticktongue:) cap. Sierra for the data. I have this spreadsheet to calculate some data about the tanks. Let me know if you guys want help out with the numbers.

The first thing that I noticed is that the fuel switch patch for Liquid Hydrogen only tanks has a logical error in calculating the quantities for the mixed tank. Right now, it takes the total volume in liters for the tank, it finds how much liquid hydrogen it needs for the fuel mix (1:10), then it fills the rest of the tank with oxidizer. This would work fine if the liquid hydrogen and oxidizer had the same units of measure. Unfortunately, oxidizer is measured in fuel units (which are 5.5 liters).

As of right now, a LH tank converted to OX only holds 3.6 times more volume in fuel units (even after the 1.5 rescale factor is applied). A mixed LH+OX tank holds 1.4 times more volume in fuel units. In theory, the total volume available for a mixed tank should decrease as some space is taken up by the intertank.

If we want to keep the NF tanks in line with the stock fuel-switched tanks, we modify the fudge factors for OX only tanks to 3 (from the current 1.5). This will give us a wet/dry weight ratio of about 8 (down from the current 16). A fudge factor of 2 for the LH+OX tanks will give a wet/dry ratio of about 7 (currently this is about 14).

The new code for the fuel switch with the new volume fudge factors could be this:


// Pure LH2 tanks
@PART
[*]:HAS[@RESOURCE[LqdHydrogen],!MODULE[InterstellarFuelSwitch],!MODULE[ModuleEnginesFX],!MODULE[ModuleEngines],!MODULE[FSfuelSwitch]]:NEEDS[!modularFuelTanks]:NEEDS[!RealFuels] {

%LH2 = #$RESOURCE[LqdHydrogen]/maxAmount$


%mixLH2 = #$LH2$
@mixLH2 /= 2 // New volume factor
@mixLH2 /= 1.1
%mixOX = #$LH2$
@mixOX -= #$mixLH2$

%OX = #$LH2$
@OX /= 3 // Updated volume factor
@OX /= 5.5



MODULE {
name = InterstellarFuelSwitch


volumeMultiplier = 1
massMultiplier = 1

resourceGui = LH2;LH2/OX;OX
resourceNames = LqdHydrogen;LqdHydrogen,Oxidizer;Oxidizer


resourceAmounts = #$../LH2$;$../mixLH2$,$../mixOX$;$../OX$


displayCurrentTankCost = true


hasGUI = true
showInfo = true

availableInFlight = false
availableInEditor = true


basePartMass = 0
tankMass = #$../mass$;$../mass$;$../mass$
}

!RESOURCE[LqdHydrogen] {}
}

Edited by pacbard
Link to comment
Share on other sites

I did some further investigation regarding dry mass adjustments. I began with 3 premises regarding how dry mass ought to change when fuel-switching stock tanks:

1) OX-only should have the same dry mass as LF/OX for a given tank size

2) LH2-containing configurations should have a lower dry mass than non-LH2-containing configurations

3) There should not be a significant difference in total dry mass between an LH2-only tank + an OX-only tank versus an LH2/OX tank with equivalent total capacities

I used the Jumbo-64 as a reference point:

[table=width: 500]

[tr]

[td][/td]

[td]LH2[/td]

[td]OX[/td]

[/tr]

[tr]

[td]Jumbo-64: LH2/OX[/td]

[td]32000[/td]

[td]3200[/td]

[/tr]

[tr]

[td]Jumbo-64: LH2-only[/td]

[td]49280[/td]

[td]0[/td]

[/tr]

[tr]

[td]Jumbo-64: OX-only[/td]

[td]0[/td]

[td]6400[/td]

[/tr]

[/table]

Therefore, in order to have the equivalent capacity of one LH2/OX Jumbo-64 tank, you would need 50% of an OX-only Jumbo-64 and ~65% of an LH2-only Jumbo-64. The dry mass of an LF/OX Jumbo-64 is 4, and therefore (according to premise #1), 50% of an OX-only tank should have a dry mass of 2.

Currently, with the 85% modifier, the dry mass of 65% of an LH2-only Jumbo-64 would be 4 * 0.65 * 0.85 = 2.21. This is problematic, because 2.21 (LH2 tank) + 2 (OX tank) = 4.21, which is substantially greater than the current LH2/OX Jumbo-64 dry mass of 3.6 (violating premise #3).

Basically, in order to fulfill premises 2 & 3, the LH2-only mass modifier needs to be significantly lower, and the LH2/OX also needs to be modified. Here is a conservative example:

// masses
%mixLH2mass = #$mass$
@mixLH2mass *= 0.95
%onlyLH2mass = #$mass$
@onlyLH2mass *= 0.7

And this for cryogenic tanks:

// masses
%mixLH2mass = #$mass$
@mixLH2mass *= 1.36
%onlyOXmass = #$mass$
@onlyOXmass *= 1.43

EDIT:

Alternatively, as an example of a more aggressive option:

// stock tank masses
%mixLH2mass = #$mass$
@mixLH2mass *= 0.76
%onlyLH2mass = #$mass$
@onlyLH2mass *= 0.4

// cryogenic tank masses
%mixLH2mass = #$mass$
@mixLH2mass *= 1.9
%onlyOXmass = #$mass$
@onlyOXmass *= 2.5

Edited by Fraz86
Link to comment
Share on other sites

My only suggestion would be (if this is possible) to disable Interstellar Fuel Switch for the NFP tanks, keep them restricted to LH2-only.

I like this, those tanks look like one fuel tanks anyway. You can always use a stock tank of just oxidizer.

I'm not sure if everyone is aware of this but IFS allow different mass when switching between Liquid Hydrogen and Liquid Fuel. I myself use the standard that a LH tank is 1/6 the dry mass of a LF tank.

This sounds like a good solution, reduce the mass penalty of extra tankage only when using hydrogen!

Link to comment
Share on other sites

I'm not sure we should be balancing quantity vs wet/dry mass ratio. The NFP tanks purposely have a far better ratio than stock tanks. I'm not following what you're getting at.

We need to have a way to compare the different tanks that is constant (or close to constant) between the different tank setups if we want to balance them. We have volume (either in liters or fuel units - it's really the same) or fuel to tank mass ratio (wet/dry ratio). These two quantities only depend on the tank setup (I am curious if there is another way to compare the different tank setups). We could also use total delta v from a tank+engine setup. However, we will have too many variables to control (most notably, engine ISP, engine weight, and payload). I will add another sheet with the delta v calculations to the spreadsheet later today or tomorrow.

We know that stock tanks have all constant volume (based on size), mass (0.000625 times the volume), and wet/dry ratio (always 8). So this is our baseline. Right now, stock fuel switched tanks to liquid hydrogen and oxidizer hold about 1.4 times more fuel units and the liquid hydrogen only tanks hold exactly 1.4 times more fuel units. If we consider the wet/dry ratio, liquid hydrogen tanks are always 1.09. The mixed tanks' wet/dry ratios are all over the place because of how the fuel fraction is calculated (it does not keep volume or wet/dry ratio constant between tanks). For example, this patch would keep the volume constant for LH+OX setups.

If we don't want to touch the fuel volume, we can always play around with the tank weight (probably easier and faster). In this way, we can keep the current fuel quantities in the tanks but we will change the wet/dry ratios. For example, if we agree to have a wet/dry ratio of 2 for LH+OX tanks, we can adjust the tank weight accordingly.

Link to comment
Share on other sites

That makes more sense. Thanks.

Balancing vs volume is probably the best viable option here, as the NFP tanks are purposely lighter relative the stock equivalents by size. Its also important to note that, as of current, NFP tanks have, on average, around 80% the LH2 capacity of stock tanks when comparing pure LH2 capacity. This definitely needs to get reversed. My suggested balancing scheme has been to make NFP tanks lighter and possibly slightly higher capacity than stock tanks, at the cost of heat resistance, drag, and structural integrity (they're designed for orbit, not launch vehicles).

In regards to dry mass, Can the assumption be made that the different tank setups lose negligible volume to intertank space and gain negligible mass? I think these can be safe in the interest of not overcomplicating an already unnecessarily complicated problem.

On another note, we appear to be having about 3 different discussions all at the same time. We're trying to fix inconsistencies on fuel volumes (which is gonna be difficult since stock tanks aren't entirely consistent with themselves), and we're attempting to balance the fuels in two different directions because of a specific interaction that not everyone uses (you need the HydrogenNTRs patch, Cryo Engines, and NFP for this to even be applicable).

I feel like we're making a bigger deal out of this than we probably needed to, but since the can of worms is already open, lets continue.

Link to comment
Share on other sites

You might want to consider how other mods implement this. For Interstellar Fuel Tanks, I'm currently using a 4:1 for LqdHydrogen /LqdOxygen, which uses the same ratio for NTR Hydrolox mode. This is a very convenient mix, which is easy to implement and never leaves any remaining fuel in the tanks.

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...