FEJDMath
Class Mesh

java.lang.Object
  extended byFEJDMath.Mesh

public class Mesh
extends java.lang.Object

Represents a mesh with all its elements (borders, elements, boundary conditions ...)


Field Summary
private  java.util.ArrayList borderArray
          Array containing the borders of the mesh
private  BorderDomain[] borderDomainArray
          Array containing the border domains of the mesh (each containing borders with the same boundary conditions)
private  Domain[] domainArray
          Array containing the domains of the mesh
private  java.util.ArrayList elemArray
          Array containing the elements of the mesh
private  int elemType
          The type of elements used
private  int fctType
          The type of functions used
private  java.util.ArrayList meshPointArray
          Array containing the meshpoints of the mesh
private  java.util.ArrayList nodeArray
          Array containing the nodes of the mesh
private  int size
          The size of the mesh
static int TIMESLEEP
          Contains the time the programm will stop between each element, if it is set to 0 the programm will not stop but will also not try to repaint the display
 
Constructor Summary
Mesh(int FT)
          Creates a new Maillage whose Shape-functions' type is FT
 
Method Summary
 void addBorder(MeshBorder b)
          Adds the Border b to the mesh
 void addElem(Elem e)
          Adds the Element e to the mesh
 void addMeshPoint(MeshPoint mp)
          Adds the MeshPoint mp to the mesh
 void addNode(Node n)
          Adds the node n to the mesh
 Elem[] getAllElem()
          Returns a clone of the array containing all the elements of the mesh
 MeshPoint[] getAllMeshPoints()
          Returns the array containing all the MeshPoints of the mesh
 MeshBorder getBorder(int i)
          Returns the ith border of the mesh
 BorderDomain getBorderDomain(int i)
          Returns the ith border domain of the mesh
 Domain getDomain(int i)
          Returns the ith domain of the mesh
 Elem getElem(int i)
          Returns the ith elem of the mesh
 int getElemType()
          Returns the type of the elements of the mesh
 int getFctType()
          Returns the type of the shape-functions of the mesh
 MeshPoint getMeshPoint(int i)
          Returns the ith MeshPoint of the mesh
 int getNbOfBorderDomains()
          Returns the number of border domains of the mesh
 int getNbOfBorders()
          Returns the number of borders of the mesh
 int getNbOfDomains()
          Returns the number of domains of the mesh
 int getNbOfElem()
          Returns the number of elements of the mesh
 int getNbOfMeshPoints()
          Returns the number of MehPoints of the mesh
 int getNbOfNodes()
          Returns the number of nodes of the mesh
 Node getNode(int i)
          Returns the ith node of the mesh
 int getSize()
          Returns the size of the mesh ie the number of mesh points
 void setBorder(int i, MeshBorder nbord)
          Sets the ith border of the mesh to nbord
 void setBorderDomain(int i, BorderDomain ndbord)
          Sets the ith border domain of the mesh to ndbord
 void setDomain(int i, Domain ndom)
          Sets the ith domaine of the mesh to ndom
 void setElem(int i, Elem nelem)
          Sets the ith element of the mesh to nelem
 void setElemType(int i)
          Sets the type of the elments of the mesh
 void setFctType(int i)
          Sets the type of the shape-functions of the mesh
 void setMeshPoint(int i, MeshPoint nmp)
          Sets the ith MeshPoint of the mesh to nmp
 void setNbOfBorderDomains(int i)
          Sets the mesh to i border domains
 void setNbOfBorders(int i)
          Sets the mesh to i border elements
 void setNbOfDomains(int i)
          Sets the mesh to i domains
 void setNbOfElem(int i)
          Sets the mesh to i elements
 void setNbOfMeshPoints(int i)
          Sets the mesh to i MeshPoints
 void setNbOfNodes(int i)
          Sets the mesh to i nodes
 void setNode(int i, Node nnode)
          Sets the ith node of the mesh to nnode
 void setSize(int i)
          sets the size of the mesh to i
 java.lang.String toString()
          Returns a complete description of the mesh, useful for debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIMESLEEP

public static int TIMESLEEP
Contains the time the programm will stop between each element, if it is set to 0 the programm will not stop but will also not try to repaint the display


domainArray

private Domain[] domainArray
Array containing the domains of the mesh


