Accurate neoclassical resistivity, bootstrap current and other transport coefficients
(NEOS: Fortran 90 subroutines, matlab functions and IMAS module)
(An update set of formulas are coming soon, before end of 2020, stay tune)
The Fokker-Planck codes CQL3D  and CQLP  have been used to calculate the neoclassical transport coefficients valid for arbitrary tokamak geometry and collisionality. These results provide better and more complete coefficients than the previously used Hirshman, Hinton, Chang, Taguchi, etc models.
We have fitted the exact Fokker-Planck results to a very good accuracy while maintaining relatively simple formulas.
This was possible because we found that the equilibrium effects can be very well encapsulated through a trapped fraction ft (which definition depends on the related transport coefficients [3: C. Angioni et al + errata]).
On the other hand, the collisionality effects can be well encapsulated through modifications of the trapped fraction, leading to effective trapped fractions.
The other neoclassical transport coefficients, like chi_i for example, are given in  C. Angioni et al (+ Errata, refs corrected), also valid for arbitrary geometry, aspect ratio and collisionality.
The input data are the profiles and the trapped fraction. The trapped fraction for conductivity and bootstrap, ft, can be obtained with either of:
1) from the full
formula as a double integral (as done in CHEASE), Eq. (12) of :
2) From the approximate formula by Lin-Liu using simple flux surface average of B's, thus only single integrals: Ref. 
3) For most tokamak cases the following formula, including now also triangularity, works relatively well (Eq. (33-35) of Ref ):
Modules have been developed and are included in the CHEASE code for example. They are available here below:
F90 and matlab routines/modules for neoclassical resistivity and bootstrap current: NEOCLASSICAL.tar
NEOS module contains all these routines and the module used by the European code development and available within IMAS as well. You can have a copy of the sources by signing the following Code_transfer_NEOS_generic document to be sent to Olivier.Sauter "at" epfl.ch
· How to use the formulas with experimental data and the questions of Z, Zeff
Z = Zeff in all equations
except Eq. 18(c) and Eq. 18(e) where Z=
o Total pressure should be used for p and pe/p should be used where stated and not some approximations with Te and Ti for example
o The formula for ln L should be used as defined in the paper (Eqs 18(d,e))
The above are due to the fact that the fits to the exact code results have been performed using these definitions. The above statements are particularly true if a code benchmark is being performed.
The code results for various Zeff have been obtained using a single ion species with Zeff and therefore also assuming TI=Ti. This is a limitation which needs to be tested against experimental results. There are several comparisons with reconstructed profiles. The latest detailed comparison has been performed on AUG . In that case they assumed a single impurity and Zeff to define a total ni=nimain + niimp and to define total pressure. When ion temperature and/or impurity temperature were not available, Ti=Te, TI=Ti were used. It is shown in Ref.  that the edge bootstrap current is well predicted.
In smaller inverse aspect ration in particular, a correction is necessary near the edge as proposed recently in Ref.  and NSTX. This correction should be added in all cases, in particular in H-mode for the pedestal. A useful discussion of Z, Zeff is also given in Sec. V.
As a general statement and in the absence of specific more precise calculations, additional effects should be added in total pressure and equivalent Zeff, inspired by MHD effects. For example, fast particles contribution should be included in total pressure and therefore total pi be used as well.
 R. W. Harvey and M. G. McCoy, in Proceedings of IAEA Technical Committee Meeting on Advances in Simulation and Modeling of Thermonuclear Plasmas, Montreal, 1992, International Atomic Energy Agency, Vienna, 1993, pp. 489–526.