VERB_code_2.2
2
|
#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 |
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.
void GridElement::Kfunc_equal | ( | GridElement | pc) |
Convert agr to epc. Arg should be pc.
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.
iteratorL | - index on L-grid. |
iteratorPc | - index on pc-grid. |
iteratorAlpha | - index on alpha-grid. |
gridElementDirection | - index on the grid, which we are making. |
Parameters_structure::GridElement GridElement::GridElement_parameters |