A B C D F G I J K L M N O P R S T U V

A

acc(Tuple2d, double, Tuple2d) - Static method in class cs567.smoke.Utils
sum += scale*v
alpha - Static variable in class cs567.smoke.Blur
TWEAKABLE iterative-blur parameter: Self-weighting parameter affecting the rate of local averaging (1=no blurring; 0.9=moderate blurring).
apply_glOrtho(GL) - Method in class cs567.smoke.OrthoMap
 

B

Blur - Class in cs567.smoke
Blur operator.
Blur() - Constructor for class cs567.smoke.Blur
 
blur(float[], float[]) - Static method in class cs567.smoke.Blur
Blurs f into fBlur.
BUOYANCY - Static variable in class cs567.smoke.Constants
Smoke buoyancy (dimensionless) (default: 1)
buoyancy(float[], float) - Method in class cs567.smoke.FluidSolver
Calculate the buoyancy force as part of the velocity solver.
button - Variable in class cs567.smoke.Smoke.MyMouseHandler
 

C

Constants - Class in cs567.smoke
Compile-time constants/parameters affecting the simulation.
Constants() - Constructor for class cs567.smoke.Constants
 
control - Variable in class cs567.smoke.FluidSolver
Smoke control force object.
control - Variable in class cs567.smoke.Smoke
 
cs567.smoke - package cs567.smoke
 
curl - Variable in class cs567.smoke.FluidSolver
Curl grid
curl(int, int) - Method in class cs567.smoke.FluidSolver
Calculate the curl at position (i, j) in the fluid grid.

D

d - Variable in class cs567.smoke.FluidSolver
Density grids
densitySolver() - Method in class cs567.smoke.FluidSolver
The basic density solving routine.
dim - Static variable in class cs567.smoke.Smoke
Frame dimensions.
dispatchKey(char, KeyEvent) - Method in class cs567.smoke.Smoke
Handles keyboard events, e.g., spacebar toggles simulation/pausing, and escape resets the current Task.
display(GLAutoDrawable) - Method in class cs567.smoke.Smoke
Main event loop: OpenGL display + simulation advance.
displayChanged(GLAutoDrawable, boolean, boolean) - Method in class cs567.smoke.Smoke
GLEventListener implementation
dOld - Variable in class cs567.smoke.FluidSolver
Density grids
drawWireframe - Variable in class cs567.smoke.Smoke
Draws wireframe if true, and pixel blocks if false.
dt - Static variable in class cs567.smoke.Constants
Time-step size.
dt - Variable in class cs567.smoke.FluidSolver
Timestep size (same as Constants.dt)
dt - Variable in class cs567.smoke.Smoke
Size of time step (in seconds).

F

fdx - Variable in class cs567.smoke.SmokeKeyframe
Constant part of driving-force field: (fdx,fdy) = (GRAD rhoGoalBlur)/rhoGoalBlur.
fdy - Variable in class cs567.smoke.SmokeKeyframe
Constant part of driving-force field: (fdx,fdy) = (GRAD rhoGoalBlur)/rhoGoalBlur.
FluidSolver - Class in cs567.smoke
Jos Stam style fluid solver with vorticity confinement and buoyancy force.
FluidSolver() - Constructor for class cs567.smoke.FluidSolver
Set the grid size and timestep, and builds simulation arrays.
frame - Variable in class cs567.smoke.Smoke
Main window frame.
frameExporter - Variable in class cs567.smoke.Smoke
Reference to current FrameExporter, or null if no frames being dumped.
fs - Variable in class cs567.smoke.Smoke
 

G

getDensity() - Method in class cs567.smoke.FluidSolver
Fragile reference to the density field.
getDensity(int, int) - Method in class cs567.smoke.FluidSolver
Density at valid (i,j) location.
getDensity(int, int) - Method in class cs567.smoke.SmokeKeyframe
Returns keyframe density value at specified (i,j) location.
getDrivingForce(float[], float[], float[]) - Method in class cs567.smoke.SmokeControlForces
Smoke control driving force.
getGatheringRate(float[], float[]) - Method in class cs567.smoke.SmokeControlForces
Evalutes gathering rate: rate = V_g * G = V_g * DIV ( D GRAD (rho-rhoGoal) ), where the diffusion coefficient is D = rho*rhoGoalBlur.
getPaddedNumber(int, int, String) - Static method in class cs567.smoke.Utils
 
