hp2FEM  0.1
Public Member Functions | Protected Attributes
GeometricProperties Class Reference

Class used to storage geometric properties for the group of finite elements or, if necessary, for each element present in a group. More...

#include <GeometricProperties.h>

Collaboration diagram for GeometricProperties:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GeometricProperties ()
 Empty Constructor.
 GeometricProperties (unsigned long NumberElements, unsigned long NumberGeometricProperties, BuiltInArray< double > &Properties)
 Constructor with parameters.
 GeometricProperties (GeometricProperties &Instance)
 Copy Constructor.
GeometricPropertiesoperator= (GeometricProperties &Instance)
 Copies the contents of Instance to the current object.
void SetProperties (unsigned long NumberProperties, unsigned long NumberElements, BuiltInArray< double > &Properties)
 Sets the attributes of the GeometricProperties class.
double *const GetProperties (unsigned long ElementNumber, unsigned long &NumberProperties)
 Gets the value of the geometric properties to a certain element.
void Save (FILE *File)
 Writes class information to a binary file.
void Restore (FILE *File)
 Restores class data from a binary file.
void Free ()
 Fees memory area allocated for the GeometricProperties class.
void Read (FILE *DEFFile)
 Reads the geometric properties for each element from the .def ASCII files.
void Print (FILE *File)
 Prints the geometric properties for each element on the ASCII file.

Protected Attributes

unsigned long NumElem
 Number of elements of the group.
unsigned long NumGeoProp
 Number of geometric properties for each element.
BuiltInArray< double > Values
 Values of geometric properties for each element.

Detailed Description

Class used to storage geometric properties for the group of finite elements or, if necessary, for each element present in a group.

Author:
Gilberto Luis Valente da Costa

Constructor & Destructor Documentation

GeometricProperties::GeometricProperties ( unsigned long  NumberElements,
unsigned long  NumberGeometricProperties,
BuiltInArray< double > &  Properties 
)

Constructor with parameters.

Parameters:
[in]NumberElements- The number of elements of the group.
[in]NumberGeometricProperties- The number of geometric properties for each element.
[in]Properties- The Values of geometric properties for each element.

Copy Constructor.

Parameters:
[in]Instance- instance of GeometricProperties which data will be copied to the current object.

Member Function Documentation

double *const GeometricProperties::GetProperties ( unsigned long  ElementNumber,
unsigned long &  NumberProperties 
)

Gets the value of the geometric properties to a certain element.

Parameters:
[in]ElementNumber - Element number to which will be returned the value of the geometric properties.
[out]NumberProperties- number of geometric properties.
GeometricProperties & GeometricProperties::operator= ( GeometricProperties Instance)

Copies the contents of Instance to the current object.

Parameters:
[in]Instance- instance of GeometricProperties which data will be copied to the current object.
Returns:
Reference to the current object.
void GeometricProperties::Print ( FILE *  File)

Prints the geometric properties for each element on the ASCII file.

Parameters:
[in]File- pointer to the ASCII file.
void GeometricProperties::Read ( FILE *  DEFFile)

Reads the geometric properties for each element from the .def ASCII files.

Parameters:
[in]DEFFile- pointer to the ASCII file.
void GeometricProperties::Restore ( FILE *  File)

Restores class data from a binary file.

Parameters:
[in]File- pointer to the binary file.
void GeometricProperties::Save ( FILE *  File)

Writes class information to a binary file.

Parameters:
[in]File- Pointer to the file.
void GeometricProperties::SetProperties ( unsigned long  NumberProperties,
unsigned long  NumberElements,
BuiltInArray< double > &  Properties 
)

Sets the attributes of the GeometricProperties class.

Parameters:
[in]NumberProperties- The number of geometric properties for ach element.
[in]NumberElements- The number of elements of the group.
[in]Properties- The Values of geometric properties for each element.

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