Generating .vane file with transition cell and m=1 section

https://www.dacm-logiciels.fr/toutatis
Post Reply
Belgiumjhustings
Novice
Novice
Posts: 4
Joined: Tue 24 Sep 2024 14:34
Country:
Belgium (be)
Belgium

Generating .vane file with transition cell and m=1 section

Post by Belgiumjhustings »

I am attempting to generate a .vane file from the .dat file with the2termsflag. However, I struggle to get the end profile geometry correct. The lattice needs to end with a transition cell, followed by a flat m=1 cell and a fringe field. Unfortunately, I never succeed in the proper combination of both. Either the modulation of the transition cell is too low, or the m=1 cell is missing.

I have made many attempts where I adjust the cell type, cell length, and modulation of the last cells in the .dat file, but none gave me the desired result. Could you help me achieve a vane geometry where the transition cell has the proper shape, followed by a m=1 cell?
Attachments
rfq_simulations.ini
(43.77 KiB) Downloaded 3 times
rfq_simulation.dat
(20.12 KiB) Downloaded 5 times
FromTraceWin.inp
(21.36 KiB) Downloaded 5 times
toutatis.vane
(5.55 MiB) Downloaded 4 times
FranceRomualdDuperrier
Global moderators
Global moderators
Posts: 80
Joined: Fri 28 Aug 2020 14:59
Location: Paris-Saclay
Country:
France (fr)
France

Re: Generating .vane file with transition cell and m=1 section

Post by FranceRomualdDuperrier »

Hi

I would like to be sure about the problem you are highlighting. When I run Toutatis with your FromTraceWin.inp, I get the following vane profile at end:

vane_end.png
vane_end.png (25.24 KiB) Viewed 44 times
Does it match your expectation? If not, please describe more precisely the gap between your expectation and what is plotted there.

Best,

Romuald
FranceRomualdDuperrier
Global moderators
Global moderators
Posts: 80
Joined: Fri 28 Aug 2020 14:59
Location: Paris-Saclay
Country:
France (fr)
France

Re: Generating .vane file with transition cell and m=1 section

Post by FranceRomualdDuperrier »

Thinking more about the profile, if you want to produce a trancell not for the cell before the fringe field but the cell before, the code can not generate this because it will only apply trancell rules for the cell before the fringe field. But there is a work around, you can use an externally made .vane. So I suggest to proceed as follow:
1 run the code as you used to get a toutatis.vane with the right length for all the cells
2 modify with another tool (excel or script) the profile at the end to adjust the toutatis.vane => new_toutatis.vane.
3 modify FromTraceWin.inp by using theGeometryFileFlag 1 new_toutatis.vane
4 run the code again, in principle it should work.

I hope it helps,

Romuald
Belgiumjhustings
Novice
Novice
Posts: 4
Joined: Tue 24 Sep 2024 14:34
Country:
Belgium (be)
Belgium

Re: Generating .vane file with transition cell and m=1 section

Post by Belgiumjhustings »

Dear Romuald,

Thank you for the quick response! You are right, I would indeed like to apply the "transcell rules" to the cell before the flat section. I only manage to do this if I proceed directly to the fringe field. Your explanation confirms my suspicion that the combination of a transcell and a m=1 section is not possible.

I will have a go at the workaround that you suggest.

Thanks for the support!
Post Reply