pleiades.compute_greens¶
-
pleiades.compute_greens(R, Z, rzdir=None, nprocs=1)[source]¶ Compute Green’s functions for psi, BR, and BZ
Parameters: - R (np.array) – A 1D np.array representing the R positions of the grid
- Z (np.array) – A 1D np.array representing the Z positions of the grid
- rzdir (np.array) – An Nx3 np.array representing the r, z positions and sign of the current in all the current filaments.
- out_q (multiprocessing.Queue object?) – Internally used for faster processing of Green’s functions
- out_idx (int?) – Internally used for faster processing of Green’s functions
Returns: out_tup – Tuple of 3 elements (gpsi, gBR, gBZ) for the 3 Green’s functions
Return type: