Who can help me?

  • yangbowen1
    15th May 2012 Member 0 Permalink
    SOLVED!!!

    I changed some code and a bug is found which disables the heat-caused-transition.

    1. I adjusted the MAX_TEMP to 20000K.
    2. I added a quick menu item named Boyle mode, which makes all gases act like BOYL.
    3. I made some changes to OXYG, LOXY and bcol.
  • Fast-Driver
    15th May 2012 Member 0 Permalink
    Hm... it would be a bug of your code because you changed the code, but the properties of Boyle might have caused that.
  • jacksonmj
    15th May 2012 Developer 0 Permalink
    Please upload a complete copy of your source code. Which transition isn't working (or are all of them not working)?
  • yangbowen1
    16th May 2012 Member 0 Permalink
    Not all transitions are not working. Actually pressure-caused-transition is working. However heat-caused-transition is not working at all. I heat ICE to about 6000 degrees and it's still ice. I heat OIL to about 6000 degrees and it's not burning. But when i pressurize DESL to 10 it ignites.

    Code: http://www.mediafire.com/file/477mjspi6ofamhf/CodeWithProblem.zip
  • jacksonmj
    16th May 2012 Developer 1 Permalink
    The if statement on line 1969 in powder.c is missing a closing curly bracket '}'
    if ((ptypes[t].state==ST_GAS) && boylm_enable) {
    pv[y/CELL][x/CELL] = 0.9f*pv[y/CELL][x/CELL]+0.001f*parts[i].temp-0.29515f; // pv[y/CELL][x/CELL] += 0.1f*((parts[i].temp-295.15f)*0.01f-pv[y/CELL][x/CELL])

    This means that all the temperature transitions are inside that if statement, so temperature transitions only work when Boyle mode is enabled and the particle is a gas. There is an extra '}' that needs removing on line 2722.
  • yangbowen1
    16th May 2012 Member 0 Permalink
    @jacksonmj (View Post)
    Thank you very much.
    When I see the compiling error, I add the } on line 2722 by mistake.