![]() |
The Open FUSION Toolkit 26.9
An open-source framework for fusion and plasma science and engineering
|
TokaMaker solves variants of a system of equations corresponding to Ideal MHD force balance for an axisymmetric plasma in response to actively and passively driven currents in nearby conductors (eg. coils and structures).
\[\Delta^* \psi = \begin{cases} -\frac{1}{2}\frac{\partial F^2}{\partial \psi} - \mu_0 R^2 \frac{\partial P}{\partial \psi} & \text{if } \textbf{r} \in \mathcal{P}\\ -R \mu_0 J_{\phi} & \text{if } \textbf{r} \in \mathcal{S},\mathcal{C} \\ 0 & \text{elsewhere;} \end{cases} \]
where \( \mathcal{P} \), \( \mathcal{S} \), and \( \mathcal{C} \) are axisymmetric domains corresponding to the plasma, passive conducting structures (eg. vacuum vessels), coils respectively.
TokaMaker should primarily be used through the python interface using the OpenFUSIONToolkit.TokaMaker python module and the OpenFUSIONToolkit.TokaMaker.TokaMaker and OpenFUSIONToolkit.TokaMaker.TokaMaker_equilibrium classes.
The following examples illustrate usage of TokaMaker to compute different Grad-Shafranov equilibria. For examples of how to create new meshes, see Mesh generation examples using gs_Domain.
TokaMaker includes built-in meshing functionality through the gs_Domain class, which leverages the triangle python package to generated unstructured triangular grids. The process of geometry definition is broken into two stages:
First, logical information about the geometry is defined using define_region(). This method's functionality varies based on the type of region being defined, which must be one of the following:
Next, geometric information about each region defined in the prior step is performed using one of the following methods:
The following examples illustrate usage of gs_Domain to create meshes for TokaMaker.