simulation_output_factory module
Define a class to easily generate the SimulationOutput.
- class SimulationOutputFactoryEnvelope1D(_is_3d: bool, _is_multipart: bool, _solver_id: str, _beam_kwargs: dict[str, Any], out_folder: Path)
Bases:
SimulationOutputFactoryA class for creating simulation outputs for
Envelope1D.- __post_init__() None
Create the factories.
The created factories are
TransferMatrixFactoryandBeamParametersFactory. The sub-class that is used is declared in_transfer_matrix_factory_class()and_beam_parameters_factory_class().
- run(elts: ListOfElements, single_elts_results: list[dict], set_of_cavity_settings: SetOfCavitySettings) SimulationOutput
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.
- __init__(_is_3d: bool, _is_multipart: bool, _solver_id: str, _beam_kwargs: dict[str, Any], out_folder: Path) None
- _abc_impl = <_abc._abc_data object at 0x7f36f9604e80>