Closed lcarver closed 10 months ago
Following the nice benchmarking results made by Teresia at the AT Workshop using this branch (slides are here and the good agreement pasted below: https://indico.esrf.fr/event/93/contributions/518/ )
I remove the WIP label and request review.
@lcarver, could you please update this branch with the master before review? The label WIP is still there too
@lcarver, could you please update this branch with the master before review? The label WIP is still there too
done
ready for re-review (and welcome to @TeresiaOlsson to the reviewing side of AT).
I implemented the changes, now in the beamloading passmethod, if vgen is 0 and cav_length is 0 it skips the loop which means it can be in the main code irrespective of active or passive. I added some checks to makes sure for a passive cavity vgen setpoint is always 0.
I have one other question to ask before I implement the changes (in case it's not needed).
At the moment I have to do mode=BLMode.WAKE, cavitymode=CavityMode.ACTIVE
should 'mode' be renamed 'blmode' in order to be clearer?
ready for review / merge
I'll trust the experts…
had to remerge master, i can't keep up! also checked example files.
had to remerge master, i can't keep up!
There is no need to merge master unless there is a conflict, which is not the case here. It just makes the commit history longer…
changes implemented. Ready for re-review
@swhite2401 changes implemented
I all benchmarks are OK this is fine for me!
my local at directory is a bit of a mess right now as running checks for optimize_atimplib at the same time. I propose to wait until I am back next week, finalise some clean tests on this branch and then merge.
Yes ok better wait than merging something incorrect
I reran one of the MAXIV cases shown by Teresia (173 bunches, Nslice=50, 10k particles per bunch, 150k turns) and I was able to perfectly reproduce her results. So I am happy and will now merge.
Modified the existing functions to allow the user to specifiy a passive cavity. In this situation, Vgen is always zero, no RF cavity is tracked, only the vbeam option is tracked and applied to the particles.
A new enumerator was provided called CavityMode and CavityMode.ACTIVE is the default.
It seems to be working well, but I don't have yet a good case to benchmark. So I have marked it as a WIP for the time being