PyORBIT-Collaboration / py-orbit

Core of Py-ORBIT code
MIT License
25 stars 38 forks source link

Aperture in between magnetic element #49

Closed urmila-star closed 3 years ago

urmila-star commented 3 years ago

Sir, when we are using aperture in between the quadrupole, it give the message “non-drift element at the place of the Aperture node! Stop!". Is there any way to use aperture in between quadrupoles or any magnetic element just to check losses at this place? Also, function “addCircleApertureSet(a,teapot_latt,0.0,L,0,0) ” appears to be not working. Related input files are attached here. PyORBIT File For Aperture.zip

luxiaohan commented 3 years ago

Hi @urmila-star
Yes, of course you can add an aperture between the quadrupole. But "addCircleApertureSet" is not the right way, quadrupole is not Drift, pyorbit can not split quadrupole directly. The right way is add the 'aperture node' as a child node of quadrupole, the function " node.addChildNode(****)" is what you need.

urmila-star commented 3 years ago

Thank you