TGYRO solver algorithm
TGYRO solves the steady-state transport problem; that is, the transport
equations with
Formulation
To describe the algorithm, we will restrict attention to coupled
Here, the energy fluxes are the taken to be the sum of neoclassical and turbulent transport:
The total ion and electron sources,
Some comments regarding units
In TGYRO, we have found it convenient to use CGS units rather than employing some variant of the more popular dimensionless normalizations. Thus, we have
Solution strategy
Rather than solving the equations directly, we prefer to solve the volume-integrated form of the equation so that we can deal directly with the fluxes:
The result is a curious system which depends on both the temperatures and the temperature gradients:
where
It is important to note the connection between profiles and gradients. Specifically, if we enforce the following pedestal
boundary conditions at
Then the gradients
Formulation on a discrete grid
On a discrete grid
To put the problem into discrete form, we define a vector of independent variables (gradients) and functions (fluxes):
Then, the equations to be solved are
where a hat denotes gyroBohm normalization:
The goal is to apply Newton’s method in a way which is as accurate as possible while still
minimizing evaluation of the expensive functions
Above, we have used the shorthand
where
and the quantity
An important quantity to measure after a Newton iteration is the residual
If, after a Newton step, any
A Newton iteration, which is rapidly convergent given that one is close to a root and the $qhat$ are smooth functions,
A fixed-point iteration following the Newton iteration, because the weak profile variation of $qhat$ was ignored
If the temperature dependence of
Computation of the Jacobian
We approximate the derivatives in the Jacobian matrix using a forward difference approximation
A desireable feature of this approximation is that the iteration scheme, Eq.~(ref{eq.newton}) if it converges, will converge to the exact root of the original equations without any influence of the finite-difference truncation error.