Zephyr Scientific Library (zscilib)
|
API header file for magnetics in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_magn_force (zsl_real_t q, zsl_real_t v, zsl_real_t b, zsl_real_t theta, zsl_real_t *f) |
Calculates the module of the magnetic force in newtons that experiences a charged body moving in a magnetic field. More... | |
int | zsl_phy_magn_force_wire (zsl_real_t i, zsl_real_t l, zsl_real_t b, zsl_real_t theta, zsl_real_t *f) |
Calculates the module of the magnetic force in newtons that experiences an electric wire. More... | |
int | zsl_phy_magn_torque_loop (zsl_real_t i, zsl_real_t a, zsl_real_t b, zsl_real_t theta, zsl_real_t *tor) |
Calculates the torque in newtons and meters that experiences a wire loop with intensity 'i' and area 'a' under a magnetic field 'b'. More... | |
int | zsl_phy_magn_pot_dipole (zsl_real_t mom, zsl_real_t b, zsl_real_t theta, zsl_real_t *u) |
Calculates the potential energy in joules of a magnetic dipole with magnetic momentum 'mom' under a magnetic field 'b' that has been rotated an angle 'theta' from its resting position. More... | |
int | zsl_phy_magn_orb_radius (zsl_real_t q, zsl_real_t v, zsl_real_t b, zsl_real_t m, zsl_real_t *r) |
Calculates the radius of the circular trajectory a charged object descrives when entering a magnetic field. More... | |
int | zsl_phy_magn_flux (zsl_real_t a, zsl_real_t b, zsl_real_t theta, zsl_real_t *fl) |
Calculates the magnetic flux in webers that flows across a surface based on the area (a), the magnetic field (b) and the angle they form. More... | |
int | zsl_phy_magn_mom (zsl_real_t i, zsl_real_t a, zsl_real_t *mom) |
Calculates the magnetic momentum of a wire loop in amperes and meters squared based on its intensity (i) and surface (a). More... | |
API header file for magnetics in zscilib.
This file contains the zscilib magnetics APIs
Definition in file magnetics.h.