Header file for N0_1D.c.
More...
Go to the source code of this file.
Header file for N0_1D.c.
Definition in file N0_1D.h.
◆ N0_1D_init_offload()
Initialize offload data.
- Parameters
-
offload_data | pointer to offload data struct |
offload_array | pointer to offload data array |
- Returns
- zero if initialization succeeded
Definition at line 24 of file N0_1D.c.
◆ N0_1D_free_offload()
Free offload array and reset parameters.
This function deallocates the offload_array.
- Parameters
-
offload_data | pointer to offload data struct |
offload_array | pointer to pointer to offload array |
Definition at line 60 of file N0_1D.c.
◆ N0_1D_init()
Initialize neutral data on target.
This function copies parameters from the offload struct to the struct on target and sets the data pointers on target struct to correct offsets in the offload array.
Any initialization that requires any computations must have been done already when the offload struct was initialized.
- Parameters
-
ndata | pointer to data struct on target |
offload_data | pointer to offload data struct |
offload_array | pointer to offload array |
Definition at line 80 of file N0_1D.c.
◆ N0_1D_eval_n0()
Evaluate neutral density.
This function evaluates the neutral density at the given coordinates using linear interpolation on the 1D neutral density data.
- Parameters
-
n0 | n0 value will be stored in n0[0] |
rho | normalized poloidal flux coordinate |
ndata | pointer to neutral data struct |
- Returns
- zero if evaluation succeeded
Definition at line 115 of file N0_1D.c.
◆ N0_1D_eval_t0()
Evaluate neutral temperature.
This function evaluates the neutral temperature at the given coordinates using linear interpolation on the 1D neutral temperature data.
- Parameters
-
t0 | t0 value will be stored in t0[0] |
rho | normalized poloidal flux coordinate |
ndata | pointer to neutral data struct |
- Returns
- zero if evaluation succeeded
Definition at line 141 of file N0_1D.c.
◆ N0_1D_get_n_species()
Return number of neutral species.
- Parameters
-
ndata | pointer to neutral data struct |
- Returns
- number of neutral species
Definition at line 162 of file N0_1D.c.