VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
GridElement Class Reference

#include <Grid.h>

Public Member Functions

void Kfunc_equal (GridElement arg)
 
void SetRegularGridValue (int il, int im, int ia, int gridElementDirection)
 

Public Attributes

Matrix3D< double > arr
 
bool GridElement_initialized
 
Parameters_structure::GridElement GridElement_parameters
 
int size
 

Detailed Description

Array of values of coordinate axe.

Class for GridElement in parent class Matrix3D holds values of one coordinate from 3-dimentional (usually) coordinate system. Has two BoundaryCondition members: lowerBoundaryCondition and upperBoundaryCondition. Has functions to create girds of different type.

Definition at line 28 of file Grid.h.

Member Function Documentation

void GridElement::Kfunc_equal ( GridElement  pc)

Convert agr to epc. Arg should be pc.

Todo:
Wired function, should be removed.
Parameters
arg- should be pc.

Definition at line 32 of file Grid.cpp.

References arr, VF::Kfunc(), Matrix3D< T >::size_x, Matrix3D< T >::size_y, and Matrix3D< T >::size_z.

void GridElement::SetRegularGridValue ( int  iteratorL,
int  iteratorPc,
int  iteratorAlpha,
int  gridElementDirection 
)

Function return the value for the specified point on regular grid.

Very usefull function, allows to avoid a lot of typos in creation of regular grids everywhere.

Just don't have to repeat regular grid creation code a lot of times. The function create logarithmic grid if useLogScale == true as: 10^(log10(min) + x * (log10(max) - log10(min))/(size-1); if useLogScale == false, then grid is: min + x * (max - min)/(size-1). If grid size == 1 the function returns max.

PS: size, min and max stored in the gridElement already. PPS: useLogScale is also there.

Parameters
iteratorL- index on L-grid.
iteratorPc- index on pc-grid.
iteratorAlpha- index on alpha-grid.
gridElementDirection- index on the grid, which we are making.

Definition at line 59 of file Grid.cpp.

Member Data Documentation

Matrix3D<double> GridElement::arr

Definition at line 30 of file Grid.h.

bool GridElement::GridElement_initialized

Definition at line 33 of file Grid.h.

Parameters_structure::GridElement GridElement::GridElement_parameters

Definition at line 36 of file Grid.h.

int GridElement::size

Definition at line 39 of file Grid.h.


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