Zephyr Scientific Library (zscilib)
magnetics.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 Kevin Townsend (KTOWN)
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
22 #ifndef ZEPHYR_INCLUDE_ZSL_MAGNETICS_H_
23 #define ZEPHYR_INCLUDE_ZSL_MAGNETICS_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
47  zsl_real_t theta, zsl_real_t *f);
48 
65  zsl_real_t theta, zsl_real_t *f);
66 
83  zsl_real_t theta, zsl_real_t *tor);
84 
102  zsl_real_t *u);
103 
119  zsl_real_t m, zsl_real_t *r);
120 
136  zsl_real_t *fl);
137 
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* ZEPHYR_INCLUDE_ZSL_MAGNETICS_H_ */
156  /* End of magnetics group */
zsl_phy_magn_torque_loop
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 ...
zsl_phy_magn_force_wire
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.
zsl_phy_magn_flux
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),...
zsl_phy_magn_pot_dipole
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 m...
zsl.h
API header file for zscilib.
zsl_phy_magn_orb_radius
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 ...
zsl_real_t
double zsl_real_t
Definition: zsl.h:51
zsl_phy_magn_mom
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 ...
zsl_phy_magn_force
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 ma...