ASCOT5
|
Header file for B_TC.c. More...
Go to the source code of this file.
Data Structures | |
struct | B_TC_data |
TC magnetic field parameters on the target. More... | |
Functions | |
int | B_TC_init (B_TC_data *data, real axisr, real axisz, real psival, real rhoval, real B[3], real dB[9]) |
Initialize magnetic field data. | |
void | B_TC_free (B_TC_data *data) |
Free allocated resources. | |
void | B_TC_offload (B_TC_data *data) |
Offload data to the accelerator. | |
a5err | B_TC_eval_B (real B[3], real r, real phi, real z, B_TC_data *Bdata) |
Evaluate magnetic field. | |
DECLARE_TARGET_END a5err | B_TC_eval_psi (real *psi, real r, real phi, real z, B_TC_data *Bdata) |
Evaluate poloidal flux psi. | |
DECLARE_TARGET_END a5err | B_TC_eval_psi_dpsi (real psi_dpsi[4], real r, real phi, real z, B_TC_data *Bdata) |
Evaluate poloidal flux psi and its derivatives. | |
DECLARE_TARGET_END a5err | B_TC_eval_rho_drho (real rho_drho[4], real r, real phi, real z, B_TC_data *Bdata) |
Evaluate normalized poloidal flux rho and its derivatives. | |
DECLARE_TARGET_END a5err | B_TC_eval_B_dB (real B_dB[12], real r, real phi, real z, B_TC_data *Bdata) |
Evaluate magnetic field and its derivatives. | |
DECLARE_TARGET_END a5err | B_TC_get_axis_rz (real rz[2], B_TC_data *Bdata) |
Return magnetic axis R-coordinate. | |
Header file for B_TC.c.
Contains declaration of B_TC_offload_data and B_TC_data structs.
Definition in file B_TC.h.
int B_TC_init | ( | B_TC_data * | data, |
real | axisr, | ||
real | axisz, | ||
real | psival, | ||
real | rhoval, | ||
real | B[3], | ||
real | dB[9] ) |
Initialize magnetic field data.
data | pointer to the data struct |
axisr | value returned when quering magnetic axis R coordinate [m] |
axisz | value returned when quering magnetic axis z coordinate [m] |
psival | value returned when quering magnetic flux [Vs/m] |
rhoval | value returned when quering normalized poloidal flux [1] |
B | magnetic field at origo [B_x, B_y, B_z] [T] |
dB | magnetic field Jacobian [dB_x/dx, dB_x/dy, dB_x/dz, dB_y/dx, dB_y/dy, dB_y/dz, dB_z/dx, dB_z/dy, dB_z/dz] [T/m] |
void B_TC_offload | ( | B_TC_data * | data | ) |
DECLARE_TARGET_END a5err B_TC_eval_rho_drho | ( | real | rho_drho[4], |
real | r, | ||
real | phi, | ||
real | z, | ||
B_TC_data * | Bdata ) |
Evaluate normalized poloidal flux rho and its derivatives.
rho_drho | pointer where rho and its derivatives will be stored |
r | R coordinate [m] |
phi | phi coordinate [rad] |
z | z coordinate [m] |
Bdata | pointer to magnetic field data struct |