Hi Michael,
As shown in the attached example, I want to use the moments_output file to generate the particle distribution by set the parameter use_moments_output_values=1 in bunched_beam. I first checked the emittance of the generated particles by using sddsanalyzebeam command, the results is ex/ey=3.387026652738970e-09/4.106160920677630e-11,while the e1 & e2 value in mom file is 2.633363e-09/3.048417e-11.The emittance values are not exactly equal, but close. When I further check the phase space distribution,the x-phase space is not Gaussian,is there something wrong?
Best,
Tiansk
Particle distribution generated with bunched_beam using use_moments_output_values
Moderators: cyao, michael_borland
Particle distribution generated with bunched_beam using use_moments_output_values
- Attachments
-
- makeBunch.zip
- (6.19 MiB) Downloaded 214 times
Re: Particle distribution generated with bunched_beam using use_moments_output_values
Hi Michael,
I think I've found the reason for the strange distribution of particles in the x direction. I want to generate three sigma cutoff Gaussian particle distribution, I should set the distribution_cutoff parameter, not the enforce_rms_values parameter. When I set distribution_cutoff[0] = 3*3,the particle distribution is as shown in the attachment.
But the sddsanalyzebeam command gives the ex/ey parameters still doesn't match the e1/e2 parameters in mom file.
Best,
Tiansk
I think I've found the reason for the strange distribution of particles in the x direction. I want to generate three sigma cutoff Gaussian particle distribution, I should set the distribution_cutoff parameter, not the enforce_rms_values parameter. When I set distribution_cutoff[0] = 3*3,the particle distribution is as shown in the attachment.
But the sddsanalyzebeam command gives the ex/ey parameters still doesn't match the e1/e2 parameters in mom file.
Best,
Tiansk
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Particle distribution generated with bunched_beam using use_moments_output_values
Tiansk,
The e1 and e2 parameters in the output file from moments_output are the emittances of the two independent modes. These won't necessarily correspond to the projected emittances reported by WATCH or sddsanalyzebeam if there are x-y tilts present. To get agreement, you'll need to rotate the beam into the frame where the correlations are absent.
--Michael
The e1 and e2 parameters in the output file from moments_output are the emittances of the two independent modes. These won't necessarily correspond to the projected emittances reported by WATCH or sddsanalyzebeam if there are x-y tilts present. To get agreement, you'll need to rotate the beam into the frame where the correlations are absent.
--Michael
Re: Particle distribution generated with bunched_beam using use_moments_output_values
Hi Michael,
Then I think it makes sense if you could implement the calculation of the eigen-emittances into sddsanalyzebeam, since the Sigma_matrix is already there.
I do understand it might take more efforts / and slow down the simulations (if this information is not relevant) if also outputing the eigen-emittances in the WATCH element in the "parameter"-mode.
For interested users, they could postprocess the output of a WATCH element in the "coordinate"-mode using sddsanalyzebeam if this capabillity is implemented.
Thanks!
Zhe Duan
Then I think it makes sense if you could implement the calculation of the eigen-emittances into sddsanalyzebeam, since the Sigma_matrix is already there.
I do understand it might take more efforts / and slow down the simulations (if this information is not relevant) if also outputing the eigen-emittances in the WATCH element in the "parameter"-mode.
For interested users, they could postprocess the output of a WATCH element in the "coordinate"-mode using sddsanalyzebeam if this capabillity is implemented.
Thanks!
Zhe Duan
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Particle distribution generated with bunched_beam using use_moments_output_values
Zhe,
Yes, I agree that would be a nice feature. I'll add it to the to-do list.
--Michael
Yes, I agree that would be a nice feature. I'll add it to the to-do list.
--Michael