DispoHypParam Struct Reference

Disposition by hyperbolical functions, scope: Global3D, Domain3D, Grid2D. More...

#include <aigrid.h>

List of all members.

Public Member Functions

 DispoHypParam (int iMax, double A, double B, double linSt, double linEn, double linCen)

Public Attributes

int m_iMax
 number of cells
double m_A
 hyperbolical start
double m_B
 hyperbolical end
double m_linSt
 linear distribution at start
double m_linEn
 linear distribution at end
double m_linCen
 linear distribution at position of maximum derivative

Detailed Description

Disposition by hyperbolical functions, scope: Global3D, Domain3D, Grid2D.

The distribution of points along a definition line is managed by hyperbolic tangent functions.


First the section between AiDispoHypParam::m_A(-1.6) and AiDispoHypParam::m_B(2.0) will be taken from the hyperbolic tangent function (picture hyperbolic tangent), then this section will be made nondimensional along the abscissa (picture dimensionless in abscissa).


Then at the beginning DispoHypParam::m_linSt(0.1), at the end DispoHypParam::m_linEn(0.15) and at the position of maximum derivative DispoHypParam::m_linCen(0.2) a linear section of claimed length will be inserted. Afterwards the abscissa and the ordinate will be made dimensionless as well. Find the result in picture with linear regions, and the corresponding derivative in picture derivative.


Applied on a Bezier-PointChain:
PointChain2D BezTemplate : PointChain2D(AI_Bez3,DHP,Vec2D(0,0),Vec2D(0.5,0.2),Vec2D(1,0))
will result in

Generated on Thu Jul 29 10:53:07 2010 for AiGrid by  doxygen 1.4.6-NO