FEJDMath
Class MeshPoint

java.lang.Object
  extended byFEJDMath.MeshPoint
Direct Known Subclasses:
Node

public class MeshPoint
extends java.lang.Object

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

globalNb

private int globalNb
The global number of the mesh point


x

private double x
The coordinates of the mesh point


y

private double y
The coordinates of the mesh point


temperature

private double temperature
The tempeerature of the mesh point


isDirichlet

private boolean isDirichlet
Stores if the point has a dirichlet condition


dirichletVal

private double dirichletVal
The value of the dirichlet condition


newNb

private int newNb
The value of the new global number after renumbering


Succ

private java.util.Vector Succ
Array containing the successors of the point


isRen

private boolean isRen
Stores if the point has been renumbered


isMar

private boolean isMar
Stores if the point has been marked in the renumbring process

Constructor Detail

MeshPoint

public MeshPoint(int nb,
                 double xx,
                 double yy)
Parameters:
nb - the global number of the meshpoint
xx - the x coordinate of the meshpoint
yy - the y coordinate of the meshpoint

MeshPoint

public MeshPoint(int nb,
                 double xx,
                 double yy,
                 double temp)
Parameters:
nb - the global number of the meshpoint
xx - the x coordinate of the meshpoint
yy - the y coordinate of the meshpoint
temp - the temperature of the meshpoint
Method Detail

toString

public java.lang.String toString()
Return a description of the meshpoint


getGlobalNb

public int getGlobalNb()
Returns the global number of the meshpoint


setGlobalNb

public void setGlobalNb(int i)
Sets the global number of the meshpoint to i


getx

public double getx()
Returns the x coordinate of the meshpoint


gety

public double gety()
Returns the y coordinate of the meshpoint


getTemperature

public double getTemperature()
Returns the temperature of the meshpoint


setTemperature

public void setTemperature(double temp)
Sets the temperature of the meshpoint to temp


isDirichletNode

public boolean isDirichletNode()
Returns true if the meshpoint is a dirichlet node


setDirichlet

public void setDirichlet(boolean state)
Sets the dirichlet state of the meshpoint to state


setDirichletValue

public void setDirichletValue(double val)
Sets the dirichlet value of the meshpoint to val


getDirichletValue

public double getDirichletValue()
Returns the dirichlet value of the meshpoint


getSucc

public MeshPoint getSucc(int i)
Returns the ith neighbour of the MeshPoint


getNbOfSucc

public int getNbOfSucc()
Returns the number of neighbours of the MeshPoint


isMarked

public boolean isMarked()
Returns true if the MeshPoint is marked (that means that we know his level (cf the reverse Cuthill McKee algorithm))


mark

public void mark()
Marks the MeshPoint (ie indicates that we know his level (cf the reverse Cuthill McKee algorithm))


unmark

public void unmark()
Unmarks the MeshPoint


setRenumber

public void setRenumber(boolean b)
Sets isMar to b (ie indicates if the MeshPoints is renumbered)


isRenumbered

public boolean isRenumbered()
Returns true if the MeshPoint is already renumbered


addSucc

public void addSucc(MeshPoint n)
Add the MeshPoint n to the list of successors (= neighbors) of the MeshPoint


addSucc

public void addSucc(MeshPoint[] tabMeshPoint)
Add the array of MeshPoints tabNod to the list of successors (= neighbors) of the MeshPoint


getNewNb

public int getNewNb()
Returns the number of the MeshPoint in the new numbering


setNewNb

public void setNewNb(int i)
Sets the number of the MeshPoint in the new numbering


renum

public void renum()
Renumbers the MeshPoint (with the next available number)


exc

public int exc(MeshPoint[] meshPointArray)
Returns the eccentricity of the MeshPoint in the mesh reprensented by TabMeshPoint (cf Cuthill Mc Kee algortihm)


lastLevel

public java.util.Vector lastLevel(MeshPoint[] meshPointArray)
Returns the MeshPoints that are on the last "neighbours-level" of the MeshPoint. They are sorted by degree


toString2

public java.lang.String toString2()
Returns a string describing the change in global number of the point in the renumbering


toString3

public java.lang.String toString3()
Returns a string with the global number of the neighbour of the MeshPoint