desc.coils.MixedCoilSet
- class desc.coils.MixedCoilSet(*coils, name='')Source
Set of coils or coilsets of different geometry.
- Parameters:
coils (Coil or array-like of Coils) – collection of coils
currents (float or array-like of float) – currents in each coil, or a single current shared by all coils in the set
name (str) – name of this CoilSet
Methods
append(value)S.append(value) -- append value to the end of the sequence
clear()compute(names[, grid, params, transforms, data])Compute the quantity given by name on grid, for each coil in the coilset.
compute_Bnormal(surface[, eval_grid, ...])Compute Bnormal from self on the given surface.
compute_magnetic_field(coords[, params, ...])Compute magnetic field at a set of points.
copy([deepcopy])Return a (deep)copy of this object.
count(value)eq(other)Compare equivalence between DESC objects.
extend(values)S.extend(iterable) -- extend sequence by appending elements from the iterable
flip(*args, **kwargs)Flip the coils across a plane.
from_makegrid_coilfile(coil_file[, method])Create a CoilSet of SplineXYZCoils from a MAKEGRID-formatted coil txtfile.
from_symmetry(coils, NFP[, sym])Create a coil group by reflection and symmetry.
index(value, [start, [stop]])Raises ValueError if the value is not present.
insert(i, new_item)Insert a new coil into the coilset at position i.
linspaced_angular(coil[, current, axis, ...])Create a coil set by repeating a coil n times rotationally.
linspaced_linear(coil[, current, ...])Create a coil group by repeating a coil n times in a straight line.
load(load_from[, file_format])Initialize from file.
pop([index])Raise IndexError if list is empty or index is out of range.
remove(value)S.remove(value) -- remove first occurrence of value.
reverse()S.reverse() -- reverse IN PLACE
rotate(*args, **kwargs)Rotate the coils about an axis.
save(file_name[, file_format, file_mode])Save the object.
save_BNORM_file(surface, fname[, basis_M, ...])Create BNORM-style .txt file containing Bnormal Fourier coefficients.
save_in_makegrid_format(coilsFilename[, ...])Save CoilSet as a MAKEGRID-formatted coil txtfile.
to_FourierXYZ([N, grid, s, name])Convert all coils to FourierXYZCoil representation.
to_SplineXYZ([knots, grid, method, name])Convert all coils to SplineXYZCoil.
translate(*args, **kwargs)Translate the coils along an axis.
Attributes
coils in the coilset.
currents in each coil.
Name of the curve.