class Field(Validatable):
Static Method | get_arrows |
Returns the field arrow parameters needed by VisPyCanvas . |
Method | __init__ |
Initializes a field. |
Method | get_units |
Gets field units. |
Method | recalculate |
Recalculates field vectors. |
Method | set |
Sets the parameters. |
Instance Variable | type |
Undocumented |
Property | total_calculations |
Gets total number of calculations. |
Property | total_skipped_calculations |
Gets total number of skipped calculations. |
Property | vectors |
Gets field vectors. (The selected field type determined which field was calculated.) |
Property | vectors_count |
Number of field vectors |
Instance Variable | _distance_limit |
Undocumented |
Instance Variable | _length_scale |
Undocumented |
Instance Variable | _total_calculations |
Undocumented |
Instance Variable | _total_skipped_calculations |
Undocumented |
Instance Variable | _vectors |
Undocumented |
Inherited from Validatable
:
Method | valid.setter |
|
Property | valid |
True if valid, False if invalid |
Instance Variable | _valid |
Undocumented |
VisPyCanvas
.Parameters | |
sampling_volume_points:np.ndarray | Sampling volume points |
field_vectors:np.ndarray | Field vectors |
line_pairs:np.ndarray | Arrow line pairs (ordered list of arrow start/stop 3D points) |
head_points:np.ndarray | Arrow head points (ordered list of arrow stop 3D points) |
arrow_scale:float | Arrow scale |
magnitude_limit:float | Magnitude limit (mitigating divisions by zero) |
Returns | |
Tuple[ | Line pairs, head points |
Parameters | |
show_gauss | Enable to show Gauss instead of Tesla |
Returns | |
Tuple[ | Field units, field factor |
Parameters | |
wire:Wire | Wire |
sampling_volume:SamplingVolume | Sampling volume |
progress_callback:Callable | Progress callback |
num_cores:int | Number of cores to use for multiprocessing |
backend_type:int | Backend type |
Returns | |
bool | True if successful, False if interrupted (CUDA backend currently not interruptable) |
Parameters | |
type:int | Field type |
distance_limit:float | Distance limit (mitigating divisions by zero) |
length_scale:float | Length scale (m) |