Beam scattering simulation

Moderators: cyao, michael_borland

Post Reply
Minghao
Posts: 2
Joined: 21 Nov 2023, 13:19

Beam scattering simulation

Post by Minghao » 03 Jun 2026, 19:47

Dear all,

Recently, I want to do beam scattering simulation, including elastic, inelastic and Touschek scatterings. While I have the following questions.

1. I checked the examples of elastic and inelastic scattering, is it for single particle or many-particle simulation?

2. I ran the example of elastic scattering, it generated run1.eslos, which I believe it records the loss information. Then I sorted run1.eslos to get sorted file run1.eslos.sort. In this sorted file, which column indicate the loss information versus s-position?

3. Linked with question2, according to the example, is it the pressure file required to calculate loss versus s-position?
If following the example instruction using "elasticScatteringAnalysis", it will generate two files, run1.esanal.sdds and run1.esanal.full. And if using the following process, which columns in which file give the loss information versus s-position? I want to know the loss distribution versus s-position.

sddsprocess run1.esanal.full -pipe=out \
-define=col,logRate,"rate log" \
| sddsxref -pipe run1.eslos.sort -take=* \
| sddssort -pipe -column=s,incr \
| sddsbreak -pipe -change=s \
| sddsprocess -pipe=in run1.esanal.full1 -process=s,first,s0

sddsplot -col=xp,yp run1.esanal.full1 -split=col=logRate,page -sep=page -order=temperature \
-graph=sym,vary=subtype,fill -title=@s0,edit="i/Scattering from s =/ei/m/"

sddshist run1.esanal.full run1.esanal.his -size=0.010 -cdf -data=sLost -weight=rate
sddsplot -layout=1,2 -join=x -col=sLost,frequency run1.esanal.his -end -col=sLost,sLostCdf run1.esanal.his

sddsprocess run1.esanal.full1 -pipe=out -filter=col,yLost,0,1 \
| sddshist2d -pipe=in xyHist.h2d -col=xLost,yLost -xparam=100 -yparam=50 -weight=rate
sddscontour -shade xyHist.h2d -log=1e-12

4. For Touschek scattering simulation, can I externally load a beam distribution, instead of defining Gaussian beam distribution within the &touschek_scatter? For example, can I use &sdds_beam to give the beam distribution and how?

5. Linked with question4, if using &sdds_beam, can I ask what is the required format for the sdds file? Does it include 6 columns of x, x', y, y', t, p?

6. For inelastic and Touschek scattering simulation, they all need the momentum aperture file, so, should I do the single particle or many particle tracking to get momentum aperture file?

7. Can I do the elastic, inelastic, Touschek scatterings in one elegant file, or I have to split into steps? Can you let me know the correct steps to do it?

Thank you so much for taking the time to answer all my questions!

Best regards,
Minghao

Post Reply