The Open FUSION Toolkit 26.9
An open-source framework for fusion and plasma science and engineering
Loading...
Searching...
No Matches
mugtok_f.F90 File Reference
#include "local.h"

Data Types

type  mugtok_instance
 MUG/TokaMaker wrapper object for the Python API. More...

Modules

module  mugtok_f
 Fortran part of Python wrapper for coupled MUG/TokaMaker (mugtok_td) functionality.

Functions/Subroutines

subroutine mugtok_alloc (mugtok_ptr, equil_ptr, error_str)
 Allocate the combined MUG/TokaMaker simulation object from an existing equilibrium.
logical function mugtok_ccast (mugtok_cptr, sim_obj, error_str)
 Cast a C pointer back to the Fortran MUG/TokaMaker wrapper object.
subroutine mugtok_destroy (mugtok_ptr, error_str)
 Destroy the combined simulation object (the borrowed equilibrium/mesh are left intact).
subroutine mugtok_get_field (mugtok_ptr, field_id, vals, error_str)
 Get the current values of a MUG-owned solution field at node points.
subroutine mugtok_get_gradf (mugtok_ptr, gr, gz, error_str)
 Get the projected poloidal gradient of F at node points (dF/dR, dF/dZ).
subroutine mugtok_get_pmesh (mugtok_ptr, np, r_loc, nc, lc_loc, reg_loc, error_str)
 Get the order-1 (pressure) plotting mesh: node coordinates and triangle connectivity.
subroutine mugtok_setup (mugtok_ptr, dt, lin_tol, nl_tol, mhd_flag_ptr, dens_ptr, visc_ptr, nreg, incomp, toroidal_flow, error_str)
 Set up the combined simulation (mesh/FE are reused from the equilibrium's device).
subroutine mugtok_step (mugtok_ptr, curr_ptr, ncoils, time, dt, nl_its, lin_its, nretry, error_str)
 Advance the coupled solution by one timestep.