def __init__(self, name, coordinates, field_strength):
# set unique label for loop object
self.name = name
# Load in cartesian coordinates, assign units as centimeters
self.coordinates = coordinates*u.cm
# Load in field strength along the field line; convert from Tesla to Gauss
self.field_strength = (np.array(field_strength)*u.T).to(u.Gauss)
评论列表
文章目录