It seems that when I set BCFFTT = PERIODIC, not only the z-direction but all directions are automatically set to periodic boundary conditions. @uldis_l I am assuming "UL" in the comment of PartBunch::setBCForDCBeam() is you. Was there a particular reason to do this? In my understanding, a DC beam would have open BC in x and y and periodic BC in z.
In addition, the manual calls the parameters "BCFFTZ" and "PARFFTZ" but OPAL tells me those don't exist and throws an Exception, I have to use "BCFFTT" and "PARFFTT". Just a minor bug.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
When BCFFTZ is set to periodic then the method PartBunch::setBCForDCBeam is set. Do you understand why in all directions periodic boundary conditions are set?
voidPartBunch::setBCForDCBeam(){//UL: set periodic BC in all dimensionsfor(inti=0;i<2*3;++i){if(Ippl::getNodes()>1){bc_m[i]=newParallelPeriodicFace<double,3,Mesh_t,Center_t>(i);vbc_m[i]=newParallelPeriodicFace<Vector_t,3,Mesh_t,Center_t>(i);}else{bc_m[i]=newPeriodicFace<double,3,Mesh_t,Center_t>(i);vbc_m[i]=newPeriodicFace<Vector_t,3,Mesh_t,Center_t>(i);}getBConds()[i]=ParticlePeriodicBCond;}dcBeam_m=true;INFOMSG(level3<<"BC set for DC-Beam, all periodic"<<endl);}
I think the label Bug is wrong here, I didn't remove the label accidentally. This is a feature that never worked sofar and won't work unless this is requested by one of our "clients" and someone finds time to continue the work I began.
If this feature never worked so far we should either remove it from the code or throw an exception with a note to the user and remove BCFFTZ from the manual.
Yes on 1 and 2. I think 3 should always be beta * lambda length, where lambda is the wavelength of the RF. If there is acceleration (RFQ), then the grid length will have to change from cell to cell.
@adelmann can you please open a new issue with label "feature request" with a clear description? So, we can get rid of the history, we don't need any more. The intention of this issue was to report a bug not a feature request.