alexander-stolz / limioptic

A tool to perform and visualize ion optic calculations. For more information visit
http://www.limioptic.de
6 stars 1 forks source link

3d plots #4

Open cjnqt opened 4 years ago

cjnqt commented 4 years ago

I would like to try to plot in 3d... have you tried this? What's the format of the data in the particles.dat file? Maybe that could be used for plotting with https://doc.qt.io/qt-5/qtdatavisualization-index.html or another tool

alexander-stolz commented 4 years ago

Hello,

plotting in 3d was possible in the Python 2.7 version. But VTK changed the function names so often that I thought it was not worth keeping this feature. The format in the particles.dat file - that is produced via the BeamProfile function - is (x, dx, y, dy, dk, dm) where x, y is the deviation from the optical axis in mm, dx and dy are the angles in mrad, dk and dm are the mass and energy deviations in permille. There also was the option to output the whole beam to a text file. I just noticed that this feature also vanished with VTK. I will add it again in the next update.

Thanks for your feedback!

Am Di., 4. Aug. 2020 um 11:16 Uhr schrieb cjnqt notifications@github.com:

I would like to try to plot in 3d... have you tried this? What's the format of the data in the particles.dat file? Maybe that could be used for plotting with https://doc.qt.io/qt-5/qtdatavisualization-index.html or another tool

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexander-stolz/limioptic/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7HG5R5OAHGUCUCM4Z6N23R67GX3ANCNFSM4PUGBR4Q .

alexander-stolz commented 4 years ago

Update: with the new Version 20200805 you can output the beam to a beam.dat file again. The format is:

# particle 0
# ----------------------------
z0 x0 y0
z1 x1 y1
......
# particle 1
# ----------------------------
z0 x0 y0
z1 x1 y1
......

z in m
x, y in mm