The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
TokaMaker_field_interpolator Class Reference

Detailed Description

Interpolation class for Grad-Shafranov fields.

Public Member Functions

 __del__ (self)
 __init__ (self, tMaker_obj, int_obj, int_type, dim, fbary_tol=1.E-8)
 Initialize interpolation object.
 eval (self, pt)
 Evaluate field at a given location.

Public Attributes

 cell = c_int(-1)
int dim_eval = 3
 dim_return = dim
 fbary_tol = fbary_tol
 int_type = int_type
 val = numpy.zeros((self.dim_eval,), dtype=numpy.float64)

Protected Attributes

 _int_obj = int_obj
 _tMaker_obj = tMaker_obj

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
tMaker_obj,
int_obj,
int_type,
dim,
fbary_tol = 1.E-8 )

Initialize interpolation object.

Parameters
tMaker_objAddress of FORTRAN TokaMaker class
int_objAddress of FORTRAN interpolation class
int_typeInterpolation type (see get_field_eval)
dimDimension of vector field
fbary_tolTolerance for physical to logical mapping

◆ __del__()

__del__ ( self)
Destroy underlying interpolation object

Member Function Documentation

◆ eval()

eval ( self,
pt )

Evaluate field at a given location.

Parameters
ptLocation for evaluation [2]
Returns
Field at evaluation point [self.dim_return]

Member Data Documentation

◆ _int_obj

_int_obj = int_obj
protected

◆ _tMaker_obj

_tMaker_obj = tMaker_obj
protected

◆ cell

cell = c_int(-1)

◆ dim_eval

dim_eval = 3

◆ dim_return

dim_return = dim

◆ fbary_tol

fbary_tol = fbary_tol

◆ int_type

int_type = int_type

◆ val

val = numpy.zeros((self.dim_eval,), dtype=numpy.float64)

The documentation for this class was generated from the following file: