simulation_output_factory module

Define a class to easily generate the SimulationOutput.

class SimulationOutputFactoryEnvelope3D(_is_3d, _is_multipart, _solver_id, _beam_kwargs, out_folder)[source]

Bases: SimulationOutputFactory

A class for creating simulation outputs for Envelope3D.

Parameters:
out_folder: Path
__post_init__()[source]

Create the factories.

The created factories are TransferMatrixFactory and BeamParametersFactory. The sub-class that is used is declared in _transfer_matrix_factory_class() and _beam_parameters_factory_class().

Return type:

None

property _transfer_matrix_factory_class: ABCMeta

Give the class of the transfer matrix factory.

property _beam_parameters_factory_class: ABCMeta

Give the class of the beam parameters factory.

run(elts, single_elts_results, set_of_cavity_settings)[source]

Transform the outputs of BeamCalculator to a SimulationOutput.

Todo

Patch in transfer matrix to get proper input transfer matrix. In future, input beam will not hold transf mat in anymore.

Parameters:
Return type:

SimulationOutput

__init__(_is_3d, _is_multipart, _solver_id, _beam_kwargs, out_folder)
Parameters:
Return type:

None

_abc_impl = <_abc._abc_data object at 0x76a867907a80>