coilpy.current_potential#

class coilpy.current_potential.Regcoil(filename, mmap=False, version=1, maskandscale=False)[source]#

Bases: Netcdf

bfield(pos, fortran=True)[source]#
bfield_cyl(rpz)[source]#
compute_bn()[source]#

Compute B_surface_current cdot n on the plasma surface

Returns:

a 2D array containing Bn information. Dimension: Ntheta x Nzeta

Return type:

numpy.ndarray

get_k(ilambda=0)[source]#

Compute the surface current density on the coil surface Following Eq. A.13 in Landreman Nucl. Fusion 57 (2017) 046003

Parameters:

ilambda (int, optional) – The lambda index in the REGCOIL solution. Defaults to 0.

Returns:

A 3D array containing the current desity information. Dimension: 3 x Ntheta x Nzeta

Return type:

numpy.ndarray