getPaddedString(String, int, String, boolean) - Static method in class cs567.smoke.Utils
 
getPoint2d(MouseEvent) - Method in class cs567.smoke.OrthoMap
Get 2d coordinates in unit computation cell of e using knowledge of ortho projection.
getPoint2d(MouseEvent) - Method in class cs567.smoke.Smoke
Maps mouse event into computational cell using OrthoMap.

I

I(int, int) - Static method in class cs567.smoke.Constants
Array index function.
I(int, int) - Method in class cs567.smoke.FluidSolver
UTIL method for indexing 1d arrays
i - Variable in class cs567.smoke.Smoke.MyMouseHandler
 
init(int, int) - Static method in class cs567.smoke.Blur
Must call to setup Blur operator--bad design.
init(GLAutoDrawable) - Method in class cs567.smoke.Smoke
GLEventListener implementation: Initializes JOGL renderer.

J

j - Variable in class cs567.smoke.Smoke.MyMouseHandler
 

K

keyframe - Variable in class cs567.smoke.SmokeControlForces
Current active keyframe.
keyframes - Variable in class cs567.smoke.Smoke
 

L

linearSolver(int, float[], float[], float, float) - Method in class cs567.smoke.FluidSolver
Iterative linear system solver using the Gauss-Seidel relaxation technique.
loadKeyframeDensity(String) - Static method in class cs567.smoke.SmokeKeyframe
Loads and resamples image to required image resolution specified by Constants.

M

main(String[]) - Static method in class cs567.smoke.Smoke
### Ready.
main(String[]) - Static method in class cs567.smoke.SmokeKeyframe
Test code.
main(String[]) - Static method in class cs567.smoke.Utils
 
