FEJDMath
Class Triangle

java.lang.Object
  extended byFEJDMath.Elem
      extended byFEJDMath.Triangle
All Implemented Interfaces:
java.lang.Cloneable

public class Triangle
extends Elem

Represents a triangular element of the mesh


Field Summary
private  int marks
          The number of split edges of the triangle, -1 if the triangle has already been split (used for the refinement)
private  java.util.Vector Neigh
          Array containing the neighbors of the element
 
Fields inherited from class FEJDMath.Elem
 
Constructor Summary
Triangle(int nb, Node n0, Node n1, Node n2)
           
Triangle(int nb, Node n0, Node n1, Node n2, MeshPoint[] arr)
           
 
Method Summary
 void addMark()
          Add a mark the triangle
 void addNeigh(Triangle t)
          Add the Triangle n to the list of neighbours of the Triangle
 void addNeigh(Triangle[] triangleArray)
          Add the array of Triangle tabTriangle to the list of neighbours of the Triangle
 Matrix22 calcJacobiAt(int i)
          Computes the Jacobi of the element at the ith quadrature point
 void deleteNeigh()
          Deletes neighbours of the Triangle
 int getNbOfMarks()
          Returns the number of Marks of the triangle
 int getNbOfNeigh()
          Returns the number of neighbours of the Triangle
 Triangle getNeigh(int i)
          Returns the ith neighbour of the Triangle
 int getNumberOfNodes()
          Returns the number of Nodes (of summits) of the element
 void setMarks(int m)
          Sets the Marks of the triangle to m
 java.lang.String toString()
          Returns a description of the element
 java.lang.String toString2()
          Returns a description of the elements and the global number of its neighbors
 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 FEJDMath.Elem
calcElementMatrix, calcElementVector, clone, getGlobalNb, getMeshPoint, getNbOfMeshPoints, getNode, setMeshPoint, setNbOfMeshPoints
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Neigh

private java.util.Vector Neigh
Array containing the neighbors of the element


marks

private int marks
The number of split edges of the triangle, -1 if the triangle has already been split (used for the refinement)

Constructor Detail

Triangle

public Triangle(int nb,
                Node n0,
                Node n1,
                Node n2,
                MeshPoint[] arr)
Parameters:
nb - the global nb of the Triangle
n0 - the first node of the triangle
n1 - the second node of the triangle
n2 - the third node of the triangle

Triangle

public Triangle(int nb,
                Node n0,
                Node n1,
                Node n2)
Parameters:
nb - the global number of the Triangle
n0 - the first node of the triangle
n1 - the second node of the triangle
n2 - the third node of the triangle
Method Detail

getNumberOfNodes

public int getNumberOfNodes()
Description copied from class: Elem
Returns the number of Nodes (of summits) of the element

Specified by:
getNumberOfNodes in class Elem

calcJacobiAt

public Matrix22 calcJacobiAt(int i)
Description copied from class: Elem
Computes the Jacobi of the element at the ith quadrature point

Specified by:
calcJacobiAt in class Elem

xi2x

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

Specified by:
xi2x in class Elem

toString

public java.lang.String toString()
Description copied from class: Elem
Returns a description of the element

Overrides:
toString in class Elem

getNbOfMarks

public int getNbOfMarks()
Returns the number of Marks of the triangle


setMarks

public void setMarks(int m)
Sets the Marks of the triangle to m


addMark

public void addMark()
Add a mark the triangle


getNeigh

public Triangle getNeigh(int i)
Returns the ith neighbour of the Triangle


getNbOfNeigh

public int getNbOfNeigh()
Returns the number of neighbours of the Triangle


deleteNeigh

public void deleteNeigh()
Deletes neighbours of the Triangle


addNeigh

public void addNeigh(Triangle t)
Add the Triangle n to the list of neighbours of the Triangle


addNeigh

public void addNeigh(Triangle[] triangleArray)
Add the array of Triangle tabTriangle to the list of neighbours of the Triangle


toString2

public java.lang.String toString2()
Returns a description of the elements and the global number of its neighbors