FSIC Messageboard
  Tech Talk
  Modeling Fuel tanks

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Modeling Fuel tanks
Bryan Russell
Pilot
posted 04-20- 04:10 AM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Zur touched on this in the weighing down the planes thread. I was interested in how to model the fuel tanks properly, It obviously has a big effect on CG and therefore FM.

Zur mentioned something about faking it with Inertia volumes. However in the Hurricane I am using seperate models for the fuel tanks (the plan being that they get hit seperatly, and also allows the fuel to be positioned). Do these fuel tank models need an inertai volume to have weight or does it fall out of the fuel load.

Second question: The Hurri has the main tank split between two wing tanks and the fuel is drawn from each in an equal manner. How is this represented in the SM file? especially in the engine which is using the fuel.

IP: Logged

jedi
Pilot
posted 04-20- 08:09 AM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
OK, this may not be 100%, but...

You specify a "primary" fuel source for your engine. Usually it's the fuselage, but it could be the wings (not sure exactly how the syntax works for specifying both wings as the primary fuel source--you may have to just list them in the order you want them used). In the object that has the fuel, you specify whether its a "main" tank or "aux" tank. You can even put both an aux and a main in the same object. So, you might have each wing contain a "main" obFuel property and the fuselage might have an "aux" obFuel property. In this case the weight of the fuel capacity is distributed evenly over your wings and/or fuselage--not good.

As I learned while setting up the Corsair last night, the engine will not recognize a separate fuel tank object if you still have obFuel properties attached to your fuselage or wings. The engine will look for any obFuel properties in the fuselage or wings EVEN if you've told it that it has a "dedicated" fuel tank object.

