coilpy#
This is a python package for plotting and data processing in stellarator optimization.
It contains several python functions on HDF5, Fourier surfaces, FOCUS, cois, magnetic dipoles, STELLOPT, VMEC, BOOZ_XFORM, etc.
The repository is available at zhucaoxiang/CoilPy.
For full documenation, please check https://zhucaoxiang.github.io/CoilPy/api/coilpy.html.
Submodules#
- coilpy.booz_xform
- coilpy.coils
Coil
SingleCoil
SingleCoil.x
SingleCoil.Args
SingleCoil.bfield()
SingleCoil.bfield_HH()
SingleCoil.bfield_fd()
SingleCoil.biot_savart()
SingleCoil.fourier_tangent()
SingleCoil.hanson_hirshman()
SingleCoil.interpolate()
SingleCoil.magnify()
SingleCoil.plot()
SingleCoil.plot2d()
SingleCoil.rectangle()
SingleCoil.spline_tangent()
SingleCoil.toVTK()
- coilpy.current_potential
- coilpy.dipole
Dipole
Dipole.bfield()
Dipole.change_momentq()
Dipole.from_regcoil()
Dipole.full_period()
Dipole.inverse()
Dipole.mimic()
Dipole.open()
Dipole.orientation()
Dipole.plot()
Dipole.plot_rho_profile()
Dipole.read_dipole_old()
Dipole.round_angle()
Dipole.save()
Dipole.sp2xyz()
Dipole.toVTK()
Dipole.truncate()
Dipole.volume()
Dipole.xyz2sp()
GAdipole
- coilpy.focushdf5
- coilpy.hdf5
- coilpy.magnet
- coilpy.magtense_interface
- coilpy.mgrid
- coilpy.misc
biot_savart()
booz2focus()
colorbar()
div0()
fft_deriv()
get_figure()
kwargs2dict()
map_matrix()
poincare_plot()
print_progress()
read_focus_boundary()
real2trig_2d()
rotation_angle()
rotation_matrix()
scan_focus()
set_axes_equal()
toroidal_period()
tracing()
trig2real()
trigfft()
trigfft2()
vmec2focus()
vmecMN()
write_focus_boundary()
xy2rp()
- coilpy.netcdf
- coilpy.pm4stell
- coilpy.sortedDict
SortedDict
SortedDict.across()
SortedDict.changeKeysCase()
SortedDict.check_location()
SortedDict.clear()
SortedDict.copy()
SortedDict.diff()
SortedDict.diffKeys()
SortedDict.flatten()
SortedDict.get()
SortedDict.index()
SortedDict.insert()
SortedDict.items()
SortedDict.iteritems()
SortedDict.iterkeys()
SortedDict.itervalues()
SortedDict.keys()
SortedDict.moveDown()
SortedDict.moveUp()
SortedDict.pop()
SortedDict.popitem()
SortedDict.safe_del()
SortedDict.setFlat()
SortedDict.setdefault()
SortedDict.sort()
SortedDict.sort_class()
SortedDict.traverse()
SortedDict.update()
SortedDict.value_for_index()
SortedDict.values()
SortedDict.walk()
buildLocation()
dynaLoad()
dynaLoadKey()
dynaSave()
get_bases()
parseBuildLocation()
parseLocation()
pretty_diff()
prune_mask()
recursiveUpdate()
setLocation()
size_tree_objects()
sortHuman()
traverse()
traverseLocation()
treeLocation()
- coilpy.stellopt
- coilpy.surface
FourSurf
FourSurf.change_poloidal_angle()
FourSurf.get_area()
FourSurf.get_volume()
FourSurf.grid_box()
FourSurf.plot()
FourSurf.plot3d()
FourSurf.read_focus_input()
FourSurf.read_spec_input()
FourSurf.read_spec_output()
FourSurf.read_vmec_input()
FourSurf.read_vmec_output()
FourSurf.read_winding_surfce()
FourSurf.rz()
FourSurf.toSTL()
FourSurf.toVTK()
FourSurf.write_focus_input()
FourSurf.write_vmec_input()
FourSurf.xyz()
- coilpy.vmec