Stellarator and Tokamak Modeling and Meshing Software (STOMMS)
Loading...
Searching...
No Matches
Functions
gfileUtil.h File Reference

Functions

void init_ez_spline_ (int *, int *)
 
void readgfile_ (const char *, int *)
 
void readeqdfile_ (const char *, int *)
 
void eval_field_val_ (const double *r, const double *z, double *val, int *ierr)
 
void eval_field_grad_ (const double *r, const double *z, double *val, int *ierr)
 
void eval_field_deriv_ (const double *r, const double *z, int *dr, int *dz, double *val, int *ierr)
 
void eval_i_val_ (const double *phi, double *val, int *ierr)
 
void eval_i_grad_ (const double *phi, double *val, int *ierr)
 
void eval_b_val_ (const double *r, const double *z, double *Bval, int *ierr)
 
void get_b_box_ (double *bbox)
 
void get_psi_grid_num_ (int *mw, int *mh)
 
void get_psi_and_its_grid_ (double *rgrid, double *zgrid, double *psirz)
 
void get_psi_spline_coefficients_shape_ (int *d1, int *d2, int *d3)
 
void get_psi_spline_coefficients_ (double *psi_coefficients)
 
void get_i_spline_coefficients_shape_ (int *d1, int *d2)
 
void get_i_spline_coefficients_ (double *current_coefficients)
 
void get_bd_pts_ (double *x, double *y, int *numPts)
 
void get_num_bd_pts_ (int *n)
 
void get_sep_pts_ (double *x, double *y, int *numPts)
 
void get_num_sep_pts_ (int *n)
 
void get_psi_array_size_ (int *npsi)
 
void get_psi_array_ (double *psiarray)
 
void get_poloidal_current_ (double *currentarray, int *eqdTag)
 
void get_x_pt_ (double *xPt)
 
void get_axis_ (double *axisPt)
 
void remove_duplicate_pt_ (double *inputx, double *inputy, int *numpt)
 
void set_eqd_psi_factor_ (double *fac)
 
void initial_setting_prf_ (double *, double *, double *)
 
void eq_ftn_setup_ti_ (int *, const char *, int *, double *, double *, double *, double *, double *, double *)
 
void eq_ftn_setup_ts_ (double *, int *, const char *, int *, double *, double *, double *, double *, double *, double *)
 
void eval_gri_val_ (double *, double *, double *, int *)
 
void eval_grs_val_ (double *, double *, double *, int *)
 
void eval_field_val (const double *r, const double *z, double *val, int *ierr, bool reversePsi)
 
void eval_field_grad (const double *r, const double *z, double *val, int *ierr, bool reversePsi)
 
void eval_field_grad_abs2 (const double *r, const double *z, double *val, int *ierr, bool reversePsi)
 
void eval_field_deriv (const double *r, const double *z, int *dr, int *dz, double *val, int *ierr, bool reversePsi)
 

Function Documentation

◆ eq_ftn_setup_ti_()

void eq_ftn_setup_ti_ ( int *  ,
const char *  ,
int *  ,
double *  ,
double *  ,
double *  ,
double *  ,
double *  ,
double *   
)

◆ eq_ftn_setup_ts_()

void eq_ftn_setup_ts_ ( double *  ,
int *  ,
const char *  ,
int *  ,
double *  ,
double *  ,
double *  ,
double *  ,
double *  ,
double *   
)

◆ eval_b_val_()

void eval_b_val_ ( const double *  r,
const double *  z,
double *  Bval,
int *  ierr 
)

◆ eval_field_deriv()

void eval_field_deriv ( const double *  r,
const double *  z,
int *  dr,
int *  dz,
double *  val,
int *  ierr,
bool  reversePsi 
)
inline

◆ eval_field_deriv_()

void eval_field_deriv_ ( const double *  r,
const double *  z,
int *  dr,
int *  dz,
double *  val,
int *  ierr 
)

◆ eval_field_grad()

void eval_field_grad ( const double *  r,
const double *  z,
double *  val,
int *  ierr,
bool  reversePsi 
)
inline

◆ eval_field_grad_()

void eval_field_grad_ ( const double *  r,
const double *  z,
double *  val,
int *  ierr 
)

◆ eval_field_grad_abs2()

void eval_field_grad_abs2 ( const double *  r,
const double *  z,
double *  val,
int *  ierr,
bool  reversePsi 
)
inline

◆ eval_field_val()

void eval_field_val ( const double *  r,
const double *  z,
double *  val,
int *  ierr,
bool  reversePsi 
)
inline

◆ eval_field_val_()

void eval_field_val_ ( const double *  r,
const double *  z,
double *  val,
int *  ierr 
)

◆ eval_gri_val_()

void eval_gri_val_ ( double *  ,
double *  ,
double *  ,
int *   
)

