IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.UnstructuredMesh2d Class Reference

Unstructured mesh in 2D. More...

Public Member Functions

 UnstructuredMesh2d ()
 Constructs a new empty 2D (unconnected) unstructured grid (no elements contained) with no name and no description. More...
 
 UnstructuredMesh2d (int length)
 Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated. More...
 
 UnstructuredMesh2d (int length, string fieldName)
 Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated. More...
 
 UnstructuredMesh2d (int length, string fieldName, string fieldDescription)
 Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated. More...
 
 UnstructuredMesh2d (int dimx, int dimy, string fieldName, string fieldDescription, double minx, double maxx, double miny, double maxy)
 Constructs a (unconnected) unstructured grid based on 2D regular grid with grid direction parallel to coordinate axes, with specified name and description. Array of elements is allocated. More...
 
 UnstructuredMesh2d (int dimx, int dimy, string fieldName, string fieldDescription, double minxRef, double maxxRef, double minyRef, double maxyRef, IFunc2d fx, IFunc2d fy)
 Constructs an (unconnected) unstructured grid of nodes based on 2D structured grid obtained by transformation of co-ordinates of a regular equidistant grid. Array of elements is allocated. More...
 
void GenerateCoordinates (int dimx, int dimy, double minxRef, double maxxRef, double minyRef, double maxyRef)
 Generates an (unconnected) unstructured grid of nodes based on a 2D regular grid with grid directions parallel to coordinate axes and equidistant nodes in all directions. More...
 
void GenerateCoordinates (int dimx, int dimy, double minxRef, double maxxRef, double minyRef, double maxyRef, IFunc2d fx, IFunc2d fy)
 Generates coordinates of an (unconnected) unstructured grid of points based on coordinates of a structured mesh for a parametric volume according to functions specifying the x, y, and z coordinates in terms of three scalar functions of 3 variables. More...
 

Detailed Description

Unstructured mesh in 2D.

Type used for co-ordinates is vec2.

Contains collections of collections of index, scalar, vector and tensor fields that are created on demand.

$A Igor Jan08 Mar09;

Constructor & Destructor Documentation

IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( )
inline

Constructs a new empty 2D (unconnected) unstructured grid (no elements contained) with no name and no description.

IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( int  length)
inline

Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated.

Elements of the field are arranged in a 2D structured grid.

Parameters
lengthLength of the field (number of grid nodes).
IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( int  length,
string  fieldName 
)
inline

Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated.

Elements of the field are arranged in a 2D structured grid.

Parameters
lengthLength of the field (number of grid nodes).
fieldNameName of the field.
IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( int  length,
string  fieldName,
string  fieldDescription 
)
inline

Constructs a new 2D (unconnected) unstructured grid with the specified size, name and description. Array of elements is allocated.

Elements of the field are arranged in a 2D structured grid.

Parameters
lengthLength of the field (number of grid nodes).
fieldNameName of the field.
fieldDescriptionField description.
IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( int  dimx,
int  dimy,
string  fieldName,
string  fieldDescription,
double  minx,
double  maxx,
double  miny,
double  maxy 
)
inline

Constructs a (unconnected) unstructured grid based on 2D regular grid with grid direction parallel to coordinate axes, with specified name and description. Array of elements is allocated.

Parameters
dimxFirst dimension of the field (number of grid nodes in the first direction).
dimySecond dimension of the field.
fieldNameName of the field.
fieldDescriptionField description.
minxMinimal value of x coordinate of the generated grid.
maxxMaximal value of x coordinate of the generated grid.
minyMinimal value of y coordinate of the generated grid.
maxyMaximal value of y coordinate of the generated grid.
IG.Num.UnstructuredMesh2d.UnstructuredMesh2d ( int  dimx,
int  dimy,
string  fieldName,
string  fieldDescription,
double  minxRef,
double  maxxRef,
double  minyRef,
double  maxyRef,
IFunc2d  fx,
IFunc2d  fy 
)
inline

Constructs an (unconnected) unstructured grid of nodes based on 2D structured grid obtained by transformation of co-ordinates of a regular equidistant grid. Array of elements is allocated.

Parameters
dimxFirst dimension of the field (number of grid nodes in the first direction).
dimySecond dimension of the field.
fieldNameName of the field.
fieldDescriptionField description.
minxRefMinimal value of x coordinate of the generated grid.
maxxRefMaximal value of x coordinate of the generated grid.
minyRefMinimal value of y coordinate of the generated grid.
maxyRefMaximal value of y coordinate of the generated grid.
fxFunction that maps node coordinates of the reference grid to the first node coordinates of the actual grid.
fyFunction that maps node coordinates of the reference grid to the second node coordinates of the actual grid.

Member Function Documentation

void IG.Num.UnstructuredMesh2d.GenerateCoordinates ( int  dimx,
int  dimy,
double  minxRef,
double  maxxRef,
double  minyRef,
double  maxyRef 
)
inline

Generates an (unconnected) unstructured grid of nodes based on a 2D regular grid with grid directions parallel to coordinate axes and equidistant nodes in all directions.

Parameters
dimxDimenson (number of points) in the first generation direction.
dimyDimenson (number of points) in the second generation direction.
minxRefMinimal value of x coordinate of the generated grid.
maxxRefMaximal value of x coordinate of the generated grid.
minyRefMinimal value of y coordinate of the generated grid.
maxyRefMaximal value of y coordinate of the generated grid.
void IG.Num.UnstructuredMesh2d.GenerateCoordinates ( int  dimx,
int  dimy,
double  minxRef,
double  maxxRef,
double  minyRef,
double  maxyRef,
IFunc2d  fx,
IFunc2d  fy 
)
inline

Generates coordinates of an (unconnected) unstructured grid of points based on coordinates of a structured mesh for a parametric volume according to functions specifying the x, y, and z coordinates in terms of three scalar functions of 3 variables.

Coordinates are obtained by mapping individual coordinates of a regular equidistant grid from the reference system.

Parameters
dimxDimenson (number of points) in the first generation direction.
dimyDimenson (number of points) in the second generation direction.
minxRefLower bound for the first parameter in the reference coordinate system.
maxxRefUpper bound for the first parameter in the reference coordinate system.
minyRefLower bound for the second parameter in the reference coordinate system.
maxyRefUpper bound for the second parameter in the reference coordinate system.
fxFunction that maps node coordinates of the reference grid to the first node coordinates of the actual grid.
fyFunction that maps node coordinates of the reference grid to the second node coordinates of the actual grid.

The documentation for this class was generated from the following file: