class documentation
Parameters class.
| Method | __init__ |
Initializes parameters class. |
| Method | recalculate |
Recalculates parameters. |
| Method | set |
Sets the parameters |
| Property | energy |
Returns calculated energy. |
| Property | magnetic |
Returns calculated magnetic dipole moment. |
| Property | self |
Returns calculated self-inductance. |
| Static Method | _get |
Returns the (unscaled) magnetic dipole moment vector. |
| Static Method | _get |
Returns the "squared" field scalar. |
| Method | _get |
Returns the magnetic dipole moment scalar. |
| Method | _get |
Returns the "squared" field scalar. |
| Instance Variable | _energy |
Undocumented |
| Instance Variable | _magnetic |
Undocumented |
| Instance Variable | _self |
Undocumented |
Inherited from Validatable:
| Method | valid |
No summary |
| Property | valid |
True if valid, False if invalid |
| Instance Variable | _valid |
Undocumented |
def recalculate(self, wire:
Wire, sampling_volume: SamplingVolume, field: Field, progress_callback: Callable) -> bool:
¶
Recalculates parameters.
| Parameters | |
wire:Wire | Wire |
samplingSamplingVolume | SamplingVolume |
field:Field | Field |
progressCallable | Progress callback |
| Returns | |
bool | True (currently non-interruptable) |
@staticmethod
@ConditionalDecorator( get_jit_enabled(), jit, nopython=True, parallel=True)
def _get_magnetic_dipole_moment_worker(elements_center: @ConditionalDecorator(
np.ndarray, elements_direction: np.ndarray, length_scale: float):
¶
Returns the (unscaled) magnetic dipole moment vector.
| Parameters | |
elementsnp.ndarray | Current element centers |
elementsnp.ndarray | Current element directions |
lengthfloat | Length scale (m) |
| Returns | |
| Magnetic dipole moment vector |
@staticmethod
@ConditionalDecorator( get_jit_enabled(), jit, nopython=True, parallel=True)
def _get_squared_field_worker(sampling_volume_permeabilities: @ConditionalDecorator(
np.ndarray, field_vectors: np.ndarray) -> float:
¶
Returns the "squared" field scalar.
| Parameters | |
samplingnp.ndarray | Ordered list of sampling volume's relative permeabilities µ_r |
fieldnp.ndarray | Ordered list of 3D vectors (B-field) |
| Returns | |
float | Float |
Returns the magnetic dipole moment scalar.
| Parameters | |
wire:Wire | Wire |
lengthfloat | Length scale (m) |
| Returns | |
float | Float |