|
| 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.
|