Welcome, Guest

Author Topic: Explosions producing strange outcomes  (Read 11326 times)

Laura

  • *****
  • Posts: 123
Explosions producing strange outcomes
« on: May 22, 2010, 09:29:34 PM »
I noticed that exploding a normal density object results in objects of a high density. Example: Exploding the moon in the Earth/Moon example simulation into 500 fragments results in some fragments with a density as high as almost 50g/cm^3 (suggesting elements that do not occur naturally in planets or moons). Every single fragment ends up with a higher density than the original object, though most are only 4 times as dense (at the level of Americium).
How does the simulation arrive at these figures?

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #1 on: May 23, 2010, 12:26:56 PM »
Each piece should be 500 times the original object.
I think.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Explosions producing strange outcomes
« Reply #2 on: May 23, 2010, 12:54:07 PM »
No, cause when it collides, then you would have 500x the normal mass. It should have 1/500 of the orignal mass. I don't think the mass is the problem, I think the size is too small for the object, thus making a VERY high density.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #3 on: May 23, 2010, 12:55:50 PM »
No, cause when it collides, then you would have 500x the normal mass. It should have 1/500 of the orignal mass. I don't think the mass is the problem, I think the size is too small for the object, thus making a VERY high density.
Cause ain't a zword, NeutronStar.
Haha.
NeutronStar est le maƮtre de l'Univers Sandbox.
« Last Edit: May 23, 2010, 02:51:37 PM by deoxy99 »

Laura

  • *****
  • Posts: 123
Re: Explosions producing strange outcomes
« Reply #4 on: May 23, 2010, 02:11:52 PM »
No, cause when it collides, then you would have 500x the normal mass. It should have 1/500 of the orignal mass. I don't think the mass is the problem, I think the size is too small for the object, thus making a VERY high density.

The sizes seem more plausible than the densities, actually. In fact, if the decimal point of the density of explosion fragments was moved one step to the left, things would look pretty plausible.
I.e. The original moon has a density of about 3.4g/cm^3. Fragments come out between 13g/cm^3 and 46g/cm^3.
Moving the decimal point would mean 1.3g and 4.6g respectively, putting them in the ballpark of Magnesium and Titanium. I realize that no fragment would be a pure element, of course, but it does seem to look better. Even a pure core fragment should be no more than 7.87g/cm^3 (Iron).

Anyway, I can only speculate. I'd love a word from Dan on this :)

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Explosions producing strange outcomes
« Reply #5 on: May 23, 2010, 10:09:24 PM »
Exploding a sphere divides it into 13 smaller spheres that all fit within the original sphere. The original mass is divided among the resulting spheres and the high density results because the mass is the same, but the total volume is less.

You're right that this is unrealistic. Feel free to share your thoughts on how this could be improved. I look forward to improving the explosion code in the next few months.

Thanks for pointing out this problem.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #6 on: May 23, 2010, 10:17:37 PM »
Exploding a sphere divides it into 13 smaller spheres that all fit within the original sphere. The original mass is divided among the resulting spheres and the high density results because the mass is the same, but the total volume is less.

You're right that this is unrealistic. Feel free to share your thoughts on how this could be improved. I look forward to improving the explosion code in the next few months.

Thanks for pointing out this problem.
I don't know how that's unrealistic.

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Explosions producing strange outcomes
« Reply #7 on: May 24, 2010, 04:23:11 AM »
Exploding a sphere divides it into 13 smaller spheres that all fit within the original sphere. The original mass is divided among the resulting spheres and the high density results because the mass is the same, but the total volume is less.

You're right that this is unrealistic. Feel free to share your thoughts on how this could be improved. I look forward to improving the explosion code in the next few months.

Thanks for pointing out this problem.
Maybe if they didn't have to fit within the original sphere, but instead had to have the same total volume as the volume of the object that was being exploded?

Laura

  • *****
  • Posts: 123
Re: Explosions producing strange outcomes
« Reply #8 on: May 24, 2010, 05:16:16 AM »
Exploding a sphere divides it into 13 smaller spheres that all fit within the original sphere. The original mass is divided among the resulting spheres and the high density results because the mass is the same, but the total volume is less.

You're right that this is unrealistic. Feel free to share your thoughts on how this could be improved. I look forward to improving the explosion code in the next few months.

Thanks for pointing out this problem.

That explains it :)
Especially when specifying 500 fragments.
Perhaps collision code could be modified in such a way that, following an explosion, objects are allowed to overlap until they no longer do so, at which time the standard collision code would re-enable. This would allow fragments of proper volume and density to temporarily coexist inside the volume of the original object until the force of the explosion drives them sufficiently apart.

Laura

  • *****
  • Posts: 123
Re: Explosions producing strange outcomes
« Reply #9 on: May 24, 2010, 05:27:56 AM »
I don't know how that's unrealistic.

It's unrealistic because it isn't what would happen in reality  :P
Matter with a density of 46g/cm^3 should not exist anywhere, except under the influence of extreme gravitation/pressure/temperature, such as in the cores of large gas giants, in white dwarf stars, in neutron stars, etc.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #10 on: May 24, 2010, 11:38:43 AM »
I don't know how that's unrealistic.

It's unrealistic because it isn't what would happen in reality  :P
Matter with a density of 46g/cm^3 should not exist anywhere, except under the influence of extreme gravitation/pressure/temperature, such as in the cores of large gas giants, in white dwarf stars, in neutron stars, etc.
46g/cm3 doesn't sound that dense.

Sanduleak

  • *****
  • Posts: 97
  • sanduleak.org
    • The Cinderdar Observatory