mouseClicked(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mouseDragged(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mouseEntered(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mouseExited(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mouseHandler - Variable in class cs567.smoke.Smoke
 
mouseMoved(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mousePressed(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 
mouseReleased(MouseEvent) - Method in class cs567.smoke.Smoke.MyMouseHandler
 

N

N - Static variable in class cs567.smoke.Constants
Resolution of N-by-N computational grid.
n - Static variable in class cs567.smoke.Constants
Resolution of (n+2)-by-(n+2) computational grid.
n - Variable in class cs567.smoke.FluidSolver
Grid dimensions (same as in Constants)
N - Variable in class cs567.smoke.FluidSolver
Grid dimensions (same as in Constants)
n() - Method in class cs567.smoke.FluidSolver
n-by-n pressure grid.
n - Variable in class cs567.smoke.SmokeControlForces
 
N_GAUSS_SEIDEL_ITERATIONS - Static variable in class cs567.smoke.Constants
Iterations used in FluidSolver.linearSolver().
N_STEPS_PER_FRAME - Variable in class cs567.smoke.Smoke
 
normalizeDensity(float[]) - Method in class cs567.smoke.SmokeControlForces
Normalizes density sum to match keyframe density sum.

O

OrthoMap - Class in cs567.smoke
Simple object for setting up orthographic projection in OpenGL, and mapping mouse clicks into the unit computational cell.
OrthoMap(int, int) - Constructor for class cs567.smoke.OrthoMap
 

P

p - Variable in class cs567.smoke.Smoke.MyMouseHandler
 
pOld - Variable in class cs567.smoke.Smoke.MyMouseHandler
 
project(float[], float[], float[], float[]) - Method in class cs567.smoke.FluidSolver
Use project() to make the velocity a mass conserving, incompressible field.

R

reset() - Method in class cs567.smoke.FluidSolver
Reset the datastructures.
reshape(GLAutoDrawable, int, int, int, int) - Method in class cs567.smoke.Smoke
GLEventListener implementation
rhoBlur - Variable in class cs567.smoke.SmokeControlForces
Temporary blurring field
rhoGoal - Variable in class cs567.smoke.SmokeKeyframe
Goal density of this keyframe.
rhoGoalBlur - Variable in class cs567.smoke.SmokeKeyframe
Blurred goal density.
rhoGoalSum - Variable in class cs567.smoke.SmokeKeyframe
sum(rhoGoal) in case you need it ;)

S

setKeyframe(SmokeKeyframe) - Method in class cs567.smoke.SmokeControlForces
Specifies active/current key frame.
setSmokeControl(SmokeControlForces) - Method in class cs567.smoke.FluidSolver
Specify smoke control object.
simulate - Variable in class cs567.smoke.Smoke
Toggle to advance simulation.
simulateAndDisplayScene(GL) - Method in class cs567.smoke.Smoke
Simulate then display particle system and any builder adornments.
size - Static variable in class cs567.smoke.Constants
Number of cells in computational domain, and size of grid-based float[] arrays indexed by I(i,j).
size - Variable in class cs567.smoke.FluidSolver
Grid dimensions (same as in Constants)
size() - Method in class cs567.smoke.FluidSolver
Size of grid arrays, (n+2)*(n+2).
size - Variable in class cs567.smoke.SmokeControlForces
 
Smoke - Class in cs567.smoke
CS567: Assignment #4 "Interactive Smoke Control" main class.
Smoke(String[]) - Constructor for class cs567.smoke.Smoke
Main constructor.
Smoke.MyMouseHandler - Class in cs567.smoke
Modify this class to improve mouse interaction.
Smoke.MyMouseHandler() - Constructor for class cs567.smoke.Smoke.MyMouseHandler
 
SMOKE_DIFFUSION - Static variable in class cs567.smoke.Constants
Smoke diffusion coefficient (default: 0.0001).
SmokeControlForces - Class in cs567.smoke
Control forces based on [Fattal and Lischinski 2004].
SmokeControlForces() - Constructor for class cs567.smoke.SmokeControlForces
Builds forces for the specified solver.
SmokeKeyframe - Class in cs567.smoke
Smoke keyframe or "smokey frame" ;) based on an input image that is resized to a square grid of resolution specified in Constants.
SmokeKeyframe(String) - Constructor for class cs567.smoke.SmokeKeyframe
Constructs a "smokey frame" from the specified image filename.
start() - Method in class cs567.smoke.Smoke
Builds/shows window, and starts simulator.
sum(float[]) - Static method in class cs567.smoke.Utils
Returns (sum_i v[i]).
swapD() - Method in class cs567.smoke.FluidSolver
util array swapping method
swapU() - Method in class cs567.smoke.FluidSolver
util array swapping method
swapV() - Method in class cs567.smoke.FluidSolver
util array swapping method

T

tmp - Variable in class cs567.smoke.FluidSolver
Temporary swap grid
toString() - Method in class cs567.smoke.SmokeKeyframe
 

U

u - Variable in class cs567.smoke.FluidSolver
X-velocity grids
uOld - Variable in class cs567.smoke.FluidSolver
X-velocity grids
Utils - Class in cs567.smoke
Some utilities.
Utils() - Constructor for class cs567.smoke.Utils
 

V

v - Variable in class cs567.smoke.FluidSolver
Y-velocity grids
V_d - Static variable in class cs567.smoke.Constants
Drag force amplitude, V_d (default: 0.5)
V_f - Static variable in class cs567.smoke.Constants
Driving force amplitude, V_f (default: 2)
V_g - Static variable in class cs567.smoke.Constants
Gathering rate amplitude, V_g (default: 0.0005)
velocitySolver() - Method in class cs567.smoke.FluidSolver
The basic velocity solving routine as described by Stam, with some hooks for target-driven smoke control.
VISCOSITY - Static variable in class cs567.smoke.Constants
Viscosity (velocity diffusion coefficient).
vOld - Variable in class cs567.smoke.FluidSolver
Y-velocity grids
vorticityConfinement(float[], float[]) - Method in class cs567.smoke.FluidSolver
Calculate the vorticity confinement force for each cell in the fluid grid.

A B C D F G I J K L M N O P R S T U V