◆ eval_grs_val_()

void eval_grs_val_ ( double *  ,
double *  ,
double *  ,
int *   
)

◆ eval_i_grad_()

void eval_i_grad_ ( const double *  phi,
double *  val,
int *  ierr 
)

◆ eval_i_val_()

void eval_i_val_ ( const double *  phi,
double *  val,
int *  ierr 
)

◆ get_axis_()

void get_axis_ ( double *  axisPt)

◆ get_b_box_()

void get_b_box_ ( double *  bbox)

◆ get_bd_pts_()

void get_bd_pts_ ( double *  x,
double *  y,
int *  numPts 
)

Function to get wall curve points from eqdsk file.

Parameters
xr coordinates of points.
yz coordinates of points.
numPtstotal number of points.

◆ get_i_spline_coefficients_()

void get_i_spline_coefficients_ ( double *  current_coefficients)

Function to get the coefficients of poloidal current spline.

Parameters
current_coefficientsA 1D flattened array of the poloidal current spline coefficients.

◆ get_i_spline_coefficients_shape_()

void get_i_spline_coefficients_shape_ ( int *  d1,
int *  d2 
)

Function to get the shape of the original poloidal current spline coefficients array.

Parameters
d1size of array in dimension 1.
d2size of array in dimension 2. numCoefficients = d1*d2

◆ get_num_bd_pts_()

void get_num_bd_pts_ ( int *  n)

Function to get total number of wall (limiter) points from eqdsk.

Parameters
nnumber of points.

◆ get_num_sep_pts_()

void get_num_sep_pts_ ( int *  n)

Function to get total number of plasma boundary points from eqdsk.

Parameters
nnumber of points.

◆ get_poloidal_current_()

void get_poloidal_current_ ( double *  currentarray,
int *  eqdTag 
)

Function to get poloidal current values from eqdsk values. Number of current values is equal to number of psi values. size of psi array == size of currentarray.

Parameters
currentarrayarray to hold output poloidal current data.
eqdTagset eqdTag = 1, if input equilibrium file is eqd, else eqdTag = 0 for eqdsk files.

◆ get_psi_and_its_grid_()

void get_psi_and_its_grid_ ( double *  rgrid,
double *  zgrid,
double *  psirz 
)

Function to get the grid point coordinates and psi grid values.

Parameters
rgridcoordinates of points in the R direction.
zgridcoordinates of points in the Z direction.
psirzpsi field on the grid points (for mw*nh number of points)

◆ get_psi_array_()

void get_psi_array_ ( double *  psiarray)

Function to get the psi array (starts frm oPoints to plasma boundary). It is different than the psi background grid.

Parameters
psiarrayarray to contain output psi values.

◆ get_psi_array_size_()

void get_psi_array_size_ ( int *  npsi)

Function to get the size of psi array (starts frm oPoints to plasma boundary). It is different than the psi background grid.

Parameters
npsinumber of psi points given in the eqdsk file.

◆ get_psi_grid_num_()

void get_psi_grid_num_ ( int *  mw,
int *  mh 
)

Function to get the number of grid points on the background equilibrium grid.

Parameters
mwnumber of points in R direction.
mhnumber of points in Z direction.

◆ get_psi_spline_coefficients_()

void get_psi_spline_coefficients_ ( double *  psi_coefficients)

Function to get the coefficients of psi spline.

Parameters
psi_coefficientsA 1D flattened array of the psi spline coefficients.

◆ get_psi_spline_coefficients_shape_()

void get_psi_spline_coefficients_shape_ ( int *  d1,
int *  d2,
int *  d3 
)

Function to get the shape of the original spline coefficients array.

Parameters
d1size of array in dimension 1.
d2size of array in dimension 2.
d3size of array in dimension 3. numCoefficients = d1*d2*d3

◆ get_sep_pts_()

void get_sep_pts_ ( double *  x,
double *  y,
int *  numPts 
)

Function to get separatrix (plasma boundary) points from eqdsk file.

Parameters
xr coordinates of points.
yz coordinates of points.
numPtstotal number of points.

◆ get_x_pt_()

void get_x_pt_ ( double *  xPt)

◆ init_ez_spline_()

void init_ez_spline_ ( int *  ,
int *   
)

◆ initial_setting_prf_()

void initial_setting_prf_ ( double *  ,
double *  ,
double *   
)

◆ readeqdfile_()

void readeqdfile_ ( const char *  ,
int *   
)

◆ readgfile_()

void readgfile_ ( const char *  ,
int *   
)

◆ remove_duplicate_pt_()

void remove_duplicate_pt_ ( double *  inputx,
double *  inputy,
int *  numpt 
)

◆ set_eqd_psi_factor_()

void set_eqd_psi_factor_ ( double *  fac)