Re: Explosions producing strange outcomes
« Reply #11 on: May 24, 2010, 11:53:07 AM »
I don't know how that's unrealistic.

It's unrealistic because it isn't what would happen in reality  :P
Matter with a density of 46g/cm^3 should not exist anywhere, except under the influence of extreme gravitation/pressure/temperature, such as in the cores of large gas giants, in white dwarf stars, in neutron stars, etc.
46g/cm3 doesn't sound that dense.

That's 46000kg/m3, nearly 4 times the density of the center of earth. (Also 4 times the density of lead)

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #12 on: May 24, 2010, 11:57:08 AM »
I don't know how that's unrealistic.

It's unrealistic because it isn't what would happen in reality  :P
Matter with a density of 46g/cm^3 should not exist anywhere, except under the influence of extreme gravitation/pressure/temperature, such as in the cores of large gas giants, in white dwarf stars, in neutron stars, etc.
46g/cm3 doesn't sound that dense.

That's 46000kg/m3, nearly 4 times the density of the center of earth. (Also 4 times the density of lead)
Well, I didn't know that.

Laura

  • *****
  • Posts: 123
Re: Explosions producing strange outcomes
« Reply #13 on: May 24, 2010, 12:16:15 PM »
I don't know how that's unrealistic.

It's unrealistic because it isn't what would happen in reality  :P
Matter with a density of 46g/cm^3 should not exist anywhere, except under the influence of extreme gravitation/pressure/temperature, such as in the cores of large gas giants, in white dwarf stars, in neutron stars, etc.
46g/cm3 doesn't sound that dense.

That's 46000kg/m3, nearly 4 times the density of the center of earth. (Also 4 times the density of lead)
Well, I didn't know that.
Have a look at this list of elements sorted by density:
http://en.wikipedia.org/wiki/List_of_elements_by_density
46g/cm3 is above the range of naturally occurring elements.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Explosions producing strange outcomes
« Reply #14 on: May 24, 2010, 12:17:08 PM »
Oh. It's above Osmium. Yikes.
« Last Edit: May 24, 2010, 12:49:47 PM by deoxy99 »

Laura

  • *****
  • Posts: 123
Re: Explosions producing strange outcomes
« Reply #15 on: May 24, 2010, 09:57:10 PM »
Oh. It's above Osmium. Yikes.
Indeed  :D

Maccara

  • **
  • Posts: 17
Re: Explosions producing strange outcomes
« Reply #16 on: August 14, 2010, 09:31:21 AM »
Glad I found this topic. Was going to make a bug report...

Exploding a sphere divides it into 13 smaller spheres that all fit within the original sphere. The original mass is divided among the resulting spheres and the high density results because the mass is the same, but the total volume is less.

You're right that this is unrealistic. Feel free to share your thoughts on how this could be improved. I look forward to improving the explosion code in the next few months.

Thanks for pointing out this problem.

Why are you doing it like this? is there a technical limitation in US why you can't use a better approximation (there are several)?

Some simple methods that come to mind, which at least would be better approximations than the current:

First expand the original body radius and only after that divide to spheres. That's actually how it would "approximately" happen in reality (considering something blowing up due to internal pressure, for example). The math for this is simple (since you already have the part down of dividing to spheres contained in equal volume, you can even use that for derivation of the required fraction) and this would be infinitely better approximation of reality.

Or first transform the body to a cube with equal mass and density and then divide that to cubes of required number. Dunno how your engine would cope with cubes, but since there are dice in the catalog, I suspect this would be simple too. :)

I guess using conic sections would be pushing it. ;)


Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Explosions producing strange outcomes
« Reply #17 on: August 18, 2010, 05:01:13 PM »
Why are you doing it like this? is there a technical limitation in US why you can't use a better approximation (there are several)?

I haven't prioritized improving this feature is the reason. I got it working 'well enough' and moved on to other features. I will be improving explosions in a future 2.x release.

That's a good idea to expand the original body and then divide into spheres. Thanks for that.

Maccara

  • **
  • Posts: 17
Re: Explosions producing strange outcomes
« Reply #18 on: August 21, 2010, 07:53:19 AM »
I haven't prioritized improving this feature is the reason. I got it working 'well enough' and moved on to other features. I will be improving explosions in a future 2.x release.

Just realized my original question came out a little accusatory. Sorry about that (was a bit tired when I wrote that). Thanks for confirming "it's on the table".

Quote
That's a good idea to expand the original body and then divide into spheres. Thanks for that.

Yeah, I thought about how I would program it myself and that seemed like a trivial solution to the issue, without creating too much additional issues (sphere packing algorithm is the "hard part", and you have that implemented sufficiently already). Glad it gave you some ideas!

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Explosions producing strange outcomes
« Reply #19 on: August 22, 2010, 05:21:38 PM »
I haven't prioritized improving this feature is the reason. I got it working 'well enough' and moved on to other features. I will be improving explosions in a future 2.x release.

Just realized my original question came out a little accusatory. Sorry about that (was a bit tired when I wrote that). Thanks for confirming "it's on the table".

Quote
That's a good idea to expand the original body and then divide into spheres. Thanks for that.

Yeah, I thought about how I would program it myself and that seemed like a trivial solution to the issue, without creating too much additional issues (sphere packing algorithm is the "hard part", and you have that implemented sufficiently already). Glad it gave you some ideas!


Well, I think the best solution to the problem would be to convert the planet/moon/star or whatever you happen to be exploding into a cube with the same radius as the sphere. A sphere might have 2000 polygons or more, and a cube only has six. Plus, changing the object into a cube would nearly double the volume and result in a much lower density than we're getting now.