simba.Codes package
Subpackages
- simba.Codes.ASTRA package
- Submodules
- simba.Codes.ASTRA.ASTRA module
astraLatticeastraLattice.allow_negative_driftsastraLattice.astra_to_hdf5()astraLattice.bunch_chargeastraLattice.codeastraLattice.find_ASTRA_filename()astraLattice.get_screen_scaling()astraLattice.hdf5_to_astra()astraLattice.headersastraLattice.postProcess()astraLattice.preProcess()astraLattice.ref_sastraLattice.sample_intervalastraLattice.screen_threaded_functionastraLattice.space_charge_modeastraLattice.starting_offsetastraLattice.starting_rotationastraLattice.toffsetastraLattice.write()astraLattice.zstepastraLattice.zstop
- simba.Codes.ASTRA.ASTRARules module
- Module contents
- simba.Codes.CSRTrack package
- Submodules
- simba.Codes.CSRTrack.CSRTrack module
csrtrackLatticecsrtrackLattice.CSRTrackelementObjectscsrtrackLattice.codecsrtrackLattice.csrtrack_to_hdf5()csrtrackLattice.dipoles_screens_and_bpmscsrtrackLattice.hdf5_to_astra()csrtrackLattice.particle_definitioncsrtrackLattice.postProcess()csrtrackLattice.preProcess()csrtrackLattice.setCSRMode()csrtrackLattice.set_particles_filename()csrtrackLattice.write()csrtrackLattice.writeElements()
- Module contents
- simba.Codes.Cheetah package
- Submodules
- simba.Codes.Cheetah.Cheetah module
cheetahLatticecheetahLattice.cheetahglobalcheetahLattice.codecheetahLattice.hdf5_to_openpmd()cheetahLattice.particle_definitioncheetahLattice.pincheetahLattice.postProcess()cheetahLattice.poutcheetahLattice.preProcess()cheetahLattice.ref_idxcheetahLattice.ref_scheetahLattice.run()cheetahLattice.screen_threaded_functioncheetahLattice.segmentcheetahLattice.trackBeamcheetahLattice.twscheetahLattice.write()cheetahLattice.writeElements()
- simba.Codes.Cheetah.cheetah_conversion module
- Module contents
- simba.Codes.Elegant package
- Submodules
- simba.Codes.Elegant.Elegant module
elegantCommandFileelegantLatticeelegantLattice.allow_negative_driftselegantLattice.alphaxelegantLattice.alphayelegantLattice.betaxelegantLattice.betayelegantLattice.bunch_chargeelegantLattice.codeelegantLattice.commandFileselegantLattice.commandFilesOrderelegantLattice.createCommandFiles()elegantLattice.elegantCommandFile()elegantLattice.final_screenelegantLattice.hdf5_to_sdds()elegantLattice.particle_definitionelegantLattice.postProcess()elegantLattice.preProcess()elegantLattice.processElementErrors()elegantLattice.processElementScan()elegantLattice.processRunSettings()elegantLattice.qelegantLattice.ref_idxelegantLattice.run()elegantLattice.screen_threaded_functionelegantLattice.sdds_to_hdf5()elegantLattice.trackBeamelegantLattice.write()elegantLattice.writeElements()
elegantOptimisationelegant_error_elements_commandelegant_error_elements_command.elementErrorselegant_error_elements_command.error_logelegant_error_elements_command.latticeelegant_error_elements_command.no_errors_for_first_stepelegant_error_elements_command.nrunselegant_error_elements_command.objectnameelegant_error_elements_command.objecttype
elegant_floor_coordinates_commandelegant_floor_coordinates_command.X0elegant_floor_coordinates_command.Y0elegant_floor_coordinates_command.Z0elegant_floor_coordinates_command.filenameelegant_floor_coordinates_command.latticeelegant_floor_coordinates_command.magnet_centerselegant_floor_coordinates_command.objectnameelegant_floor_coordinates_command.objecttypeelegant_floor_coordinates_command.theta0elegant_floor_coordinates_command.x0elegant_floor_coordinates_command.y0elegant_floor_coordinates_command.z0
elegant_global_settings_commandelegant_global_settings_command.inhibit_fsyncelegant_global_settings_command.mpi_io_force_file_syncelegant_global_settings_command.mpi_io_read_buffer_sizeelegant_global_settings_command.mpi_io_write_buffer_sizeelegant_global_settings_command.objectnameelegant_global_settings_command.objecttypeelegant_global_settings_command.usleep_mpi_io_kludge
elegant_matrix_output_commandelegant_matrix_output_command.SDDS_outputelegant_matrix_output_command.SDDS_output_orderelegant_matrix_output_command.full_matrix_onlyelegant_matrix_output_command.objectnameelegant_matrix_output_command.objecttypeelegant_matrix_output_command.sdds_outputelegant_matrix_output_command.sdds_output_order
elegant_run_control_commandelegant_run_setup_commandelegant_run_setup_command.always_change_p0elegant_run_setup_command.centroidelegant_run_setup_command.default_orderelegant_run_setup_command.latticeelegant_run_setup_command.lattice_filenameelegant_run_setup_command.objectnameelegant_run_setup_command.objecttypeelegant_run_setup_command.pcentralelegant_run_setup_command.s_startelegant_run_setup_command.seedelegant_run_setup_command.sigma
elegant_scan_elements_commandelegant_scan_elements_command.enumeration_columnelegant_scan_elements_command.enumeration_fileelegant_scan_elements_command.index_numberelegant_scan_elements_command.itemelegant_scan_elements_command.latticeelegant_scan_elements_command.multiplicativeelegant_scan_elements_command.nameelegant_scan_elements_command.nrunselegant_scan_elements_command.objectnameelegant_scan_elements_command.objecttype
elegant_sdds_beam_commandelegant_track_commandelegant_twiss_output_commandelegant_twiss_output_command.alpha_xelegant_twiss_output_command.alpha_yelegant_twiss_output_command.beamelegant_twiss_output_command.beta_xelegant_twiss_output_command.beta_yelegant_twiss_output_command.eta_xelegant_twiss_output_command.eta_xpelegant_twiss_output_command.filenameelegant_twiss_output_command.matchedelegant_twiss_output_command.objectnameelegant_twiss_output_command.objecttypeelegant_twiss_output_command.output_at_each_stepelegant_twiss_output_command.radiation_integralselegant_twiss_output_command.statistics
sddsFile
- Module contents
- simba.Codes.GPT package
- Submodules
- simba.Codes.GPT.GPT module
gptLatticegptLattice.BrhogptLattice.accuracygptLattice.allow_negative_driftsgptLattice.bunch_chargegptLattice.codegptLattice.dtmingptLattice.endScreenObjectgptLattice.gdf_to_hdf5()gptLattice.hdf5_to_gdf()gptLattice.headersgptLattice.ignore_start_screengptLattice.override_meanBzgptLattice.override_toutgptLattice.particle_definitiongptLattice.postProcess()gptLattice.preProcess()gptLattice.run()gptLattice.screen_step_sizegptLattice.space_charge_modegptLattice.time_step_sizegptLattice.write()gptLattice.writeElements()
- Module contents
- simba.Codes.Generators package
- Submodules
- simba.Codes.Generators.Generators module
frameworkGeneratorframeworkGenerator.allowedKeyWordsframeworkGenerator.apply_alias_and_multiplier()frameworkGenerator.cathodeframeworkGenerator.cathode_radiusframeworkGenerator.cathode_temperatureframeworkGenerator.chargeframeworkGenerator.charge_signframeworkGenerator.chirpframeworkGenerator.codeframeworkGenerator.combine_distributionsframeworkGenerator.correlation_kinetic_energyframeworkGenerator.correlation_pxframeworkGenerator.correlation_pyframeworkGenerator.covariance_xxpframeworkGenerator.covariance_yypframeworkGenerator.distribution_type_pxframeworkGenerator.distribution_type_pyframeworkGenerator.distribution_type_pzframeworkGenerator.distribution_type_xframeworkGenerator.distribution_type_yframeworkGenerator.distribution_type_zframeworkGenerator.elementary_chargeframeworkGenerator.emission_modelframeworkGenerator.emission_stepsframeworkGenerator.executablesframeworkGenerator.fermi_energy_evframeworkGenerator.filenameframeworkGenerator.gaussian_cutoff_pxframeworkGenerator.gaussian_cutoff_pyframeworkGenerator.gaussian_cutoff_pzframeworkGenerator.gaussian_cutoff_xframeworkGenerator.gaussian_cutoff_yframeworkGenerator.gaussian_cutoff_zframeworkGenerator.generate_longitudinal_distribution()frameworkGenerator.generate_transverse_distribution()frameworkGenerator.generator_keywordsframeworkGenerator.global_parametersframeworkGenerator.high_resolutionframeworkGenerator.image_filenameframeworkGenerator.initial_momentumframeworkGenerator.kwargsframeworkGenerator.laser_energyframeworkGenerator.load_defaults()frameworkGenerator.longitudinal_fieldsframeworkGenerator.longitudinal_profileframeworkGenerator.max_stepsframeworkGenerator.n_binframeworkGenerator.nameframeworkGenerator.noise_reductionframeworkGenerator.normalized_horizontal_emittanceframeworkGenerator.normalized_vertical_emittanceframeworkGenerator.number_of_particlesframeworkGenerator.objectdefaultsframeworkGenerator.objectnameframeworkGenerator.offset_xframeworkGenerator.offset_yframeworkGenerator.offset_zframeworkGenerator.particle_massframeworkGenerator.particlesframeworkGenerator.plateau_bunch_lengthframeworkGenerator.plateau_fall_timeframeworkGenerator.plateau_rise_distanceframeworkGenerator.plateau_rise_timeframeworkGenerator.postProcess()frameworkGenerator.probe_particleframeworkGenerator.reference_timeframeworkGenerator.rf_frequencyframeworkGenerator.run()frameworkGenerator.sigma_kinetic_energyframeworkGenerator.sigma_pxframeworkGenerator.sigma_pyframeworkGenerator.sigma_pzframeworkGenerator.sigma_tframeworkGenerator.sigma_xframeworkGenerator.sigma_yframeworkGenerator.sigma_zframeworkGenerator.speciesframeworkGenerator.speed_of_lightframeworkGenerator.thermal_emittanceframeworkGenerator.thermal_kinetic_energyframeworkGenerator.tstepframeworkGenerator.update_species()frameworkGenerator.validate_generator()frameworkGenerator.validate_longitudinal_profile()frameworkGenerator.validate_particle_mass()frameworkGenerator.work_function_evframeworkGenerator.write()
poly_curve()sample_2d_gaussian_with_axis_cutoffs()sample_flat_top()sample_gaussian()
- simba.Codes.Generators.astra module
- simba.Codes.Generators.gpt module
GPTGeneratorGPTGenerator.check_xy_parameters()GPTGenerator.generate_correlated_divergences()GPTGenerator.generate_image_name()GPTGenerator.generate_longitudinal_distribution()GPTGenerator.generate_offset_transform()GPTGenerator.generate_output()GPTGenerator.generate_particles()GPTGenerator.generate_phase_space_distribution()GPTGenerator.generate_radial_distribution()GPTGenerator.generate_thermal_emittance()GPTGenerator.load_longitudinal_profile()GPTGenerator.postProcess()GPTGenerator.run()GPTGenerator.write()
- simba.Codes.Generators.opal module
- Module contents
- simba.Codes.MAD8 package
- simba.Codes.OPAL package
- Submodules
- simba.Codes.OPAL.OPAL module
opalLatticeopalLattice.breakstropalLattice.codeopalLattice.hdf5_to_opal()opalLattice.headersopalLattice.maxstepsopalLattice.particle_definitionopalLattice.postProcess()opalLattice.preProcess()opalLattice.ref_idxopalLattice.ref_sopalLattice.run()opalLattice.space_charge_modeopalLattice.time_step_sizeopalLattice.versionopalLattice.write()
update_globals()
- Module contents
- simba.Codes.Ocelot package
- Submodules
- simba.Codes.Ocelot.Ocelot module
ocelotLatticeocelotLattice.codeocelotLattice.final_screenocelotLattice.gridsocelotLattice.hdf5_to_npz()ocelotLattice.lat_objocelotLattice.lscocelotLattice.mbiocelotLattice.mbi_naviocelotLattice.mbin_csrocelotLattice.namesocelotLattice.navi_setup()ocelotLattice.nbin_csrocelotLattice.oceglobalocelotLattice.particle_definitionocelotLattice.physproc_beamtransform()ocelotLattice.physproc_csr()ocelotLattice.physproc_lsc()ocelotLattice.physproc_sc()ocelotLattice.physproc_wake()ocelotLattice.pinocelotLattice.postProcess()ocelotLattice.poutocelotLattice.preProcess()ocelotLattice.random_meshocelotLattice.ref_idxocelotLattice.ref_socelotLattice.run()ocelotLattice.screen_threaded_functionocelotLattice.sigmamin_csrocelotLattice.smooth_paramocelotLattice.trackBeamocelotLattice.twsocelotLattice.unit_stepocelotLattice.wake_factorocelotLattice.wake_filterocelotLattice.wake_samplingocelotLattice.write()ocelotLattice.writeElements()
- simba.Codes.Ocelot.mbi module
MBIMBI.latticeMBI.stepMBI.lamb_rangeMBI.slicesMBI.lscMBI.csrMBI.apply()MBI.csrimpedance()MBI.get_bf()MBI.get_bf_slice()MBI.get_slice_params()MBI.kernel_K0()MBI.kernel_K1()MBI.kernel_K2()MBI.kernels()MBI.ld0s()MBI.ldtaus()MBI.lscimpedance()MBI.r56taus()MBI.set_lamb_range()MBI.set_slice()
b0()k_wn()lattice_transfer_map_z()p0()
- simba.Codes.Ocelot.ocelot_conversion module
- Module contents
- simba.Codes.Xsuite package
- Submodules
- simba.Codes.Xsuite.Xsuite module
xsuiteLatticexsuiteLattice.beam_dataxsuiteLattice.codexsuiteLattice.compute_norm_emit()xsuiteLattice.contextxsuiteLattice.envxsuiteLattice.final_screenxsuiteLattice.gridsxsuiteLattice.hdf5_to_json()xsuiteLattice.linexsuiteLattice.matricesxsuiteLattice.namesxsuiteLattice.particle_definitionxsuiteLattice.pic_solverxsuiteLattice.pinxsuiteLattice.postProcess()xsuiteLattice.poutxsuiteLattice.preProcess()xsuiteLattice.ref_idxxsuiteLattice.ref_sxsuiteLattice.run()xsuiteLattice.setup_collective_effects()xsuiteLattice.trackBeamxsuiteLattice.twsxsuiteLattice.write()xsuiteLattice.writeElements()
- simba.Codes.Xsuite.xsuite_conversion module
- Module contents
Submodules
simba.Codes.Executables module
- class Executables(global_parameters)[source]
Bases:
objectClass for interpreting the accelerator code executables defined in
Executablesfor a given computer architecture and linking to the SimCodes directory. This enables the simulation code with the lattice input file to be called from within the Framework instance.Executables for Windows and POSIX architectures are defined, as are executables for specific clusters based at Daresbury Laboratory. Others can be added by the user.
- define_ASTRAgenerator_command(location=None)[source]
Define the ASTRA generator
executableobject and setsASTRAgenerator- Parameters:
location (str, optional) – Location of ASTRA generator executable; overrides default.
- Return type:
None
- define_astra_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the ASTRA
executableobject and setsastra- Parameters:
location (str) – Location of ASTRA executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
- define_csrtrack_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the CSRTrack
executableobject and setscsrtrack- Parameters:
location (str) – Location of CSRTrack executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
- define_elegant_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the ELEGANT
executableobject and setselegant- Parameters:
location (str) – Location of ELEGANT executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
- define_genesis_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the Genesis
executableobject and setsgenesis- Parameters:
location (str) – Location of Genesis executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
- define_gpt_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the GPT
executableobject and setsgpt- Parameters:
location (str) – Location of GPT executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
- define_opal_command(location=None, ncpu=1, scaling=None, override_location=None)[source]
Define the OPAL
executableobject and setsopal- Parameters:
location (str) – Location of OPAL executable; overrides default.
ncpu (int) – Number of CPUs to run
scaling (int, optional) – Scaling parameter for number of CPUs.
override_location (str, optional) – Name of remote server on which to run the executable; must be defined in Executables.yaml
- Return type:
None
Module contents
SIMBA Codes Module
This module converts the frameworkLattice class
and its elements into a format suitable for the code defined.