LightWin
0.7.0

LightWin

  • Installation
  • Usage
  • The get method
  • Configuration
  • Units and conventions
  • Utility scripts
  • Bibliography
  • API Reference
    • beam_calculation package
    • config package
    • core package
    • evaluator package
    • failures package
    • optimisation package
    • scripts package
    • tracewin_utils package
      • dat_files module
      • electromagnetic_fields module
      • interface module
      • load module
    • util package
    • visualization package
    • config_manager module
    • constants module
  • Examples
LightWin
  • lightwin package
  • tracewin_utils package
  • View page source

tracewin_utils package

Define tools to communicate with TraceWin.

In particular: functions to read/write .dat file in the same fashion as TraceWin.

Submodules

  • dat_files module
    • dat_filecontent_from_smaller_list_of_elements()
    • _is_needed_element()
    • _is_useful_command()
    • export_dat_filecontent()
  • electromagnetic_fields module
    • FIELD_GEOMETRIES
    • FIELD_TYPES
    • LOADABLE
    • load_electromagnetic_fields()
    • _load_electromagnetic_fields_for_cython()
    • _geom_to_field_map_type()
    • _get_filemaps_extensions()
    • _get_filemap_extensions()
    • _get_field_nature()
    • _get_type()
    • _get_field_components()
    • _load_field_map_file()
    • _is_a_valid_electric_field()
    • _rescale()
    • output_data_in_tw_fashion()
  • interface module
    • variables_to_command()
    • beam_calculator_to_command()
    • list_of_elements_to_command()
    • beam_parameters_to_command()
    • particle_initial_state_to_command()
    • set_of_cavity_settings_to_command()
    • _cavity_settings_to_command()
    • ARGS_POSITIONS
    • _alter_element()
    • _proper_type()
  • load module
    • load_dat_file()
    • _strip_comments()
    • _split_named_elements()
    • _split_weighted_elements()
    • slice_dat_line()
    • table_structure_file()
    • results()
    • electric_field_1d()
    • _get_number_of_cells()
    • transfer_matrices()
    • _transfer_matrix()
    • FIELD_MAP_LOADERS
Previous Next

© Copyright 2024, A. Plaçais, F. Bouly, J.-M. Lagniel, D. Uriot, B. Yee-Rendon.

Built with Sphinx using a theme provided by Read the Docs.