To add a fuel tank, you make the object (I just copied and pasted Laika's I-16 tank), position it in the model and assign it a capacity and a type (main or aux). You can make it self-sealing, and there may be some other properties you can give it. Then you give it a density and a C of G. Now, if I understand it correctly, the weight of the fuel will be evenly distributed throughout your tank object, which is obviously much smaller than the fuselage, and located in a specific point in relation to the aircraft's overall C of G. (This is where the FM benefit comes in, because you've "moved" about 1000 pounds or so to its "correct" location on the airframe) Then just assign the engineFuelSource property to feed off of your tank object(s) and you should be all set.

Make sure the only objects with obFuel properties are the tanks tho, by deleting the obFuel properties from the wing or fuselage objects, or you'll be running out of fuel with full "tanks."

The "inertia volume" of the tank I'm pretty sure just applies to the weight of the tank itself; i.e. it takes the phyRelDensity value and the size of the object and figures out what percentage of the aircraft weight that represents. But I'm not too sure of that one--take a look at the phyRelDensity of the tank object on the Jug and 1-16 to be sure. If it's a low number like 0.2, it's just "weighing" the tank walls. If it's 0.9 or 1.0 I guess that would mean the fuel is included there.

------------------
--jedi--

IP: Logged

Raider
Pilot
posted 04-20- 09:41 AM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
jedi, I believe you are right on with this. In my experience with the phrRelDensity it is that percentage of the planes weight given in the main (Fuselage) object.

So if the phyLBS is 6532 and a part has a phyRelDensity of .1 the weight of that object is 65.32 lbs

In order to balance the DVII, I set up a spreadsheet to check all the weights and phyRelDensity. What I found was that If the total of all the weights is about or above the phyLBS it would make the plane shake at low speed. The lower (the combined weights) were from the (given total weight)the faster the plane could go before it would shake. Also if I increased the phyRelDensity of the wings to a higher number it would raise the speed it could fly before it would shake.

------------------
Raider 33rd~GS
Raiders Site

IP: Logged

Zurawski
Pilot
posted 04-20- 11:11 AM     Click Here to See the Profile for Zurawski   Click Here to Email Zurawski     Edit/Delete Message   Reply w/Quote
... Bryan, Jedi,

Yup you both got it right. The density just opproximates the physical tank weight ... the actual "fuels" weight will populate it when full ...

... Bryan,

You can split the tanks in the wing-roots and assign them both "main" and fuel draw will average between them.

IP: Logged

Tailslide
Pilot
posted 04-20- 12:05 PM     Click Here to See the Profile for Tailslide   Click Here to Email Tailslide     Edit/Delete Message   Reply w/Quote

Bryan, Zur was not talking about "Faking it". We actually make seperate fuel tank objects that fuel is drawn from and assign their inertia box to be the same size as the real fuel tank. The Yak, new 190A4, and p47 all have this.

I experimented with making the fuel tanks and pilots take damage by making low level collision LODs but couldn't get it to work right. I think it has something to do with what Laika discovered re: poly flags and collisions. Is there any way to have the .obj importer automatically set these flags?

TS

IP: Logged

Laika 801
Pilot
posted 04-20- 01:01 PM     Click Here to See the Profile for Laika 801   Click Here to Email Laika 801     Edit/Delete Message   Reply w/Quote
Hey Tail ! Still problems with the polyflags ? Tell me if you need help with this. After the "finding" that the flag (specially the main axis dircetion) is essential for hit detection it was pretty easy to give them the right values.

IP: Logged

bjorn
Pilot
posted 04-20- 01:32 PM     Click Here to See the Profile for bjorn     Edit/Delete Message   Reply w/Quote
Hmmm... I've missed this discussion about polys and flags and damage. What's up? I have a LOD that for whatever reason can only be shot at from one side, all other sides are seemingly completely transparent to flying bullets. Is this the behaviour you're talking about?
_
/Bjorn.

IP: Logged

Tailslide
Pilot
posted 04-20- 02:23 PM     Click Here to See the Profile for Tailslide   Click Here to Email Tailslide     Edit/Delete Message   Reply w/Quote

Laika, we need a way to set these flags automatically.. the idea of going in and editing each poly by hand in the .obj files gives me the willies

TS

IP: Logged

Tailslide
Pilot
posted 04-20- 02:24 PM     Click Here to See the Profile for Tailslide   Click Here to Email Tailslide     Edit/Delete Message   Reply w/Quote
That's exactly what we're talking about Bjorn. If you search back Laika made an excellent post about the causes of this.

TS

[This message has been edited by Tailslide (edited 04-20-2000).]

IP: Logged

jedi
Pilot
posted 04-20- 04:59 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Hehe so by randomly picking Laika's fuel tank to copy (because it was round and the Corsair is round), without having even a clue about this damage/normals thingie, I got the one most likely to actually catch fire from being hit?

Either a very astute choice or a very foolish one, depending on one's point of view...

BTW what's the best way to test this stuff? Park a B17 next to the plane and wail on it from one of the turrets?

------------------
--jedi--

IP: Logged

Tailslide
Pilot
posted 04-20- 05:45 PM     Click Here to See the Profile for Tailslide   Click Here to Email Tailslide     Edit/Delete Message   Reply w/Quote

Go into slew mode and wail away. After I played with it a bit I figured it's not really necessary to have actual collision detection for a fuel tank since even if it's destroyed you don't lose the fuel from it (try shooting off a wing tank and look at your fuel guage).

A better way to model this may be to use obprob to remove the tank from the list of fuel sources for the engine when the part is hit? Is that possible?

TS

IP: Logged

lfbpro
Pilot
posted 04-20- 05:48 PM     Click Here to See the Profile for lfbpro   Click Here to Email lfbpro     Edit/Delete Message   Reply w/Quote
just one though about the external tank!
one think that could be cool is the effects on the DM!
imagine one hit on a tank=BOOOOOMMM!

------------------
-=BAB=-lfbpro

IP: Logged

jedi
Pilot
posted 04-20- 07:07 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Laika has the I-16 set up so that when the tank is "holed," the engine fuel consumption goes up to a huge number, and you run out of fuel quickly (clever guy)

He's also got a damage obFunc in there that changes the engine fuel source to "none." Haven't played around with it enough to see how that works, but I CAN verify that the plane catches on fire quite well

I would think you could also give yourself a very small "aux" tank somewhere, and have the main tank obDetach after some damage. Since it's invisible, you wouldn't see it fall off, and presumably the engine would seek out the aux tank...and run out of gas a minute or two later. Think that would work?

------------------
--jedi--

IP: Logged

Bryan Russell
Pilot
posted 04-20- 08:41 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Thanks everybody. Just to clarify... I have three fuel tanks called PortWingFuel, StarWingFuel and FusAuxFuel. The only properties in PortWingFuel and StarWingFuel are:
(obFuel((CapacityGal 34.5 Type 'Main)))

and the only properties in FusAuxFuel are

(obFuel((CapacityGal 28 Type 'Aux)))

All the fuel tank objects are children of the main model.

The Engine has three properties of :

(engFuelSource 'PortWingFuel) (engFuelSource 'StarWingFuel) (engFuelSource 'FusResFuel)


As well as the others of course. So is this the right setup to draw fuel evenly from the wing tanks?

IP: Logged

Laika 801
Pilot
posted 04-21- 01:45 AM     Click Here to See the Profile for Laika 801   Click Here to Email Laika 801     Edit/Delete Message   Reply w/Quote
"He's also got a damage obFunc in there that changes the engine fuel source to "none." "

That was Jaguars (when I remember right) tip.

Hey jedi - nice to see that you like it I did DM testing with a parked B17 and 6-10 I16 around. Much fun

I never got a clue what I was doing, much trial and error..

Bryan -

if i.e. the StarWingFuel-Tank is gone (dmg to max) why not call a function wich sets your engine-fuel objects like this:

(engFuelSource 'PortWingFuel) (engFuelSource 'StarWingFuel_empty) (engFuelSource 'FusResFuel)

'StarWingFuel_empty ist just a name (could also be "none" or "anything" else), no really existing model. Now the 'StarWingFuel is no longer used by your engine and you can detach it for the correct cg of the Plane.


IP: Logged

jedi
Pilot
posted 04-21- 09:55 AM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Bryan--

If you want to test it, set the fuel capacity in two of the tanks to 0.1 and leave the third tank at normal capacity. If the engine quits after a couple minutes, your tank isn't being recognized. If the engine runs normally, the tank with the fuel is "good." Switch it around so that each tank has fuel with the other two almost empty to make sure all the tanks feed.

Laika--

I installed your engine/fuel tank damage into the Corsair last night and set myself on fire a few times. Pretty cool! The one in the Jug is neat too, but I didn't understand exactly how that one was working, so I haven't experimented with it yet.

------------------
--jedi--

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c