The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
Classes | Functions | Variables
OpenFUSIONToolkit.TokaMaker._core Namespace Reference

Detailed Description

Core definitions for TokaMaker Grad-Shafranov functionality.

Authors
Chris Hansen
Date
May 2023

Classes

class  TokaMaker
 TokaMaker G-S solver class. More...
 

Functions

 create_prof_file (self, filename, profile_dict, name)
 Create profile input file to be read by load_profiles()
 
 solve_with_bootstrap (self, ne, Te, ni, Ti, inductive_jtor, Zeff, jBS_scale=1.0, Zis=[1.], max_iterations=6, initialize_eq=True)
 Self-consistently compute bootstrap contribution from H-mode profiles, and iterate solution until all functions of Psi converge.
 
 tokamaker_default_settings (oft_env)
 Initialize settings object with default values.
 

Variables

 psi_convention
 

Function Documentation

◆ create_prof_file()

create_prof_file (   self,
  filename,
  profile_dict,
  name 
)

Create profile input file to be read by load_profiles()

Parameters
filenameName of input file, see options in set_profiles()
profile_dictDictionary object containing profile values ['y'] and sampled locations in normalized Psi ['x']
filenameName of input quantity, see options in set_profiles()

◆ solve_with_bootstrap()

solve_with_bootstrap (   self,
  ne,
  Te,
  ni,
  Ti,
  inductive_jtor,
  Zeff,
  jBS_scale = 1.0,
  Zis = [1.],
  max_iterations = 6,
  initialize_eq = True 
)

Self-consistently compute bootstrap contribution from H-mode profiles, and iterate solution until all functions of Psi converge.

Note
if using nis and Zis, dnis_dpsi must be specified in sauter_bootstrap() as a list of impurity gradients over Psi. See https://omfit.io/_modules/omfit_classes/utils_fusion.html for more detailed documentation
if initialize_eq=True, cubic polynomials will be fit to the core of all kinetic profiles in order to flatten the pedestal. This will initialize the G-S solution at an estimated L-mode pressure profile and using the L-mode bootstrap contribution. Initializing the solver in L-mode before raising the pedestal height increases the likelihood that the solver will converge in H-mode.
Parameters
neElectron density profile, sampled over psi_norm
TeElectron temperature profile [eV], sampled over psi_norm
niIon density profile, sampled over psi_norm
TiIon temperature profile [eV], sampled over psi_norm
inductive_jtorInductive toroidal current, sampled over psi_norm
ZeffEffective Z profile, sampled over psi_norm
scale_jBSScalar which can scale bootstrap current profile
nisList of impurity density profiles; NOT USED
ZisList of impurity profile atomic numbers; NOT USED.
max_iterationsMaximum number of H-mode mygs.solve() iterations
initialize_eqInitialize equilibrium solve with flattened pedestal.
return_jBSReturn bootstrap profile alongside err_flag

◆ tokamaker_default_settings()

tokamaker_default_settings (   oft_env)

Initialize settings object with default values.

Parameters
oft_envCurrent runtime environment
Returns
tokamaker_settings_struct object

Variable Documentation

◆ psi_convention

psi_convention