class Backend_JIT:
Static Method | worker |
Applies the Biot-Savart law for calculating the magnetic flux density (B-field) or vector potential (A-field) for a single sampling volume point. |
Method | __init__ |
Initializes the class attributes. |
Method | get_result |
Calculates the field at every point of the sampling volume. |
Instance Variable | _current_elements |
Undocumented |
Instance Variable | _dc |
Undocumented |
Instance Variable | _distance_limit |
Undocumented |
Instance Variable | _field_type |
Undocumented |
Instance Variable | _length_scale |
Undocumented |
Instance Variable | _progress_callback |
Undocumented |
Instance Variable | _sampling_volume_permeabilities |
Undocumented |
Instance Variable | _sampling_volume_points |
Undocumented |
Parameters | |
field_type:int | Field type |
distance_limit:float | Distance limit (mitigating divisions by zero) |
length_scale:float | Length scale (m) |
current_elements:np.ndarray | Ordered list of current elements (pairs: [element center, element direction]) |
sampling_volume_point:np.ndarray | Sampling volume point |
Returns | |
Optional[ | (Total # of calculations, total # of skipped calculations, vector) |
Parameters | |
field_type:int | Field type |
distance_limit:float | Distance limit (mitigating divisions by zero) |
length_scale:float | Length scale (m) |
dc:float | Wire current (A) |
current_elements:np.ndarray | Ordered list of current elements (pairs: [element center, element direction]) |
sampling_volume_points:np.ndarray | Ordered list of sampling volume points |
sampling_volume_permeabilities:np.ndarray | Ordered list of sampling volume's relative permeabilities ยต_r |
progress_callback:Callable | Progress callback |