borderArray

private java.util.ArrayList borderArray
Array containing the borders of the mesh


borderDomainArray

private BorderDomain[] borderDomainArray
Array containing the border domains of the mesh (each containing borders with the same boundary conditions)


nodeArray

private java.util.ArrayList nodeArray
Array containing the nodes of the mesh


meshPointArray

private java.util.ArrayList meshPointArray
Array containing the meshpoints of the mesh


elemArray

private java.util.ArrayList elemArray
Array containing the elements of the mesh


size

private int size
The size of the mesh


fctType

private int fctType
The type of functions used


elemType

private int elemType
The type of elements used

Constructor Detail

Mesh

public Mesh(int FT)
Creates a new Maillage whose Shape-functions' type is FT

Method Detail

toString

public java.lang.String toString()
Returns a complete description of the mesh, useful for debugging


setFctType

public void setFctType(int i)
Sets the type of the shape-functions of the mesh


getFctType

public int getFctType()
Returns the type of the shape-functions of the mesh


setElemType

public void setElemType(int i)
Sets the type of the elments of the mesh


getElemType

public int getElemType()
Returns the type of the elements of the mesh


setNbOfDomains

public void setNbOfDomains(int i)
Sets the mesh to i domains


setNbOfBorders

public void setNbOfBorders(int i)
Sets the mesh to i border elements


setNbOfBorderDomains

public void setNbOfBorderDomains(int i)
Sets the mesh to i border domains


setNbOfNodes

public void setNbOfNodes(int i)
Sets the mesh to i nodes


setNbOfMeshPoints

public void setNbOfMeshPoints(int i)
Sets the mesh to i MeshPoints


setNbOfElem

public void setNbOfElem(int i)
Sets the mesh to i elements


setDomain

public void setDomain(int i,
                      Domain ndom)
Sets the ith domaine of the mesh to ndom


setBorder

public void setBorder(int i,
                      MeshBorder nbord)
Sets the ith border of the mesh to nbord


addBorder

public void addBorder(MeshBorder b)
Adds the Border b to the mesh


setBorderDomain

public void setBorderDomain(int i,
                            BorderDomain ndbord)
Sets the ith border domain of the mesh to ndbord


setNode

public void setNode(int i,
                    Node nnode)
Sets the ith node of the mesh to nnode


addNode

public void addNode(Node n)
Adds the node n to the mesh


setMeshPoint

public void setMeshPoint(int i,
                         MeshPoint nmp)
Sets the ith MeshPoint of the mesh to nmp


addMeshPoint

public void addMeshPoint(MeshPoint mp)
Adds the MeshPoint mp to the mesh


setElem

public void setElem(int i,
                    Elem nelem)
Sets the ith element of the mesh to nelem


addElem

public void addElem(Elem e)
Adds the Element e to the mesh


getDomain

public Domain getDomain(int i)
Returns the ith domain of the mesh


getBorder

public MeshBorder getBorder(int i)
Returns the ith border of the mesh


getBorderDomain

public BorderDomain getBorderDomain(int i)
Returns the ith border domain of the mesh


getNode

public Node getNode(int i)
Returns the ith node of the mesh


getMeshPoint

public MeshPoint getMeshPoint(int i)
Returns the ith MeshPoint of the mesh


getElem

public Elem getElem(int i)
Returns the ith elem of the mesh


getAllElem

public Elem[] getAllElem()
Returns a clone of the array containing all the elements of the mesh


getAllMeshPoints

public MeshPoint[] getAllMeshPoints()
Returns the array containing all the MeshPoints of the mesh


getNbOfElem

public int getNbOfElem()
Returns the number of elements of the mesh


getNbOfNodes

public int getNbOfNodes()
Returns the number of nodes of the mesh


getNbOfMeshPoints

public int getNbOfMeshPoints()
Returns the number of MehPoints of the mesh


getNbOfDomains

public int getNbOfDomains()
Returns the number of domains of the mesh


getNbOfBorderDomains

public int getNbOfBorderDomains()
Returns the number of border domains of the mesh


getNbOfBorders

public int getNbOfBorders()
Returns the number of borders of the mesh


getSize

public int getSize()
Returns the size of the mesh ie the number of mesh points


setSize

public void setSize(int i)
sets the size of the mesh to i