Enthalpy?

  • Videogamer555
    23rd May 2012 Member 1 Permalink
    I noticed in the ElementsData.c file there is now an Enthalpy section. What does it do? Also I noticed it is missing an element from the Enthalpy table. Not sure, but I'm guessing this will make some bugs down the road. The last three entries of this table are /* FIGH */ 0, /* FRAY */ 0, /* REPL */ 0, but the table declaration at the beginning of the table says unsigned int platent[PT_NUM] = which means it should have the EXACT same number of entries as there are elements in TPT. Devs please fix this, as I'm guessing this is going to make some problems later on as new elements are added.
  • vanquish349
    23rd May 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    do you really thing that the devs are stupid?
  • tian110796
    23rd May 2012 Member 0 Permalink

    I think that those missing entries automatically gets a value of zero as the array is defined with a length (which means that the program sets a value for PT_NUM integers). So, it will not create an error as all elements get a value.

  • boxmein
    23rd May 2012 Former Staff 0 Permalink
    Empty array values are null. Arrays are of pre-defined size.
  • Videogamer555
    23rd May 2012 Member 0 Permalink
    I mean if something isn't in there as a placeholder to hold the place of TTAN if new elems are added, then the one that is meant for the next elem will end up being the enthalpy of TTAN instead. Also, just what IS this new array for? Can ANYBODY tell me what feature it works with in TPT? Please explain.
  • vanquish349
    23rd May 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    exactly if the devs need to use the array for more data they will fill in the rest.
  • tian110796
    23rd May 2012 Member 0 Permalink

    @boxmein (View Post)

     and null is defined to be zero.

    @Videogamer555 (View Post)

     It can be set one by one using platent[PT_TRANSTITANIUMELEMENT] = something;. Also, they will fill that up when the necessity arises (They know what they are doing). (Same as above)

     

    It seems that enthalpy is used for the realistic heat simulation for temperature changes during phase transitions (Not sure, though).

  • el-midgeto
    23rd May 2012 Member 0 Permalink

    Not sure of the context in TPT but enthalpy is the energy of something if I remember correctly (AS Chemistry).

  • jacksonmj
    23rd May 2012 Developer 0 Permalink
    TTAN wasn't added at the end, it replaced one of the free element slots. Compare the elements in platent to the elements in ptypes.

    It will be used to make elements absorb/release heat when they change state (it's one of savask's realistic mode things, and they aren't enabled yet).
  • boxmein
    23rd May 2012 Former Staff 0 Permalink
    jacksonmj's explanation, analogy:
    in TPT, if you boil a pot of water and it reaches 100° C, it all vaporizes in an instant.
    IRL, if you boil a pot of water and it reaches 100° C, some of it will vaporize. Some of it will lose its heat due to the rest vaporizing and therefore stay liquid.