FEJDMath
Class Data

java.lang.Object
  extended byFEJDMath.Data

public class Data
extends java.lang.Object

Used to compute the data about the shape functions in order to compute the integrals


Field Summary
private static double[][] data1DArray
          Values of the shape functions at the gauss points tabData[i][j] = value of phi[i] at xi[j]
private static double[][][] dataArray
          Values of the shape functions and of their gradient at the gauss points dataArray[i][j][0] = value of phi[i] at xi[j] dataArray[i][j][1] = value of dphi[i]/dxi[1] at xi[j] dataArray[i][j][2] = value of dphi[i]/dxi[2] at xi[j]
private static ShapeFunction1D[] fct1DArray
          In tabFct1d, the first 2 functions correspond to the 2 end points (then the functions corresponding to the others points, in the middle, are entered)
private static ShapeFunction[] fctArray
          Array containing the ansatz functions for the 2D problem
private static FctParser[] function
          Parser which contains the f function (right hand side)
static int LINEAR
          Constant used to denote the linear functions
static int NBRCOEFF
          Constant used to know the number of coefficients used for f
static int QUADRATIC
          Constant used to denote the quadratic functions
private static double[][] quadratPts1DArray
          Coordinated of the gauss points followed by their weight, always of the type double[n][2] with n the number of gauss points
private static double[][] quadratPtsArray
          Coordinated of the gauss points followed by their weight, always of the type double[n][3] with n the number of gauss points
static int QUADRILATERAL
          Constant used to denote the quadrilateral elements
static int TRIANGLE
          Constant used to denote the triangular elements
 
Constructor Summary
Data()
           
 
Method Summary
static void computeDataArray(int elemType, int fctType)
          Stores the values of the shape functions 1D and 2D at the gauss points in order to compute the integrals
static double computeFAt(int i, Vector2 v)
          Returns the value of the ith f function at (v.x,v.y)
static double getData(int i, int j, int k)
          Returns the value of th ith 2D shape function differenciated k times at the jth point
static double getData1D(int i, int j)
          Returns the value of the ith 1D shape function at the jth point
static java.lang.String getFunction(int i)
          Returns the string representing the ith function
static int getNbOfFct()
          Returns the number of 2D fuctions
static int getNbOfFct1D()
          Returns the number of 1D fuctions
static int getNbOfQuadratPts()
          Returns the number of points used for 2D functions
static int getNbOfQuadratPts1D()
          Returns the number of points used for 1D functions
static double getQuadratPts(int i, int j)
          Returns the jth component of the ith point for 2D computation, j=0 returns the x coordinate, j=1 returns the y coorfinate, j=2 returns the weight of the point
static double getQuadratPts1D(int i)
          Returns the x coordinate of the ith point for 1D computation
static double getWeight(int i)
          Returns the weight of the point in order to performe the 2D computation
static double getWeight1D(int i)
          Returns the weight of the point in order to performe the 1D computation
static void setFunction(int i, java.lang.String s)
          Loads the function represented by the string s
static void setNbOfFct(int nbr)
          Sets the number of functions that the array will contain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRIANGLE

public static final int TRIANGLE
Constant used to denote the triangular elements

See Also:
Constant Field Values

QUADRILATERAL

public static final int QUADRILATERAL
Constant used to denote the quadrilateral elements

See Also:
Constant Field Values

LINEAR

public static final int LINEAR
Constant used to denote the linear functions

See Also:
Constant Field Values

QUADRATIC

public static final int QUADRATIC
Constant used to denote the quadratic functions

See Also:
Constant Field Values

NBRCOEFF

public static final int NBRCOEFF
Constant used to know the number of coefficients used for f

See Also:
Constant Field Values

fctArray

private static ShapeFunction[] fctArray
Array containing the ansatz functions for the 2D problem


dataArray

private static double[][][] dataArray
Values of the shape functions and of their gradient at the gauss points dataArray[i][j][0] = value of phi[i] at xi[j] dataArray[i][j][1] = value of dphi[i]/dxi[1] at xi[j] dataArray[i][j][2] = value of dphi[i]/dxi[2] at xi[j]


quadratPtsArray

private static double[][] quadratPtsArray
Coordinated of the gauss points followed by their weight, always of the type double[n][3] with n the number of gauss points


function

private static FctParser[] function
Parser which contains the f function (right hand side)


fct1DArray

private static ShapeFunction1D[] fct1DArray
In tabFct1d, the first 2 functions correspond to the 2 end points (then the functions corresponding to the others points, in the middle, are entered)


data1DArray

private static double[][] data1DArray
Values of the shape functions at the gauss points tabData[i][j] = value of phi[i] at xi[j]


quadratPts1DArray

private static double[][] quadratPts1DArray
Coordinated of the gauss points followed by their weight, always of the type double[n][2] with n the number of gauss points

Constructor Detail

Data

public Data()
Method Detail

computeDataArray

public static void computeDataArray(int elemType,
                                    int fctType)
Stores the values of the shape functions 1D and 2D at the gauss points in order to compute the integrals


setNbOfFct

public static void setNbOfFct(int nbr)
Sets the number of functions that the array will contain


setFunction

public static void setFunction(int i,
                               java.lang.String s)
Loads the function represented by the string s


getFunction

public static java.lang.String getFunction(int i)
Returns the string representing the ith function


computeFAt

public static double computeFAt(int i,
                                Vector2 v)
Returns the value of the ith f function at (v.x,v.y)


getData

public static double getData(int i,
                             int j,
                             int k)
Returns the value of th ith 2D shape function differenciated k times at the jth point


getWeight

public static double getWeight(int i)
Returns the weight of the point in order to performe the 2D computation


getQuadratPts

public static double getQuadratPts(int i,
                                   int j)
Returns the jth component of the ith point for 2D computation, j=0 returns the x coordinate, j=1 returns the y coorfinate, j=2 returns the weight of the point


getNbOfQuadratPts

public static int getNbOfQuadratPts()
Returns the number of points used for 2D functions


getNbOfFct

public static int getNbOfFct()
Returns the number of 2D fuctions


getData1D

public static double getData1D(int i,
                               int j)
Returns the value of the ith 1D shape function at the jth point


getWeight1D

public static double getWeight1D(int i)
Returns the weight of the point in order to performe the 1D computation


getQuadratPts1D

public static double getQuadratPts1D(int i)
Returns the x coordinate of the ith point for 1D computation


getNbOfQuadratPts1D

public static int getNbOfQuadratPts1D()
Returns the number of points used for 1D functions


getNbOfFct1D

public static int getNbOfFct1D()
Returns the number of 1D fuctions