FEJDMath
Class MeshBorder

java.lang.Object
  extended byFEJDMath.MeshBorder
Direct Known Subclasses:
Border1, Border2, Border3

public class MeshBorder
extends java.lang.Object

Represents an border of the mesh


Field Summary
private  int globalNb
          The blobal number of the border
private  MeshPoint[] tabMeshPoint
          Array containing the meshpoints of the border
 
Constructor Summary
MeshBorder(int nb, Node nn1, Node nn2)
           
MeshBorder(int nb, Node nn1, Node nn2, MeshPoint[] mpTbl)
           
MeshBorder(MeshBorder e)
           
 
Method Summary
 void calcBCondition()
          Computes the boundary conditions (not for meshborders, only for borders...)
 int getGlobalNb()
          Returns the global number of the edge
 MeshPoint getMeshPoint(int i)
          Returns the ith MeshPoint
 int getNbOfMeshPoints()
          Returns the number of MeshPoints of the border
 Node getNode(int i)
          Returns the ith node (the same as getNode1() and getNode2() but may be used in a loop)
 Node getNode1()
          Returns the first node
 Node getNode2()
          Returns the second node
 java.lang.String toString()
          Returns a description of the border, ie its global number and those of its nodes
 java.lang.String toString2()
          Returns only the global number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tabMeshPoint

private MeshPoint[] tabMeshPoint
Array containing the meshpoints of the border


globalNb

private int globalNb
The blobal number of the border

Constructor Detail

MeshBorder

public MeshBorder(int nb,
                  Node nn1,
                  Node nn2)
Parameters:
nb - the global number of the border
nn1 - the first node of the border
nn2 - the second node of the border

MeshBorder

public MeshBorder(int nb,
                  Node nn1,
                  Node nn2,
                  MeshPoint[] mpTbl)
Parameters:
nb - the global number of the border
nn1 - the first node of the border
nn2 - the second node of the border
mpTbl - the array of the border's MeshPoints

MeshBorder

public MeshBorder(MeshBorder e)
Parameters:
e - an MeshBorder whose data will be copied into the new border
Method Detail

toString

public java.lang.String toString()
Returns a description of the border, ie its global number and those of its nodes


toString2

public java.lang.String toString2()
Returns only the global number


getGlobalNb

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


getMeshPoint

public MeshPoint getMeshPoint(int i)
Returns the ith MeshPoint


getNode

public Node getNode(int i)
Returns the ith node (the same as getNode1() and getNode2() but may be used in a loop)


getNode1

public Node getNode1()
Returns the first node


getNode2

public Node getNode2()
Returns the second node


getNbOfMeshPoints

public int getNbOfMeshPoints()
Returns the number of MeshPoints of the border


calcBCondition

public void calcBCondition()
Computes the boundary conditions (not for meshborders, only for borders...)