2012-05-05 20:06:34 -05:00
|
|
|
/**
|
|
|
|
* Powder Toy - air simulation (header)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2010-09-27 05:53:05 -05:00
|
|
|
#ifndef AIR_H
|
|
|
|
#define AIR_H
|
|
|
|
#include "defines.h"
|
|
|
|
|
|
|
|
extern float vx[YRES/CELL][XRES/CELL], ovx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float vy[YRES/CELL][XRES/CELL], ovy[YRES/CELL][XRES/CELL];
|
|
|
|
extern float pv[YRES/CELL][XRES/CELL], opv[YRES/CELL][XRES/CELL];
|
|
|
|
|
2011-06-18 06:19:47 -05:00
|
|
|
extern float cb_vx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_vy[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_pv[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_hv[YRES/CELL][XRES/CELL];
|
2010-09-27 05:53:05 -05:00
|
|
|
|
|
|
|
extern float fvx[YRES/CELL][XRES/CELL], fvy[YRES/CELL][XRES/CELL];
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
extern float hv[YRES/CELL][XRES/CELL], ohv[YRES/CELL][XRES/CELL]; // Ambient Heat
|
|
|
|
|
2010-09-27 05:53:05 -05:00
|
|
|
extern float kernel[9];
|
|
|
|
|
|
|
|
void make_kernel(void);
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
void update_airh(void);
|
|
|
|
|
2010-09-27 05:53:05 -05:00
|
|
|
void update_air(void);
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
#endif
|