class documentation

class Parameters(Validatable):

Constructor: Parameters()

View In Hierarchy

Parameters class.

Method __init__ Initializes parameters class.
Method recalculate Recalculates parameters.
Method set Sets the parameters
Property energy Returns calculated energy.
Property magnetic_dipole_moment Returns calculated magnetic dipole moment.
Property self_inductance Returns calculated self-inductance.
Static Method _get_magnetic_dipole_moment_worker Returns the (unscaled) magnetic dipole moment vector.
Static Method _get_squared_field_worker Returns the "squared" field scalar.
Method _get_magnetic_dipole_moment Returns the magnetic dipole moment scalar.
Method _get_squared_field Returns the "squared" field scalar.
Instance Variable _energy Undocumented
Instance Variable _magnetic_dipole_moment Undocumented
Instance Variable _self_inductance Undocumented

Inherited from Validatable:

Method valid.setter No summary
Property valid True if valid, False if invalid
Instance Variable _valid Undocumented
def __init__(self):

Initializes parameters class.

def recalculate(self, wire: Wire, sampling_volume: SamplingVolume, field: Field, progress_callback: Callable) -> bool:

Recalculates parameters.

Parameters
wire:WireWire
sampling_volume:SamplingVolumeSamplingVolume
field:FieldField
progress_callback:CallableProgress callback
Returns
boolTrue (currently non-interruptable)
def set(self, *args, **kwargs):

Sets the parameters

@property
@require_valid
energy: float =

Returns calculated energy.

@property
@require_valid
magnetic_dipole_moment: float =

Returns calculated magnetic dipole moment.

@property
@require_valid
self_inductance: float =

Returns calculated self-inductance.

@staticmethod
@ConditionalDecorator(get_jit_enabled(), jit, nopython=True, parallel=True)
def _get_magnetic_dipole_moment_worker(elements_center: np.ndarray, elements_direction: np.ndarray, length_scale: float):

Returns the (unscaled) magnetic dipole moment vector.

Parameters
elements_center:np.ndarrayCurrent element centers
elements_direction:np.ndarrayCurrent element directions
length_scale:floatLength 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: np.ndarray, field_vectors: np.ndarray) -> float:

Returns the "squared" field scalar.

Parameters
sampling_volume_permeabilities:np.ndarrayOrdered list of sampling volume's relative permeabilities µ_r
field_vectors:np.ndarrayOrdered list of 3D vectors (B-field)
Returns
floatFloat
def _get_magnetic_dipole_moment(self, wire: Wire, length_scale: float) -> float:

Returns the magnetic dipole moment scalar.

Parameters
wire:WireWire
length_scale:floatLength scale (m)
Returns
floatFloat
def _get_squared_field(self, sampling_volume: SamplingVolume, field: Field) -> float:

Returns the "squared" field scalar.

Parameters
sampling_volume:SamplingVolumeSamplingVolume
field:FieldB-field
Returns
floatFloat
_energy: float =

Undocumented

_magnetic_dipole_moment: float =

Undocumented

_self_inductance: float =

Undocumented