diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-06-12 23:42:30 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-06-12 23:56:22 (GMT) |
| commit | 6c3034acffc79f810d20cd04d14134c7ac2ada0e (patch) | |
| tree | 6ca1437725e96c365f5c67dd0c337045731189ac /src/elementdata.c | |
| parent | 35d125cf532fdd329cee6f87d0fa26a59d804567 (diff) | |
| download | powder-6c3034acffc79f810d20cd04d14134c7ac2ada0e.zip powder-6c3034acffc79f810d20cd04d14134c7ac2ada0e.tar.gz | |
Make ambient heat convection work a bit better
Previously, it was comparing the temperature of the current cell to the
average of the cells around it (plus some advection affecting the
average, but that makes no difference if the air starts out stationary),
and basing the velocity change on this temperature difference.
If the cell below is hotter and the cell above is cooler, the air should
rise. But in this case, the average of surrounding cells tends to be
near the temperature of the current cell, so not much happens.
Just using the temperature difference between the current cell and the
cell above makes convection work a lot better.
Diffstat (limited to 'src/elementdata.c')
0 files changed, 0 insertions, 0 deletions
