ASCOT5
Loading...
Searching...
No Matches
Functions
biosaw.c File Reference

Functions for calculating fields from coil geometry. More...

#include "ascot5.h"
#include "biosaw.h"
#include "consts.h"
#include "math.h"

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.
 

Detailed Description

Functions for calculating fields from coil geometry.

Definition in file biosaw.c.

Function Documentation

◆ biosaw_calc_B()

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.

Parameters
nnumber of query points
xx-coordinate of a query point [m]
yy-coordinate of a query point [m]
zz-coordinate of a query point [m]
coil_nnumber of points in coil geometry
coil_xcoil geometry x-coordinate [m]
coil_ycoil geometry y-coordinate [m]
coil_zcoil geometry z-coordinate [m]
Bxevaluated magnetic field x-component [T]
Byevaluated magnetic field y-component [T]
Bzevaluated magnetic field z-component [T]

Definition at line 27 of file biosaw.c.