![]() |
The Open FUSION Toolkit 26.9
An open-source framework for fusion and plasma science and engineering
|

Public Member Functions | |
| __init__ (self, name, sens_mask=False, resistivity_per_length=None, radius=None) | |
| Initialize general coil set. | |
| add_circular_subcoil (self, RZ, scale=None, npoints=None, attr=None, resistivity_per_length=None, radius=None) | |
| Add a circular subcoil to this coil set. | |
| add_subcoil (self, RZ=None, pts=None, scale=None, npoints=None, hdf5_path=None, attr=None, resistivity_per_length=None, radius=None) | |
| Add a subcoil to this V-coil set. | |
| build_coil_XML (self, coil_set) | |
| Build XML structure for this V-coil. | |
| build_XML (self, parent_tag) | |
| Build XML structure for this V-coil. | |
| save_hdf5 (self, h5_group, fallback_name) | |
| Save coil information to HDF5 group. | |
Static Public Member Functions | |
| load_from_xml (coil_elem, fallback_name) | |
| Load coil from XML element. | |
Public Attributes | |
| name = name | |
| radius = radius | |
| list | radius_list = [] |
| resistivity_per_length = resistivity_per_length | |
| list | resistivity_per_length_list = [] |
| sens_mask = sens_mask | |
| list | subcoils = [] |
| __init__ | ( | self, | |
| name, | |||
| sens_mask = False, | |||
| resistivity_per_length = None, | |||
| radius = None ) |
Initialize general coil set.
| name | Name of the coil set |
| sens_mask | Masking flag for coil (if True, coil is masked from sensors) |
| resistivity_per_length | Resistivity per unit length (required if used as Vcoil) |
| radius | Coil radius (required if used as Vcoil) |
| add_circular_subcoil | ( | self, | |
| RZ, | |||
| scale = None, | |||
| npoints = None, | |||
| attr = None, | |||
| resistivity_per_length = None, | |||
| radius = None ) |
Add a circular subcoil to this coil set.
| RZ | [R, Z] position (for circular coils; centered on Z-axis) |
| scale | Scaling factor for coil current (1.0 if not specified) |
| npoints | Number of points for circular coil discretization (default: 181) |
| resistivity_per_length | Resistivity per unit length (required if used as Vcoil) |
| radius | Coil radius (required if used as Vcoil) |
| add_subcoil | ( | self, | |
| RZ = None, | |||
| pts = None, | |||
| scale = None, | |||
| npoints = None, | |||
| hdf5_path = None, | |||
| attr = None, | |||
| resistivity_per_length = None, | |||
| radius = None ) |
Add a subcoil to this V-coil set.
| RZ | [R, Z] position (for circular coils; centered on Z-axis) |
| pts | Array of [x, y, z] positions (for general coils) |
| scale | Scaling factor for coil current (1.0 if not specified) |
| npoints | Number of points |
| hdf5_path | Path to HDF5 dataset containing coil points (alternative to pts and RZ) |
| resistivity_per_length | Resistivity per unit length (required if used as Vcoil) |
| radius | Coil radius (required if used as Vcoil) |
| build_coil_XML | ( | self, | |
| coil_set ) |
Build XML structure for this V-coil.
| coil_set | Coil set XML element to attach to |
| build_XML | ( | self, | |
| parent_tag ) |
Build XML structure for this V-coil.
| parent_tag | Parent XML element to attach to |
|
static |
Load coil from XML element.
| coil_elem | XML element representing the coil_set |
| fallback_name | Fallback name for the coil_set |
| save_hdf5 | ( | self, | |
| h5_group, | |||
| fallback_name ) |
Save coil information to HDF5 group.
| h5_group | HDF5 group to save the coil information into |
| fallback_name | Fallback name for the coil_set |
| name = name |
| radius = radius |
| list radius_list = [] |
| resistivity_per_length = resistivity_per_length |
| list resistivity_per_length_list = [] |
| sens_mask = sens_mask |
| subcoils = [] |