The paraxial WKB code TORBEAM (Poli, 2001) is widely used for the description of electron-cyclotron waves in fusion plasmas, retaining diffraction effects through the solution of a set of ordinary differential equations. With respect to its original form, the code has undergone significant transformations and extensions, in terms of both the physical model and the spectrum of applications. The code has been rewritten in Fortran 90 and transformed into a library, which can be called from within different (not necessarily Fortran-based) workflows. The models for both absorption and current drive have been extended, including e.g. fully-relativistic calculation of the absorption coefficient, momentum conservation in electron{\textendash}electron collisions and the contribution of more than one harmonic to current drive. The code can be run also for reflectometry applications, with relativistic corrections for the electron mass. Formulas that provide the coupling between the reflected beam and the receiver have been developed. Accelerated versions of the code are available, with the reduced physics goal of inferring the location of maximum absorption (including or not the total driven current) for a given setting of the launcher mirrors. Optionally, plasma volumes within given flux surfaces and corresponding values of minimum and maximum magnetic field can be provided externally to speed up the calculation of full driven-current profiles. These can be employed in real-time control algorithms or for fast data analysis.

}, keywords = {Electron cyclotron waves, Magnetic confinement, Paraxial beam tracing, Plasma physics, Wave-plasma interactions}, doi = {10.1016/j.cpc.2017.12.018}, author = {Poli, E. and Bock, A. and Lochbrunner, M. and Maj, O. and Reich, M. and Snicker, A. and Stegmeir, A. and Volpe, F. and Bertelli, N. and Westerhof, E. and Bilato, R. and Conway, G. D. and Farina, D. and Felici, F. and Figini, L. and Fischer, R. and Galperti, C. and Happel, T. and Lin-Liu, Y. R. and Marushchenko, N. B. and U. Mszanowski and Poli, F. M. and Stober, J. and Zille, R. and Peeters, A. G. and Pereverzev, G. V.} }