Closed hnakahara79 closed 1 year ago
Hi @hnakahara79 , I would recommend you have a look at
https://github.com/ocelot-collab/ocelot#tutorials
Perhaps it also makes sense to first consider the linear optics without particle tracking.
Hi @st-walker , thank you for your quick reply.
I will go through the tutorials. However, I may have lots of questions .... I will start understanding the tutorials.
Thank you.
Hi @st-walker,
I installed Ocelot manually on ubuntu 22.04 (by downloading the last release zip file). Please note that I installed it with the command python3 setup.py install.
Then, I test the installation with the following line in a python script:
import ocelot print('ocelot:', ocelot.version)
I received an error message as shown below:
beam.py: module NUMEXPR is not installed. Install it if you want higher speed calculation.
optics.py: module NUMEXPR is not installed. Install it if you want higher speed calculation.
Traceback (most recent call last):
File "/home/nakahara/Documents/ocelot-18.02.0/test1.py", line 13, in
Please, could you tell me how to fix this error.
Thank you very much.
Hi @st-walker,
Once again I downloaded from GitHub zip file. Now, I can run tutorials.
Hi @st-walker,
just last question: I downloaded Ocelot from from GitHub zip file, but it is working without doing python3 setup.py install.
Is it OK ? Will it make any impact on its performance ?
Thank you.
Hi @hnakahara79,
This will not affect its performance. We often use it this way if there is no way to clone it from GitHub.
Sergey.
python setup.py install
is a means to put the library in your PYTHONPATH and install any dependencies. if you already have the dependencies installed and ocelot is already in your PYTHONPATH then strictly yeah it is not necessary. performance is unimpacted as sergey says. if you care about performance, install jit, numba, etc (as the warnings say I think) which setup.py will not take care of because they're optional dependencies
Hi @sergey-tomin and @st-walker,
thanks to both of you for quick reply and clarification.
Best regards, Naka
Dear Developers,
This is going to be my first test with Ocelot. I have an electron beam with information of:
(1) x-position (2) y-position (3) z-position (4) Px, x-momentum (5) Py, y-momentum (6) Pz, z-momentum (7) Particles weight
I have to study the transportation of this beam with beam-optics (Quadrupoles).
However, as a start, I would like to inject this electron beam in the Ocelot and would like to see its evolution in vacuum. After that I would like to proceed with the beam optics (gradually).
Please, could you guide me how I can study the electron beam evolution in vacuum. I want to do this in order to find the optimum position of the first magnet.
Thank you.