6 Conclusion

The code C3PO has been designed for fast and accurate calculations of the ray trajectories in inhomogeneous and anisotropic plasmas with arbitrary axisymmetric magnetic equilibrium and nested flux surfaces. It is part of the C3PO/LUKE/R5-X2 codes package designed for calculating RF current drive in tokamaks or reverse field pinches. A modular structure makes the code evolutive. In particular, additional dielectric response models can be implemented.

Among possible future improvements, C3PO could be developed into a beam tracing code to include diffraction effects and calculate the beam size. It could also be extended to account for toroidal equilibrium inhomogeneities such as the magnetic ripple [34].