levisim.multiphysics.multitrap.omega_model¶
Models for the x and y mechanical frequencies of a toy-parameter MultiTrap (ΩModel)
- class levisim.multiphysics.multitrap.omega_model.ΩModel(kind='pairs', **params)[source]¶
Bases:
objectModel for the x and y mechanical frequencies of a toy-parameter MultiTrap
Kinds and their parameters (defaults in KINDS), filling the x, y labels in order:
'pairs' Ω_first, Ω_intrapair_gap, Ω_interpair_gap - x,y of each bead split by the intrapair gap, beads split by the interpair gap, descending (copies Tania's ParametersNpair.f90) 'equal spacing: simple' Ω_start, Ω_gap - descending in steps of Ω_gap 'equal spacing' Ω_mid, Ω_span - ascending, evenly filling Ω_mid ± Ω_span/2 (after the 'Mechanical Mode Comb' paper) 'degenerate' Ω0 - every frequency equal 'multiband' Ω_centers, Ω_spans - the labels are shared out over the bands in order (any remainder to the first bands) and each band is filled evenly across center ± span/2, or sits at its center if it holds one 'custom' toy_Ωjn_dict - {label: Ω} given directly (z labels too if 3 axes)z frequencies (3 axes) are not part of the model: MultiTrap sets Ωz = Ωx / Ωz_to_Ωx_multiplier for every kind except ‘custom’. A model can be passed to MultiTrap as toy_params[‘Ω_model’], or given the legacy way as the kind string plus its parameters in the same toy_params dict. [2π·Hz]
- KINDS = {'custom': {'toy_Ωjn_dict': None}, 'degenerate': {'Ω0': 1884955.5921538759}, 'equal spacing': {'Ω_mid': 1884955.5921538759, 'Ω_span': 628318.5307179586}, 'equal spacing: simple': {'Ω_gap': 31415.92653589793, 'Ω_start': 1884955.5921538759}, 'multiband': {'Ω_centers': None, 'Ω_spans': None}, 'pairs': {'Ω_first': 1884955.5921538759, 'Ω_interpair_gap': 94247.77960769378, 'Ω_intrapair_gap': 9424.77796076938}}¶
- classmethod from_toy_params(toy_params)[source]¶
Builds the model from a toy_params dict: toy_params[‘Ω_model’] is either an ΩModel, or a kind string whose parameters are read from the same dict (other keys are ignored)
- as_toy_params()[source]¶
The legacy toy_params form,
dict(Ω_model=kind, **parameters), for splatting into toy_params
- frequencies(labels)[source]¶
{label: Ω} for every x and y label in labels (z labels are skipped, except for ‘custom’, which returns a copy of toy_Ωjn_dict as given) [2π·Hz]
- property description¶
The model’s parameters, one indented line each, as printed in MultiTrap.toy_params_info_str
- property info_str¶
String describing the ΩModel instance
- property info¶
Prints information on the ΩModel instance