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

Data Types

type  oft_mugtok_td
 L2-projected poloidal gradient of F (dF/dR, dF/dZ); helper used by the C wrapper for output. More...
type  oft_mugtok_td_mfop
 Combined MUG and TokaMaker time-advance operator. More...

Modules

module  mugtok_td

Macros

#define TDIFF_RST_LEN   5

Functions/Subroutines

subroutine add_f_jac (self, mat)
 Add approximate Jacobian entries corresponding to add_f_terms 1) F resistive-diffusion Jacobian in solid conductor (and vacuum) regions 2) An approximate F0/F0 diagonal = integral over the plasma region of dA/R (no profile effects). 3) The plasma-DOF constraint rows F(ind) - F0.
subroutine add_f_terms (self, a, b, dt)
subroutine apply_rhs_mugtok (self, a, b)
subroutine build_mugtok_td_jacobian (self, mat, a, update_vac)
subroutine build_psi_vac (self, coil_currents)
 Compute vacuum psi from a set of coil currents, for use in MUG.
subroutine, public compute_gradf (self, gradf_r, gradf_z)
 Compute the projected poloidal gradient of F (for poloidal current calculation).
subroutine delete_mfop (self)
subroutine delete_mugtok_td (self)
subroutine mugtok_mfnk_update (a)
subroutine mugtok_rst_save (self, t)
 Save the current solution (fields 1-7 of the augmented vector) to a restart file 'mugtok_NNNNN.rst', indexed by the step counter.
subroutine mugtok_td_plot (self)
 Plot saved restart states to XDMF/HDF5 output Runtime options are set in the main input file using the group mugtok_plot_options. Option group: mugtok_plot_options.
subroutine nlfun_apply (self, a, b)
subroutine setup_mugtok_td (self, equil, dt, lin_tol, nl_tol, mhd_flag, dens_reg, visc_reg, eta_reg, incomp, toroidal_flow)
 Setup combined MUG and TokaMaker simulation object.
subroutine snapshot_f_profile (self)
 Snapshot current FF' profile and f_scale into the sim's f_scale_prev / I_prev, so the next step's RHS pass of add_f_diff uses these previous-step values while the LHS uses whatever is set/computed for the next step.
subroutine step_mugtok_td (self, coil_currents, time, dt, nl_its, lin_its, nretry)
 Take one timestep of the combined MUG and TokaMaker simulation.

Variables

type(oft_mugtok_td), pointer current_sim => NULL()
 Current mug/tokamaker simulation object.
class(oft_scalar_bfem), pointer lag_rep => NULL()
 Pointer to single field FE representation.
class(oft_bmesh), pointer, public mesh => NULL()
 Pointer to FE mesh.

Macro Definition Documentation

◆ TDIFF_RST_LEN

#define TDIFF_RST_LEN   5