FEJDMath
Class BorderDomain

java.lang.Object
  extended byFEJDMath.BorderDomain

public class BorderDomain
extends java.lang.Object

Represents a border domain of the mesh, ie a group of borders having the same boundary conditions


Field Summary
private  java.util.ArrayList borderArray
          Array containing the borders of the border domain
private  int type
          The type of boundary conditions : 1 for dirichlet, 2 for neumann, 3 for robin
 
Constructor Summary
BorderDomain(int nb, int style)
           
 
Method Summary
 void addBorder(MeshBorder b)
          Adds the Border b to the domain border
 void calcAllBC()
          Computes the boundaty conditions of every borders of the domain
 MeshBorder getBorder(int i)
          Returns the ith border of the domain
 int getNbOfBorders()
          Returns the number of borders of the domain
 int getType()
          Retuns the type of the domain
 void setBorder(int i, MeshBorder ed)
          Sets the ith border of the domain to ed
 void setNbOfBorders(int i)
          Sets the domain to i borders
 java.lang.String toString()
          Returns a description of the borderDomain ie a description of each of its borders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

borderArray

private java.util.ArrayList borderArray
Array containing the borders of the border domain


type

private int type
The type of boundary conditions : 1 for dirichlet, 2 for neumann, 3 for robin

Constructor Detail

BorderDomain

public BorderDomain(int nb,
                    int style)
Parameters:
nb - the number of borders the domain contains
style - the type of the border : 1 for Dirichlet, 2 for Neumann, 3 for Robin
Method Detail

toString

public java.lang.String toString()
Returns a description of the borderDomain ie a description of each of its borders


getType

public int getType()
Retuns the type of the domain


getBorder

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


setNbOfBorders

public void setNbOfBorders(int i)
Sets the domain to i borders


setBorder

public void setBorder(int i,
                      MeshBorder ed)
Sets the ith border of the domain to ed


addBorder

public void addBorder(MeshBorder b)
Adds the Border b to the domain border


calcAllBC

public void calcAllBC()
Computes the boundaty conditions of every borders of the domain


getNbOfBorders

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