|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch13.cca.CCA
public class CCA
CCA provides simualtes cluster-cluster aggregation
| Field Summary | |
|---|---|
int[] |
box
|
int[] |
firstParticle
|
int |
L
|
int[] |
lastParticle
|
int[] |
mass
|
int[] |
nextParticle
|
int |
numberOfClusters
|
int |
numberOfParticles
|
int[][] |
site
|
int[] |
x
|
int[] |
y
|
| Constructor Summary | |
|---|---|
CCA()
|
|
| Method Summary | |
|---|---|
void |
boxCount()
|
void |
checkNeighbors(int x_i,
int y_i)
Checks to see if there are two neighbors not in same cluster |
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws clusters |
void |
initialize()
initializes site lattice with single particle clusters randomly placed on the lattice |
void |
merge(int c1,
int c2)
Merges two clusters that are next to each other |
int |
occupiedSiteInCell(int cell,
int i,
int j)
|
void |
step()
Moves a cluster chosen at random in a random direction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[][] site
public int[] x
public int[] y
public int[] firstParticle
public int[] nextParticle
public int[] lastParticle
public int[] mass
public int L
public int numberOfParticles
public int numberOfClusters
public int[] box
| Constructor Detail |
|---|
public CCA()
| Method Detail |
|---|
public void initialize()
public void checkNeighbors(int x_i,
int y_i)
x_i,y_i -
public void merge(int c1,
int c2)
largerCluster,smallerCluster - public void step()
public int occupiedSiteInCell(int cell,
int i,
int j)
public void boxCount()
public void draw(DrawingPanel panel,
java.awt.Graphics g)
draw in interface Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||