|
Stellarator and Tokamak Modeling and Meshing Software (STOMMS)
|
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) |
| 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_b_val_ | ( | const double * | r, |
| const double * | z, | ||
| double * | Bval, | ||
| int * | ierr | ||
| ) |
|
inline |
| void eval_field_deriv_ | ( | const double * | r, |
| const double * | z, | ||
| int * | dr, | ||
| int * | dz, | ||
| double * | val, | ||
| int * | ierr | ||
| ) |
|
inline |
| void eval_field_grad_ | ( | const double * | r, |
| const double * | z, | ||
| double * | val, | ||
| int * | ierr | ||
| ) |
|
inline |
|
inline |
| void eval_field_val_ | ( | const double * | r, |
| const double * | z, | ||
| double * | val, | ||
| int * | ierr | ||
| ) |
| void eval_gri_val_ | ( | double * | , |
| double * | , | ||
| double * | , | ||
| int * | |||
| ) |
| void eval_grs_val_ | ( | double * | , |
| double * | , | ||
| double * | , | ||
| int * | |||
| ) |
| void eval_i_grad_ | ( | const double * | phi, |
| double * | val, | ||
| int * | ierr | ||
| ) |
| void eval_i_val_ | ( | const double * | phi, |
| double * | val, | ||
| int * | ierr | ||
| ) |
| void get_axis_ | ( | double * | axisPt | ) |
| void get_b_box_ | ( | double * | bbox | ) |
| void get_bd_pts_ | ( | double * | x, |
| double * | y, | ||
| int * | numPts | ||
| ) |
Function to get wall curve points from eqdsk file.
| x | r coordinates of points. |
| y | z coordinates of points. |
| numPts | total number of points. |
| void get_i_spline_coefficients_ | ( | double * | current_coefficients | ) |
Function to get the coefficients of poloidal current spline.
| current_coefficients | A 1D flattened array of the poloidal current spline coefficients. |
| void get_i_spline_coefficients_shape_ | ( | int * | d1, |
| int * | d2 | ||
| ) |
Function to get the shape of the original poloidal current spline coefficients array.
| d1 | size of array in dimension 1. |
| d2 | size of array in dimension 2. numCoefficients = d1*d2 |
| void get_num_bd_pts_ | ( | int * | n | ) |
Function to get total number of wall (limiter) points from eqdsk.
| n | number of points. |
| void get_num_sep_pts_ | ( | int * | n | ) |
Function to get total number of plasma boundary points from eqdsk.
| n | number of points. |
| 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.
| currentarray | array to hold output poloidal current data. |
| eqdTag | set eqdTag = 1, if input equilibrium file is eqd, else eqdTag = 0 for eqdsk files. |
| void get_psi_and_its_grid_ | ( | double * | rgrid, |
| double * | zgrid, | ||
| double * | psirz | ||
| ) |
Function to get the grid point coordinates and psi grid values.
| rgrid | coordinates of points in the R direction. |
| zgrid | coordinates of points in the Z direction. |
| psirz | psi field on the grid points (for mw*nh number of points) |
| 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.
| psiarray | array to contain output psi values. |
| 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.
| npsi | number of psi points given in the eqdsk file. |
| void get_psi_grid_num_ | ( | int * | mw, |
| int * | mh | ||
| ) |
Function to get the number of grid points on the background equilibrium grid.
| mw | number of points in R direction. |
| mh | number of points in Z direction. |
| void get_psi_spline_coefficients_ | ( | double * | psi_coefficients | ) |
Function to get the coefficients of psi spline.
| psi_coefficients | A 1D flattened array of the psi spline coefficients. |
| void get_psi_spline_coefficients_shape_ | ( | int * | d1, |
| int * | d2, | ||
| int * | d3 | ||
| ) |
Function to get the shape of the original spline coefficients array.
| d1 | size of array in dimension 1. |
| d2 | size of array in dimension 2. |
| d3 | size of array in dimension 3. numCoefficients = d1*d2*d3 |
| void get_sep_pts_ | ( | double * | x, |
| double * | y, | ||
| int * | numPts | ||
| ) |
Function to get separatrix (plasma boundary) points from eqdsk file.
| x | r coordinates of points. |
| y | z coordinates of points. |
| numPts | total number of points. |
| void get_x_pt_ | ( | double * | xPt | ) |
| void init_ez_spline_ | ( | int * | , |
| int * | |||
| ) |
| void initial_setting_prf_ | ( | double * | , |
| double * | , | ||
| double * | |||
| ) |
| void readeqdfile_ | ( | const char * | , |
| int * | |||
| ) |
| void readgfile_ | ( | const char * | , |
| int * | |||
| ) |
| void remove_duplicate_pt_ | ( | double * | inputx, |
| double * | inputy, | ||
| int * | numpt | ||
| ) |
| void set_eqd_psi_factor_ | ( | double * | fac | ) |