|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.MeshPoint
Represents a point of the mesh. A MeshPoint is also described by the list of his neighbours for the renumbering
Field Summary | |
private double |
dirichletVal
The value of the dirichlet condition |
private int |
globalNb
The global number of the mesh point |
private boolean |
isDirichlet
Stores if the point has a dirichlet condition |
private boolean |
isMar
Stores if the point has been marked in the renumbring process |
private boolean |
isRen
Stores if the point has been renumbered |
private int |
newNb
The value of the new global number after renumbering |
private java.util.Vector |
Succ
Array containing the successors of the point |
private double |
temperature
The tempeerature of the mesh point |
private double |
x
The coordinates of the mesh point |
private double |
y
The coordinates of the mesh point |
Constructor Summary | |
MeshPoint(int nb,
double xx,
double yy)
|
|
MeshPoint(int nb,
double xx,
double yy,
double temp)
|
Method Summary | |
void |
addSucc(MeshPoint n)
Add the MeshPoint n to the list of successors (= neighbors) of the MeshPoint |
void |
addSucc(MeshPoint[] tabMeshPoint)
Add the array of MeshPoints tabNod to the list of successors (= neighbors) of the MeshPoint |
int |
exc(MeshPoint[] meshPointArray)
Returns the eccentricity of the MeshPoint in the mesh reprensented by TabMeshPoint (cf Cuthill Mc Kee algortihm) |
double |
getDirichletValue()
Returns the dirichlet value of the meshpoint |
int |
getGlobalNb()
Returns the global number of the meshpoint |
int |
getNbOfSucc()
Returns the number of neighbours of the MeshPoint |
int |
getNewNb()
Returns the number of the MeshPoint in the new numbering |
MeshPoint |
getSucc(int i)
Returns the ith neighbour of the MeshPoint |
double |
getTemperature()
Returns the temperature of the meshpoint |
double |
getx()
Returns the x coordinate of the meshpoint |
double |
gety()
Returns the y coordinate of the meshpoint |
boolean |
isDirichletNode()
Returns true if the meshpoint is a dirichlet node |
boolean |
isMarked()
Returns true if the MeshPoint is marked (that means that we know his level (cf the reverse Cuthill McKee algorithm)) |
boolean |
isRenumbered()
Returns true if the MeshPoint is already renumbered |
java.util.Vector |
lastLevel(MeshPoint[] meshPointArray)
Returns the MeshPoints that are on the last "neighbours-level" of the MeshPoint. |
void |
mark()
Marks the MeshPoint (ie indicates that we know his level (cf the reverse Cuthill McKee algorithm)) |
void |
renum()
Renumbers the MeshPoint (with the next available number) |
void |
setDirichlet(boolean state)
Sets the dirichlet state of the meshpoint to state |
void |
setDirichletValue(double val)
Sets the dirichlet value of the meshpoint to val |
void |
setGlobalNb(int i)
Sets the global number of the meshpoint to i |
void |
setNewNb(int i)
Sets the number of the MeshPoint in the new numbering |
void |
setRenumber(boolean b)
Sets isMar to b (ie indicates if the MeshPoints is renumbered) |
void |
setTemperature(double temp)
Sets the temperature of the meshpoint to temp |
java.lang.String |
toString()
Return a description of the meshpoint |
java.lang.String |
toString2()
Returns a string describing the change in global number of the point in the renumbering |
java.lang.String |
toString3()
Returns a string with the global number of the neighbour of the MeshPoint |
void |
unmark()
Unmarks the MeshPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int globalNb
private double x
private double y
private double temperature
private boolean isDirichlet
private double dirichletVal
private int newNb
private java.util.Vector Succ
private boolean isRen
private boolean isMar
Constructor Detail |
public MeshPoint(int nb, double xx, double yy)
nb
- the global number of the meshpointxx
- the x coordinate of the meshpointyy
- the y coordinate of the meshpointpublic MeshPoint(int nb, double xx, double yy, double temp)
nb
- the global number of the meshpointxx
- the x coordinate of the meshpointyy
- the y coordinate of the meshpointtemp
- the temperature of the meshpointMethod Detail |
public java.lang.String toString()
public int getGlobalNb()
public void setGlobalNb(int i)
public double getx()
public double gety()
public double getTemperature()
public void setTemperature(double temp)
public boolean isDirichletNode()
public void setDirichlet(boolean state)
public void setDirichletValue(double val)
public double getDirichletValue()
public MeshPoint getSucc(int i)
public int getNbOfSucc()
public boolean isMarked()
public void mark()
public void unmark()
public void setRenumber(boolean b)
public boolean isRenumbered()
public void addSucc(MeshPoint n)
public void addSucc(MeshPoint[] tabMeshPoint)
public int getNewNb()
public void setNewNb(int i)
public void renum()
public int exc(MeshPoint[] meshPointArray)
public java.util.Vector lastLevel(MeshPoint[] meshPointArray)
public java.lang.String toString2()
public java.lang.String toString3()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |