FDTD_Solver.pos_to_idx

rfnetwork.solver.FDTD_Solver.pos_to_idx

FDTD_Solver.pos_to_idx(position, mode='edge')

Returns the index of the grid edge or cell center that is directly on or just past (in +x, +y and +z directions) the given position.