|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
TokaMaker equilibrium reconstruction class.
Public Member Functions | |
| __del__ (self) | |
| Destroy reconstruction object. | |
| __init__ (self, tMaker_obj, in_filename='fit.in', out_filename='fit.out') | |
| Create equilibrium reconstruction object. | |
| add_flux_loop (self, loc, val, err) | |
| Add full poloidal flux loop constraint. | |
| add_Mirnov (self, loc, norm, val, err) | |
| Add Mirnov sensor constraint. | |
| add_pressure (self, loc, val, err) | |
| Add plasma pressure constraint. | |
| add_saddle (self, p1, p2, width, val, err) | |
| Add saddle loop constraint. | |
| read_fit_in (self) | |
| Read constraints from existing input file. | |
| reconstruct (self, vacuum=False, linearized_fit=False, maxits=100, eps=1.E-3, ftol=1.E-3, xtol=1.E-3, gtol=1.E-3) | |
| Reconstruct G-S equation with specified fitting constraints, profiles, etc. | |
| reset_constraints (self) | |
| Remove all current constraints. | |
| set_DFlux (self, DFlux, err) | |
| Set diamagnetic flux constraint. | |
| set_Ip (self, Ip, err) | |
| Set plasma current constraint. | |
| write_fit_in (self) | |
| Create reconstruction input file for specified constraints. | |
Public Attributes | |
| con_file = in_filename | |
| Name of constraint file (input for reconstruction). | |
| out_file = out_filename | |
| Name of reconstruction output file. | |
| settings = tokamaker_recon_default_settings(self._tMaker_obj._oft_env) | |
| Reconstruction specific settings object. | |
Protected Attributes | |
| _Dflux_con = None | |
| Diamagnetic flux constraint. | |
| list | _flux_loops = [] |
| Flux loop constraints. | |
| _Ip_con = None | |
| Plasma current constraint. | |
| list | _mirnovs = [] |
| Mirnov sensor constraints. | |
| list | _pressure_cons = [] |
| Plasma pressure constraints. | |
| list | _saddles = [] |
| Saddle loop constraints. | |
| _tMaker_obj = tMaker_obj | |
| Grad-Shafranov object for reconstruction. | |
| __init__ | ( | self, | |
| tMaker_obj, | |||
| in_filename = 'fit.in', | |||
| out_filename = 'fit.out' ) |
Create equilibrium reconstruction object.
| tMaker_obj | TokaMaker object used for computing G-S equilibria |
| in_filename | Filename to use for reconstruction input |
| out_filename | Filename to use for reconstruction outputs |
| __del__ | ( | self | ) |
Destroy reconstruction object.
| add_flux_loop | ( | self, | |
| loc, | |||
| val, | |||
| err ) |
Add full poloidal flux loop constraint.
| loc | Location of flux loop in R-Z plane [2] |
| val | Value of flux loop constraint |
| err | Error in constraint |
| add_Mirnov | ( | self, | |
| loc, | |||
| norm, | |||
| val, | |||
| err ) |
Add Mirnov sensor constraint.
| loc | Location of Mirnov in R-Z plane [2] |
| norm | Unit normal in R-Z plane [2] |
| val | Value of Mirnov constraint |
| err | Error in constraint |
| add_pressure | ( | self, | |
| loc, | |||
| val, | |||
| err ) |
Add plasma pressure constraint.
| loc | Location of measurement in R-Z plane [2] |
| val | Value of pressure constraint |
| err | Error in constraint |
| add_saddle | ( | self, | |
| p1, | |||
| p2, | |||
| width, | |||
| val, | |||
| err ) |
Add saddle loop constraint.
| p1 | Location of first toroidal saddle leg in R-Z plane [2] |
| p2 | Location of second toroidal saddle leg in R-Z plane [2] |
| width | Toroidal extent in radians |
| val | Value of saddle loop constraint |
| err | Error in constraint |
| read_fit_in | ( | self | ) |
Read constraints from existing input file.
| reconstruct | ( | self, | |
| vacuum = False, | |||
| linearized_fit = False, | |||
| maxits = 100, | |||
| eps = 1.E-3, | |||
| ftol = 1.E-3, | |||
| xtol = 1.E-3, | |||
| gtol = 1.E-3 ) |
Reconstruct G-S equation with specified fitting constraints, profiles, etc.
| vacuum | Perform vacuum reconstruction |
| linearized_fit | Use linearized solve for suitable terms |
| maxits | Maximum number of iterations |
| eps | Epsilong factor for finite difference derivative calculations |
| ftol | Stopping condition: termination occurs when both the actual and predicted relative reductions in the sum of squares are at most ftol |
| xtol | Stopping condition: termination occurs when the relative error between two consecutive iterates is at most xtol |
| gtol | Stopping condition: termination occurs when the cosine of the angle between fvec and any column of the jacobian is at most gtol in absolute value |
| reset_constraints | ( | self | ) |
Remove all current constraints.
| set_DFlux | ( | self, | |
| DFlux, | |||
| err ) |
Set diamagnetic flux constraint.
| DFlux | Value of diamagnetic flux constraint |
| err | Error in constraint |
| set_Ip | ( | self, | |
| Ip, | |||
| err ) |
Set plasma current constraint.
| Ip | Value of plasma current constraint |
| err | Error in constraint |
| write_fit_in | ( | self | ) |
Create reconstruction input file for specified constraints.
|
protected |
Diamagnetic flux constraint.
|
protected |
Flux loop constraints.
|
protected |
Plasma current constraint.
|
protected |
Mirnov sensor constraints.
|
protected |
Plasma pressure constraints.
|
protected |
Saddle loop constraints.
|
protected |
Grad-Shafranov object for reconstruction.
| con_file = in_filename |
Name of constraint file (input for reconstruction).
| out_file = out_filename |
Name of reconstruction output file.
| settings = tokamaker_recon_default_settings(self._tMaker_obj._oft_env) |
Reconstruction specific settings object.