ASCOT5
|
Header file for plasma_1DS.c. More...
Go to the source code of this file.
Data Structures | |
struct | plasma_1DS_data |
1D spline plasma parameters on the target More... | |
Functions | |
int | plasma_1DS_init (plasma_1DS_data *data, int nrho, real rhomin, real rhomax, int nion, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni) |
Initialize 1DS plasma data and check inputs. | |
void | plasma_1DS_free (plasma_1DS_data *data) |
Free allocated resources. | |
void | plasma_1DS_offload (plasma_1DS_data *data) |
Offload data to the accelerator. | |
a5err | plasma_1DS_eval_temp (real *temp, real rho, int species, plasma_1DS_data *pls_data) |
Evaluate plasma temperature. | |
DECLARE_TARGET_END a5err | plasma_1DS_eval_dens (real *dens, real rho, int species, plasma_1DS_data *pls_data) |
Evaluate plasma density. | |
DECLARE_TARGET_END a5err | plasma_1DS_eval_densandtemp (real *dens, real *temp, real rho, plasma_1DS_data *pls_data) |
Evaluate plasma density and temperature for all species. | |
Header file for plasma_1DS.c.
Definition in file plasma_1DS.h.
int plasma_1DS_init | ( | plasma_1DS_data * | data, |
int | nrho, | ||
real | rhomin, | ||
real | rhomax, | ||
int | nion, | ||
int * | anum, | ||
int * | znum, | ||
real * | mass, | ||
real * | charge, | ||
real * | Te, | ||
real * | Ti, | ||
real * | ne, | ||
real * | ni ) |
Initialize 1DS plasma data and check inputs.
data | pointer to the data struct |
Definition at line 43 of file plasma_1DS.c.
void plasma_1DS_free | ( | plasma_1DS_data * | data | ) |
Free allocated resources.
data | pointer to the data struct |
Definition at line 189 of file plasma_1DS.c.
void plasma_1DS_offload | ( | plasma_1DS_data * | data | ) |
Offload data to the accelerator.
data | pointer to the data struct |
Definition at line 205 of file plasma_1DS.c.
a5err plasma_1DS_eval_temp | ( | real * | temp, |
real | rho, | ||
int | species, | ||
plasma_1DS_data * | plasma_data ) |
Evaluate plasma temperature.
temp | temperature value will be stored in temp[0] |
rho | radial coordinate |
species | index of plasma species |
plasma_data | pointer to plasma data struct |
Definition at line 228 of file plasma_1DS.c.
DECLARE_TARGET_END a5err plasma_1DS_eval_dens | ( | real * | dens, |
real | rho, | ||
int | species, | ||
plasma_1DS_data * | plasma_data ) |
Evaluate plasma density.
dens | density value will be stored in dens[0] |
rho | radial coordinate |
species | index of plasma species |
plasma_data | pointer to plasma data struct |
Definition at line 259 of file plasma_1DS.c.
DECLARE_TARGET_END a5err plasma_1DS_eval_densandtemp | ( | real * | dens, |
real * | temp, | ||
real | rho, | ||
plasma_1DS_data * | plasma_data ) |
Evaluate plasma density and temperature for all species.
This function evaluates the density and temperature of all plasma species at the given radial coordinate using spline interpolation.
dens | pointer to where interpolated densities [m^-3] are stored |
temp | pointer to where interpolated temperatures [J] are stored |
rho | radial coordinate |
plasma_data | pointer to plasma data struct |
Definition at line 294 of file plasma_1DS.c.