|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.Mesh
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 |
public static int TIMESLEEP
private Domain[] domainArray
private java.util.ArrayList borderArray
private BorderDomain[] borderDomainArray
private java.util.ArrayList nodeArray
private java.util.ArrayList meshPointArray
private java.util.ArrayList elemArray
private int size
private int fctType
private int elemType
Constructor Detail |
public Mesh(int FT)
Method Detail |
public java.lang.String toString()
public void setFctType(int i)
public int getFctType()
public void setElemType(int i)
public int getElemType()
public void setNbOfDomains(int i)
public void setNbOfBorders(int i)
public void setNbOfBorderDomains(int i)
public void setNbOfNodes(int i)
public void setNbOfMeshPoints(int i)
public void setNbOfElem(int i)
public void setDomain(int i, Domain ndom)
public void setBorder(int i, MeshBorder nbord)
public void addBorder(MeshBorder b)
public void setBorderDomain(int i, BorderDomain ndbord)
public void setNode(int i, Node nnode)
public void addNode(Node n)
public void setMeshPoint(int i, MeshPoint nmp)
public void addMeshPoint(MeshPoint mp)
public void setElem(int i, Elem nelem)
public void addElem(Elem e)
public Domain getDomain(int i)
public MeshBorder getBorder(int i)
public BorderDomain getBorderDomain(int i)
public Node getNode(int i)
public MeshPoint getMeshPoint(int i)
public Elem getElem(int i)
public Elem[] getAllElem()
public MeshPoint[] getAllMeshPoints()
public int getNbOfElem()
public int getNbOfNodes()
public int getNbOfMeshPoints()
public int getNbOfDomains()
public int getNbOfBorderDomains()
public int getNbOfBorders()
public int getSize()
public void setSize(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |