class documentation

class Parameters(Validatable):

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
Property valid True if valid, False if invalid
Instance Variable _valid Undocumented
def __init__(self):
Initializes parameters class.
@validator
def recalculate(self, wire, sampling_volume, field, progress_callback):
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, elements_direction, length_scale):
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, field_vectors):
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, length_scale):
Returns the magnetic dipole moment scalar.
Parameters
wire:WireWire
length_scale:floatLength scale (m)
Returns
floatFloat
def _get_squared_field(self, sampling_volume, field):
Returns the "squared" field scalar.
Parameters
sampling_volume:SamplingVolumeSamplingVolume
field:FieldB-field
Returns
floatFloat
_energy =

Undocumented

_magnetic_dipole_moment =

Undocumented

_self_inductance =

Undocumented