ASCOT5
|
Header file for plasma_1Dt.c. More...
Go to the source code of this file.
Data Structures | |
struct | plasma_1Dt_data |
1D plasma parameters on the target More... | |
Functions | |
int | plasma_1Dt_init (plasma_1Dt_data *data, int nrho, int ntime, int nion, real *rho, real *time, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni) |
Initialize 1Dt plasma data and check inputs. | |
void | plasma_1Dt_free (plasma_1Dt_data *pls_data) |
Free allocated resources. | |
void | plasma_1Dt_offload (plasma_1Dt_data *pls_data) |
Offload data to the accelerator. | |
a5err | plasma_1Dt_eval_temp (real *dens, real rho, real t, int species, plasma_1Dt_data *pls_data) |
Evaluate plasma temperature. | |
DECLARE_TARGET_END a5err | plasma_1Dt_eval_dens (real *temp, real rho, real t, int species, plasma_1Dt_data *pls_data) |
Evaluate plasma density. | |
DECLARE_TARGET_END a5err | plasma_1Dt_eval_densandtemp (real *dens, real *temp, real rho, real t, plasma_1Dt_data *pls_data) |
Evaluate plasma density and temperature for all species. | |
Header file for plasma_1Dt.c.
Definition in file plasma_1Dt.h.
int plasma_1Dt_init | ( | plasma_1Dt_data * | data, |
int | nrho, | ||
int | ntime, | ||
int | nion, | ||
real * | rho, | ||
real * | time, | ||
int * | anum, | ||
int * | znum, | ||
real * | mass, | ||
real * | charge, | ||
real * | Te, | ||
real * | Ti, | ||
real * | ne, | ||
real * | ni ) |
Initialize 1Dt plasma data and check inputs.
data | pointer to the data struct |
Definition at line 22 of file plasma_1Dt.c.
void plasma_1Dt_free | ( | plasma_1Dt_data * | data | ) |
Free allocated resources.
data | pointer to the data struct |
Definition at line 118 of file plasma_1Dt.c.
void plasma_1Dt_offload | ( | plasma_1Dt_data * | data | ) |
Offload data to the accelerator.
data | pointer to the data struct |
Definition at line 134 of file plasma_1Dt.c.
a5err plasma_1Dt_eval_temp | ( | real * | temp, |
real | rho, | ||
real | t, | ||
int | species, | ||
plasma_1Dt_data * | pls_data ) |
Evaluate plasma temperature.
This function evaluates the temperature of a plasma species at the given radial coordinate using linear interpolation.
temp | pointer to where evaluated temperature [J] is stored |
rho | radial coordinate |
t | time instant |
species | index of plasma species |
pls_data | pointer to plasma data struct |
Definition at line 158 of file plasma_1Dt.c.
DECLARE_TARGET_END a5err plasma_1Dt_eval_dens | ( | real * | dens, |
real | rho, | ||
real | t, | ||
int | species, | ||
plasma_1Dt_data * | pls_data ) |
Evaluate plasma density.
This function evaluates the density of a plasma species at the given radial coordinate using linear interpolation.
dens | pointer to where evaluated density [m^-3] is stored |
rho | radial coordinate |
t | time instant |
species | index of plasma species |
pls_data | pointer to plasma data struct |
Definition at line 186 of file plasma_1Dt.c.
DECLARE_TARGET_END a5err plasma_1Dt_eval_densandtemp | ( | real * | dens, |
real * | temp, | ||
real | rho, | ||
real | t, | ||
plasma_1Dt_data * | pls_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 linear interpolation.
dens | pointer to where interpolated densities [m^-3] are stored |
temp | pointer to where interpolated temperatures [J] are stored |
rho | radial coordinate |
t | time instant |
pls_data | pointer to plasma data struct |
Definition at line 213 of file plasma_1Dt.c.