FEJDMath
Class Domain

java.lang.Object
  extended byFEJDMath.Domain

class Domain
extends java.lang.Object

Represents a domain of the mesh, ie a group of elements having the same coefficients of thermal conductivity


Field Summary
private  java.util.ArrayList elemArray
          Array containing the elements of the domain
private  int globalNb
          The global number of the domain
private  double Kxx
          The coefficients of the domain
private  double Kyy
          The coefficients of the domain
 
Constructor Summary
Domain(int nb, double Kx, double Ky)
           
 
Method Summary
 void addElem(Elem el)
          Adds the element el to the domain
 void calcAllElementMatrix()
          Computes the elementary stiffness matrix for every element of the domain
 Elem getElem(int i)
          Returns the ith element of the domain
 double getKxx()
          Returns the coefficient lambdaxx of the domain
 double getKyy()
          Returns the coefficient lambdayy of the domain
 int getNbOfElem()
          Returns the number of elements of the domain
 void setElem(int i, Elem el)
          Sets the ith element of the domain to ed
 void setNbOfElem(int i)
          Sets the domain to i elements
 java.lang.String toString()
          Returns a description of the domain ie the coefficients of thermal conductivity and a description of each element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elemArray

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


Kxx

private double Kxx
The coefficients of the domain


Kyy

private double Kyy
The coefficients of the domain


globalNb

private int globalNb
The global number of the domain

Constructor Detail

Domain

public Domain(int nb,
              double Kx,
              double Ky)
Parameters:
nb - the global number of the domain
Kx - the coefficient of thermal conductivity lambdaxx of the domain
Ky - the coefficient of thermal conductivity lambdayy of the domain
Method Detail

toString

public java.lang.String toString()
Returns a description of the domain ie the coefficients of thermal conductivity and a description of each element


getKxx

public double getKxx()
Returns the coefficient lambdaxx of the domain


getKyy

public double getKyy()
Returns the coefficient lambdayy of the domain


setNbOfElem

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


setElem

public void setElem(int i,
                    Elem el)
Sets the ith element of the domain to ed


addElem

public void addElem(Elem el)
Adds the element el to the domain


getElem

public Elem getElem(int i)
Returns the ith element of the domain


getNbOfElem

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


calcAllElementMatrix

public void calcAllElementMatrix()
Computes the elementary stiffness matrix for every element of the domain