Mesh
GEMPIC.OneDGrid — TypeTwoDGrid( xmin, xmax, nx, ymin, ymax, ny )Simple structure to store mesh data from 2 dimensions
GEMPIC.TwoDGrid — TypeTwoDGrid( dimx, nx, dimy, ny)Generate a cartesians mesh on rectangle dimxx dimy with nx x ny points
nx: indices are in [1:nx]ny: indices are in [1:ny]dimx = xmax - xmindimy = ymax - yminx, y: node positionsdx, dy: step size
GEMPIC.get_cell_and_offset — Methodget_cell_and_offset( mesh, x )Get cell and offset
We compute the cell indices where the particle is and its relative normalized position inside the cell
GEMPIC.get_x — Methodget_x( mesh, i )Get position