element_parameters module
Define a class to hold solver parameters for CyEnvelope1D.
Almost everything is inherited from the python version of the module. The main difference is that with the Cython version, we give the transfer matrix function the name of the field map.
- class ElementCyEnvelope1DParameters(length_m, n_steps, beam_kwargs, transf_mat_function=None, **kwargs)[source]
Bases:
ElementEnvelope1DParametersHold the parameters to compute beam propagation in an Element.
hasandgetmethod inherited fromElementBeamCalculatorParametersparent class.- Parameters:
- __init__(length_m, n_steps, beam_kwargs, transf_mat_function=None, **kwargs)[source]
Set the actually useful parameters.
- _proper_transfer_matrix_func(element_nature, method=None)[source]
Get the proper transfer matrix function.
- _abc_impl = <_abc._abc_data object at 0x7921a4f54240>
- class DriftCyEnvelope1DParameters(elt, beam_kwargs, n_steps=1, **kwargs)[source]
Bases:
DriftEnvelope1DParameters,ElementCyEnvelope1DParametersHold the properties to compute transfer matrix of a
Drift.As this is 1D, it is also used for
Solenoid,Quad, brokenFieldMap.- Parameters:
elt (
Element)beam_kwargs (
BeamKwargs)n_steps (
int, default:1)
- _abc_impl = <_abc._abc_data object at 0x7921a4f54300>
- class FieldMapCyEnvelope1DParameters(elt, method, n_steps_per_cell, solver_id, beam_kwargs, phi_s_model='historical', **kwargs)[source]
Bases:
FieldMapEnvelope1DParameters,ElementCyEnvelope1DParametersHold the properties to compute transfer matrix of a
FieldMap.Non-accelerating cavities will use
DriftEnvelope1DParametersinstead.- Parameters:
- __init__(elt, method, n_steps_per_cell, solver_id, beam_kwargs, phi_s_model='historical', **kwargs)[source]
Set the name of the field map and init base class.
- _abc_impl = <_abc._abc_data object at 0x7921a4f54280>
- class SuperposedFieldMapCyEnvelope1DParameters(*args, **kwargs)[source]
Bases:
SuperposedFieldMapEnvelope1DParameters,ElementCyEnvelope1DParametersHold properties to compute transfer matrix of
SuperposedFieldMap.- __init__(*args, **kwargs)[source]
Create the specific parameters for a superposed field map.
- Return type:
None
- _abc_impl = <_abc._abc_data object at 0x7921a4f541c0>
- class BendCyEnvelope1DParameters(elt, beam_kwargs, n_steps=1, **kwargs)[source]
Bases:
BendEnvelope1DParameters,ElementCyEnvelope1DParametersHold the specific parameters to compute
Bendtransfer matrix.In particular, we define
factor_1,factor_2andfactor_3to speed-up calculations.- Parameters:
elt (
Bend)beam_kwargs (
BeamKwargs)n_steps (
int, default:1)
- _abc_impl = <_abc._abc_data object at 0x7921a4771b80>