VERB_code_2.3
|
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 | |
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.
void GridElement::Kfunc_equal | ( | GridElement | pc | ) |
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.
iteratorL | - index on L-grid. |
iteratorPc | - index on pc-grid. |
iteratorAlpha | - index on alpha-grid. |
gridElementDirection | - index on the grid, which we are making. |