hp2FEM  0.1
Public Member Functions | Protected Attributes
LineCollocationPoints Class Reference

Calculates the collocation points coordinates for the line element. More...

#include <LineCollocationPoints.h>

Collaboration diagram for LineCollocationPoints:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LineCollocationPoints ()
 Default constructor.
 LineCollocationPoints (LineCollocationPoints &Instance)
 Copy-initializer constructor.
 ~LineCollocationPoints ()
 Class destructor.
LineCollocationPointsoperator= (LineCollocationPoints &Instance)
 Copies the contents of instance to the object.
void SetMaxPolyOrder (unsigned long MaxOrder)
 Sets the maximum polynomial order for the line collocation points.
unsigned long GetMaxPolyOrder ()
 Returns the maximum polynomial order for the line collocation points.
long GetCollocationPointsSetNumber (unsigned long PolyOrder)
 Returns the set number of the collocation points for the given polynomial order.
unsigned long GetTotalNumberCollocationPoints ()
 Returns the total number of collocation points.
unsigned long GetNumberCollocationPoints (unsigned long PolyOrder, long &CollocationPointsSetNumber)
 Returns the number of collocation points for the given polynomial order and the collocation point set where they are stored.
unsigned long GetNumberCollocationPointsSets ()
 Returns the number of collocation points sets stored in the class.
double *const GetCollocationPointsCoords (unsigned long PolyOrder, unsigned long &NumberPoints)
 Returns the line collocation points for the given polynomial order.
void RunCollocationPointsCoords (collocationPointsAttributes_S &CPAttributes, BuiltInArray< unsigned long > &PolyOrder)
 Calculates the line collocation points coordinates.
void Convert2NaturalCoordinates ()
 Converts the coordinates from the interval [-1,1] to [0,1].
void Convert2LocalCoordinates ()
 Converts the coordinates from the interval [0,1] to [-1,1].
void Print (FILE *File)
 Prints the line collocation coordinates in the given ascii file.

Protected Attributes

collocationPoints1D Colloc
 Instance of the collocationPoints1D to calculate the 1D collocation points coordinates.
OneIndexTable< double > Coords
 Table that stores the collocation points coordinates.
unsigned long Pmax
 Maximum polynomial order.
unsigned long NumbCPSets
 Number of sets of collocation points used.
BuiltInArray< long > CPSets
 This array has size for the maximum number of collocatiotion points, which it is calculated as Pmax + 1. The array stores for each number of points, the row number of the tables of coords storing the points. As the array is allocated for the maximum number of points, some positions may not be used. In this case, this array will store -1.

Detailed Description

Calculates the collocation points coordinates for the line element.

Author:
Fabiano Fernandes Bargos/Marco Lcio Bittencourt
Date:
March/15/2011

Constructor & Destructor Documentation

Copy-initializer constructor.

Parameters:
[in]Instance- instance of the LineCollocationPoints class

Member Function Documentation

double *const LineCollocationPoints::GetCollocationPointsCoords ( unsigned long  PolyOrder,
unsigned long &  NumberPoints 
)

Returns the line collocation points for the given polynomial order.

Parameters:
[in]PolyOrder- polynomial order
[out]NumberPoints- Number of points for the polynomial order.
Returns:
double * const with the collocation points coordinates value.
long LineCollocationPoints::GetCollocationPointsSetNumber ( unsigned long  PolyOrder)

Returns the set number of the collocation points for the given polynomial order.

Parameters:
[in]PolyOrder- polynomial order
Returns:
a long type with the set number value.

Returns the maximum polynomial order for the line collocation points.

Returns:
Maximum polynomial order as an unsigned long.
unsigned long LineCollocationPoints::GetNumberCollocationPoints ( unsigned long  PolyOrder,
long &  CollocationPointsSetNumber 
)

Returns the number of collocation points for the given polynomial order and the collocation point set where they are stored.

Parameters:
[in]PolyOrder- polynomial order for which the number of collocation points is requested.
[out]CollocationPointsSetNumber- number of the set where the collocation poins are stored.
Returns:
an unsigned long type with the number of collocation points.

Returns the number of collocation points sets stored in the class.

Returns:
an unsigned long with value the number of collocation points sets.

Returns the total number of collocation points.

Returns:
an unsigned long with value the total number of collocation points.
LineCollocationPoints & LineCollocationPoints::operator= ( LineCollocationPoints Instance)

Copies the contents of instance to the object.

Parameters:
[in]Instance- instance of the LineCollocationPoints class
void LineCollocationPoints::Print ( FILE *  File)

Prints the line collocation coordinates in the given ascii file.

Parameters:
[in]File- pointer to the ascii file
void LineCollocationPoints::RunCollocationPointsCoords ( collocationPointsAttributes_S CPAttributes,
BuiltInArray< unsigned long > &  PolyOrder 
)

Calculates the line collocation points coordinates.

Parameters:
[in]CPAttributes- attributes for the collocation points
[in]PolyOrder- array with polynomial orders in ascending sequence
void LineCollocationPoints::SetMaxPolyOrder ( unsigned long  MaxOrder)

Sets the maximum polynomial order for the line collocation points.

Parameters:
[in]MaxOrder- maximum polynomial order.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines