Eulerian Smoke Simulation on the GPU
kernels/ApplyBuoyancy.cl File Reference

A buoyancy application kernel. More...

Functions

__kernel void applyBuoyancy (__global float4 *o_velocityW, __read_only image3d_t _velocityR, __read_only image3d_t _temperatureR, __read_only image3d_t _densityR, float _timeStep, float _ambientTemperature, float _buoyancyLift, float _gasWeight, float4 _buoyancyDirection)
 A buoyancy application kernel.

Detailed Description

A buoyancy application kernel.


Function Documentation

__kernel void applyBuoyancy ( __global float4 *  o_velocityW,
__read_only image3d_t  _velocityR,
__read_only image3d_t  _temperatureR,
__read_only image3d_t  _densityR,
float  _timeStep,
float  _ambientTemperature,
float  _buoyancyLift,
float  _gasWeight,
float4  _buoyancyDirection 
)

A buoyancy application kernel.

Parameters:
[in,out]o_velocityWthe velocity field [write buffer]
[in]_velocityRthe velocity field [read image]
[in]_temperatureRthe temperature field [read image]
[in]_densityRthe density field [read image]
[in]_timeStepthe simulation's time-step
[in]_ambientTemperaturethe ambient temperature
[in]_buoyancyLiftthe buoyancy lift factor
[in]_gasWeightthe gas weight
[in]_buoyancyDirectionthe buoyant force direction
 All Classes Files Functions Variables