|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectCell11
Each instance is a cell within a cellular autonome. This class describes the properties of each cell.
| Field Summary | |
double |
cellStress
Cell stress variable |
boolean |
isRuptured
Question: Has cell ruptured during this timestep? |
int[] |
neighbour
Array of nearest neighbours cell ids |
double |
overFlowStress
Stress to be passed onto adjacent cells |
double |
ruptureStress
Rupture threshold |
static boolean |
useAsymmetric
Question: Use assymetric redistribution rule? |
static boolean |
usePeriodicBC
Question: Use peroiodic boundary conditions? |
| Constructor Summary | |
Cell11(int newI,
int newJ)
The Cell object with a unique (x,y) position in a lattice |
|
| Method Summary | |
double |
getCellStrength()
Returns the cell strength |
double |
getCellStress()
Returns the cell stress |
int |
getNeighbour(int i)
Returns the ith neighbour |
double |
getOverFlowStress()
Returns the overflow stress for that cell |
double |
getProximityToFailure()
Sets isRuptured true for this timestep |
void |
incrementStress(double stressIncrement,
double percentageNoise)
Increment the cells stress using arguments |
void |
initiateRupture()
|
boolean |
isCellRuptured()
|
boolean |
isCellStressFlagged()
|
boolean |
isStressAboveThreshold()
|
void |
paint(java.awt.Graphics g2,
int type,
int cellWidth,
int xOffset,
int yOffset)
Method describing how top draw a cell |
void |
propagateStress(double overFlowStressIncrement)
|
static void |
setAutonomeCellParameters(int newNx,
int newNeighbourNumber,
double newMaxStrength,
double newMinStrength,
double newBeta,
boolean newUsePeriodicBC,
double newMaxRelaxStressFactor)
Sets the static runtime parameters For next run use: |
void |
setCellNotRuptured()
Method to reset the cell as being not ruptured |
void |
setCellStressZero()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int[] neighbour
public double cellStress
public double ruptureStress
public double overFlowStress
public boolean isRuptured
public static boolean usePeriodicBC
public static boolean useAsymmetric
| Constructor Detail |
public Cell11(int newI,
int newJ)
newI - The x lattice positionnewJ - The y lattice position| Method Detail |
public static void setAutonomeCellParameters(int newNx,
int newNeighbourNumber,
double newMaxStrength,
double newMinStrength,
double newBeta,
boolean newUsePeriodicBC,
double newMaxRelaxStressFactor)
newNx - Lattice dimension (Number of cells along each axis)newMaxStrength - Maximum cell strengthnewMinStrength - Minimum cell strengthnewBeta - Conservation factornewUsePeriodicBC - Question: Use periodic BC?newMaxRelaxStressFactor - Percentage range over which the stress is to be reset above zeropublic void setCellNotRuptured()
public void incrementStress(double stressIncrement,
double percentageNoise)
stressIncrement - Value to increment stress bypercentageNoise - public double getOverFlowStress()
public double getProximityToFailure()
public double getCellStress()
public double getCellStrength()
public void propagateStress(double overFlowStressIncrement)
overFlowStressIncrement - public void initiateRupture()
public boolean isCellStressFlagged()
public void setCellStressZero()
public boolean isStressAboveThreshold()
public boolean isCellRuptured()
public int getNeighbour(int i)
i - the ith of 4 neighbours
public void paint(java.awt.Graphics g2,
int type,
int cellWidth,
int xOffset,
int yOffset)
g2 - type - xOffset - yOffset - cellWidth - Width to draw cell
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||