|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcs567.smoke.Constants
public class Constants
Compile-time constants/parameters affecting the simulation. Although not great software design, I've collected them here to avoid students/you scanning the codebase looking for all the hidden tweakable parameters.
| Field Summary | |
|---|---|
static float |
BUOYANCY
Smoke buoyancy (dimensionless) (default: 1) |
static float |
dt
Time-step size. |
static int |
n
Resolution of (n+2)-by-(n+2) computational grid. |
static int |
N
Resolution of N-by-N computational grid. |
static int |
N_GAUSS_SEIDEL_ITERATIONS
Iterations used in FluidSolver.linearSolver(). |
static int |
size
Number of cells in computational domain, and size of grid-based float[] arrays indexed by I(i,j). |
static float |
SMOKE_DIFFUSION
Smoke diffusion coefficient (default: 0.0001). |
static float |
V_d
Drag force amplitude, V_d (default: 0.5) |
static float |
V_f
Driving force amplitude, V_f (default: 2) |
static float |
V_g
Gathering rate amplitude, V_g (default: 0.0005) |
static float |
VISCOSITY
Viscosity (velocity diffusion coefficient). |
| Constructor Summary | |
|---|---|
Constants()
|
|
| Method Summary | |
|---|---|
static int |
I(int i,
int j)
Array index function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float dt
public static final int N
public static final int n
public static final int size
public static final int N_GAUSS_SEIDEL_ITERATIONS
public static final float V_f
public static final float V_g
public static final float V_d
public static final float SMOKE_DIFFUSION
public static final float VISCOSITY
public static final float BUOYANCY
| Constructor Detail |
|---|
public Constants()
| Method Detail |
|---|
public static final int I(int i,
int j)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||