ASCOT5
|
Functions for calculating fields from coil geometry. More...
Go to the source code of this file.
Functions | |
void | biosaw_calc_B (int n, real *x, real *y, real *z, int coil_n, real *coil_x, real *coil_y, real *coil_z, real *Bx, real *By, real *Bz) |
Evaluate magnetic field due to a coil at given points. | |
Functions for calculating fields from coil geometry.
Definition in file biosaw.c.
void biosaw_calc_B | ( | int | n, |
real * | x, | ||
real * | y, | ||
real * | z, | ||
int | coil_n, | ||
real * | coil_x, | ||
real * | coil_y, | ||
real * | coil_z, | ||
real * | Bx, | ||
real * | By, | ||
real * | Bz ) |
Evaluate magnetic field due to a coil at given points.
The magnetic field is evaluated using Biot-Savart law.
n | number of query points |
x | x-coordinate of a query point [m] |
y | y-coordinate of a query point [m] |
z | z-coordinate of a query point [m] |
coil_n | number of points in coil geometry |
coil_x | coil geometry x-coordinate [m] |
coil_y | coil geometry y-coordinate [m] |
coil_z | coil geometry z-coordinate [m] |
Bx | evaluated magnetic field x-component [T] |
By | evaluated magnetic field y-component [T] |
Bz | evaluated magnetic field z-component [T] |