7.41 modulate_elements
- type: setup command.
- function: define parameters for time-dependent modulation of elements
- sequence: must follow run_setup.
- N.B.: if the ramped element is modeled with a matrix, a significant performance hit may be
seen. It is best to use symplectic variants of the elements, since these don’t invoke the matrix
calculation.
- Command syntax, including use of equations and subcommands, is discussed in 7.2.
&modulate_elements
STRING name = NULL;
STRING item = NULL;
STRING type = NULL;
STRING expression = NULL;
STRING filename = NULL;
STRING time_column = NULL;
long convert_pass_to_time;
STRING amplitude_column = NULL;
long refresh_matrix = 0;
long differential = 1;
long multiplicative = 0;
double factor = 1;
long start_pass = 0;
long end_pass = LONG_MAX;
long pass_delay = 0;
double time_delay = 0;
long start_occurence = 0;
long end_occurence = 0;
double s_start = -1;
double s_end = -1;
STRING before = NULL;
STRING after = NULL;
long verbose = 0;
double verbose_threshold = 0;
STRING record = NULL;
long flush_record = 1;
&end
N.B.: This command will produce unpredictable results when used with error_element, alter_elements,
and load_parameters (except when change_defined_values=1). It should work properly with
link_elements in turn-by-turn mode when the source element is modulated, but not when the target
element is modulated.