The Open FUSION Toolkit 26.6
An open-source framework for fusion and plasma science and engineering
Loading...
Searching...
No Matches
util.py File Reference

Namespaces

namespace  OpenFUSIONToolkit
 Python interface for Open FUSION Toolkit.
namespace  OpenFUSIONToolkit.TokaMaker
 Python interface for TokaMaker Grad-Shafranov functionality.
namespace  OpenFUSIONToolkit.TokaMaker.util
 General utility and supporting functions for TokaMaker.

Functions

 _inner_arc (r_x, z_x, r_inner_mid, z_inner_mid, zeta, n)
 Generate an inverted-INTOR inner arc from X-point to inner midplane.
 _intor_arc (r0, z0_arc, a, kappa_eff, theta_x, r_x, zeta, n, endpoint=False, sign=1)
 Generate one half of the INTOR outer arc.
 compute_forces_components (tMaker_obj, psi, cell_centered=False)
 Compute terms needed for evaluating forces in passively conducting regions.
 create_isoflux (npts, r0, z0, a, kappa, delta, kappaL=None, deltaL=None)
 Create isoflux points using simple analytic form.
 create_isoflux_xpts (npts, r0, z0, a, kappa_upper, delta_upper, kappa_lower=None, delta_lower=None, r_inner_mid=None, zeta_outer_upper=0.0, zeta_outer_lower=0.0, zeta_inner_upper=0.0, zeta_inner_lower=0.0)
 Create isoflux boundary points for single-null configurations with X-points.
 create_power_flux_fun (npts, alpha, gamma)
 Build power law flux function of the form \( (1-\hat{\psi}^{\alpha})^{\gamma} \).
 create_spline_flux_fun (npts, x, y, axis_bc=[1, 0.0], edge_bc=[1, 0.0], normalize=True)
 Build cubic spline flux function.
 eval_green (x, xc)
 Evaluate Green's function for a toroidal filament.
 get_jphi_from_GS (ffprime, pprime, R_avg, one_over_R_avg)
 Calculate j_phi profile from Grad-Shafranov equation.
 read_eqdsk (filename)
 Read gEQDSK file.
 read_ifile (filename)
 Read i-file inverse equilibrium file.
 read_kfile (path, machine_dict, e_coil_names=None, f_coil_names=None)
 read_mhdin (path, e_coil_names=None, f_coil_names=None)
 xpoints_from_moments (r0, z0, a, kappa_upper, delta_upper, kappa_lower=None, delta_lower=None)
 Compute X-point locations from Miller shaping moments.