FEJDMath
Class Elem

java.lang.Object
  extended byFEJDMath.Elem
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Quadrilateral, Triangle

public abstract class Elem
extends java.lang.Object
implements java.lang.Cloneable

Represents an element of the mesh, abstract class used to create the elements we use


Field Summary
private  double[][] elementMatrix
          The elementary stiffness matrix
private  double[] elementVector
          The elementary right hand side
private  int globalNb
          The global number of the element
private  MeshPoint[] meshPointArray
          Contains the MeshPoints.
 
Constructor Summary
Elem(int nb)
           
 
Method Summary
 double[][] calcElementMatrix(double Kxx, double Kyy)
          Computes the elementary stiffness matrix of the element in a domain with the coefficients Kxx Kyy
 double[] calcElementVector(int domainNbr)
          Computes the elementary last vector of the element
abstract  Matrix22 calcJacobiAt(int i)
          Computes the Jacobi of the element at the ith quadrature point
 java.lang.Object clone()
          Retuns a copy of the element
 int getGlobalNb()
          Returns the global number of the element
 MeshPoint getMeshPoint(int i)
          Returns the ith MeshPoint of the element
 int getNbOfMeshPoints()
          Returns the number of MeshPoints of the element
 Node getNode(int i)
          Returns the ith Node of the element
abstract  int getNumberOfNodes()
          Returns the number of Nodes (of summits) of the element
 void setMeshPoint(int i, MeshPoint mp)
          Sets the ith MeshPoint of the element to mp
 void setNbOfMeshPoints(int i)
          Sets the element to i MeshPoints
 java.lang.String toString()
          Returns a description of the element
abstract  Vector2 xi2x(int i)
          Performs the transformation from Xi to X of the ith quadrature point, used for the computation of the values of f
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

globalNb

private int globalNb
The global number of the element


meshPointArray

private MeshPoint[] meshPointArray
Contains the MeshPoints. All nodes should be placed before the non-nodes meshpoints !


elementMatrix

private double[][] elementMatrix
The elementary stiffness matrix


elementVector

private double[] elementVector
The elementary right hand side

Constructor Detail

Elem

public Elem(int nb)
Parameters:
nb - the global number of the element
Method Detail

getMeshPoint

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


setMeshPoint

public void setMeshPoint(int i,
                         MeshPoint mp)
Sets the ith MeshPoint of the element to mp


setNbOfMeshPoints

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


getNbOfMeshPoints

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


getGlobalNb

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


getNode

public Node getNode(int i)
Returns the ith Node of the element


toString

public java.lang.String toString()
Returns a description of the element


clone

public java.lang.Object clone()
Retuns a copy of the element


calcElementMatrix

public double[][] calcElementMatrix(double Kxx,
                                    double Kyy)
Computes the elementary stiffness matrix of the element in a domain with the coefficients Kxx Kyy


calcElementVector

public double[] calcElementVector(int domainNbr)
Computes the elementary last vector of the element


calcJacobiAt

public abstract Matrix22 calcJacobiAt(int i)
Computes the Jacobi of the element at the ith quadrature point


xi2x

public abstract Vector2 xi2x(int i)
Performs the transformation from Xi to X of the ith quadrature point, used for the computation of the values of f


getNumberOfNodes

public abstract int getNumberOfNodes()
Returns the number of Nodes (of summits) of the element