VERB_code_2.3
GridElement Class Reference

Array of values of coordinate axes. More...

#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
 array of grid points
 
bool GridElement_initialized
 initialized flag
 
Parameters_structure::GridElement GridElement_parameters
 parameters for grid element
 
int size
 size of grid element
 

Detailed Description

Array of values of coordinate axes.

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

Definition at line 28 of file Grid.h.

Member Function Documentation

void GridElement::Kfunc_equal ( GridElement  pc)

Convert pc to epc (kinetic energy).

Parameters
pc- pc.

Definition at line 30 of file Grid.cpp.

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

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

Very useful 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 57 of file Grid.cpp.


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