Possible thermodynamics in fluids?

  • Ben_Ger
    5th Feb 2016 Member 0 Permalink

    I was thinking about how updates for the game have stagnated (or I didnt notice them) and thought:
    "We already have something for water equalisation, why not make something for better convection effects as well?"

    I know we already have some thermodynamics, as in hot air flows upwards but as I discussed (even though I dont think I really showed what I meant with my bad english) with catellite (I am sorry if I spelled it wrong >.<) we dont have a flow downwards for when an object cools down air around it, relative to its surroundings.

    We also dont have thermodynamics whatsoever for liquids so I thought of a simple script (which, I am sure of, people will tell me that its not simple at all to implement) which would make liquids more dynamic:

    If

    (Liquidparticle A)

    is hotter than

    (Liquidparticle B, above particle A)

    then switch Positions with (Liquidparticle A)

     

    This could also be refined to maybe say if the difference in temperature is higher than a certain value, it should jump 2 pixels instead of 1 or even more if its even hotter.


    Problems that I can see with it are that there is no value for density as far as I know that could be modified directly, so this would send merculy upwards through water, so we would need a new density value for liquids (or for that matter any particle)

     

    Its just an idea and probably a rather stupid one but tell me if it would be a cool feature.

  • Emperor_Bowserinator
    5th Feb 2016 Member 0 Permalink

    @Ben_Ger (View Post) Elements already have a weight value, so for example water will always float on salt water. This idea's intresting, I'll try to make a mod tommorow.

     

  • Ben_Ger
    5th Feb 2016 Member 0 Permalink

    @Emperor_Bowserinator (View Post)

     Can you modify that value?

  • Emperor_Bowserinator
    5th Feb 2016 Member 0 Permalink

    @Ben_Ger (View Post) Yes, but it's per element type, not per particle. Still adding a check for elements of the same type then swapping based on temp shouldn't be that hard. 

     

     

  • Catelite
    6th Feb 2016 Former Staff 3 Permalink
    imageimage

    Liquids already have a form of heat convection, in-game, as shown above.

    Liquid is on Left, Solid is on Right.

    imageimage

    In Heat Variation display.
    Edited once by Catelite. Last: 6th Feb 2016
  • Ben_Ger
    6th Feb 2016 Member 1 Permalink

    @Catelite (View Post)

     I didnt know that but it doesnt exclude my idea.

    The temperature at the bottom is still hotter than at the top while it should be the other way around, so nothing speaks against it (I think) to include what I thought of as well

  • Catelite
    8th Feb 2016 Former Staff 1 Permalink
    What you're suggesting would imply that liquids would be distinguishable somewhat more than they are right now.

    As is, heat convection in liquids is a function of heat, moving from particle to particle.

    What you're -suggesting- is moving the particles themselves, which is... not really any different in a huge bowl of absolutely identical particles, and would visually have the same effect in-game.

    Just like in real life, the surface of the liquid balances out in temperature dozens of times faster than an equivalent block of charcoal, simply because the heat does in effect move around within the medium. I'm not sure we should attempt to make it any more realistic?

    *it's been tossed around before, having liquid density attribute be a function of temperature, so it's possible but no one's implemented that much. It'd only work for separate types of liquid being in the same container, though.
    Edited once by Catelite. Last: 8th Feb 2016
  • Ben_Ger
    9th Feb 2016 Member 0 Permalink

    @Catelite (View Post)

     I see. Thanks for taking it into consideration at least