In GitLab by @mcoleman on Jun 20, 2023, 15:29
Summary
At present, PROCESS exclusively uses an empirical fit for $l_i$, found in e.g. ("Tokamaks" 4th Edition, Wesson, page 116), and ("Fusion" 2nd edition, Stacey, page 53). In the latter, one can see that the data come from DIII-D in the 1990's. I have no idea what kind of plasmas they were running back then, but it's fair to say that this fit gives high values for $l_i$ compared to what we typically see in larger, higher power, future tokamak reactors.
For EU-DEMO machines, PROCESS typically gives $l_i > 1.15$, compared to values from transport solvers of 0.7-0.9.
Obviously, PROCESS' profiles are not particularly to be trusted, so any $\rho$-based calculation will fall over pretty quickly. Instead, I propose an energy-based calculation, which is akin to ITER's $l_{i}(3)$ definition:
$$W_{p} = \int_{V}\dfrac{B_{\theta}^2}{2\mu_{0}}dV = \dfrac{1}{2}L_{i}^{W}I_{p}^2 \\\
L_{i}^{W} = \dfrac{2W_{p}}{I_{p}^2} = \dfrac{l_{i}\mu_{0}R_{0}}{2} \\\
l_{i} = \dfrac{4\int_{V}\dfrac{B_{\theta}^2}{2\mu_{0}}dV}{\mu_{0}R_{0}I_{p}^2} = \dfrac{2\langle B_{\theta}\rangle^2 V}{\mu_{0}^2R_{0}I_{p}^2}$$
Noting that:
$$\langle B_{\theta}\rangle^2 \textrm{not technically but for all intents and purposes (?) equal} \langle B_{\theta}^2\rangle$$
rli = 2 * bp**2 * vol / (rmu0**2 * rmajor * plascur**2)
Of course, if $\langle B_{\theta}\rangle = \mu_{0}I_{p}/P$, where $P$ is the perimeter of the LCFS, as appears to be the case most of the time in PROCESS, then this simplifies down to a purely geometric relation:
$$l_i = \dfrac{2V}{R_{0}P^2}$$
For a typical EU-DEMO, using this I get $l_i \approx$ 0.8.
Given that this approach to calculating $l_i$ is more-or-less what ITER is using, and captures at least some of the important terms (with the notable exception of $q$), I think it should be at least offered as an alternative to the Wesson/Stacey empirical fit.
Checklist
After implementing issue do the following