diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 14:11:51 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 14:11:51 (GMT) |
| commit | add4ccb0343901dad732ee084359134e20a29810 (patch) | |
| tree | 1604dedc2bd1ded9ba0d5bcb76f3058b5097b15f /src/simulation/Simulation.cpp | |
| parent | d03a9c8fe552a46bcc1eec8f0e717d135f66d809 (diff) | |
| download | powder-add4ccb0343901dad732ee084359134e20a29810.zip powder-add4ccb0343901dad732ee084359134e20a29810.tar.gz | |
TPT: Volume from heat change (for REALISTIC) 290cac8b7e
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 0c8797e..d466dc4 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2622,6 +2622,10 @@ void Simulation::update_particles_i(int start, int inc) c_heat = restrict_flt(c_heat, -MAX_TEMP+MIN_TEMP, MAX_TEMP-MIN_TEMP); parts[i].temp += c_heat; hv[y/CELL][x/CELL] -= c_heat; +#ifdef REALISTIC + //Volume increase from heat (temporary) + pv[y/CELL][x/CELL] -= c_heat*0.004; +#endif } c_heat = 0.0f; for (j=0; j<8; j++) |
