Zephyr Scientific Library (zscilib)
|
API header file for electrical components in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_ecmp_capac_cpv (zsl_real_t q, zsl_real_t v, zsl_real_t *c) |
Calculates capacitance in farads based on charge (q) and voltage (v). More... | |
int | zsl_phy_ecmp_capac_ad (zsl_real_t a, zsl_real_t d, zsl_real_t *c) |
Calculates capacitance in farads based on the permitivity of freespace multiplied by area (a) and divided by distance (d). i.e.: C = E (A / D) where E = 8.85 x 10^-12 farad per meter (F/m). More... | |
int | zsl_phy_ecmp_ener_capac (zsl_real_t c, zsl_real_t v, zsl_real_t *u) |
Calculates the energy in joules of a capacitor of capacitance 'c' and voltage 'v'. More... | |
int | zsl_phy_ecmp_ener_induc (zsl_real_t l, zsl_real_t i, zsl_real_t *u) |
Calculates the energy in joules of an inductor of inductance 'l' and electric current 'i'. More... | |
int | zsl_phy_ecmp_trans (uint8_t t1, zsl_real_t v1, uint8_t t2, zsl_real_t *v2) |
Calculates the output voltage in volts in a two-coil based transformer given the number of turns on each coil and the input voltage. More... | |
int | zsl_phy_ecmp_rlc_volt (zsl_real_t vr, zsl_real_t vl, zsl_real_t vc, zsl_real_t *v) |
Calculates the total voltage of a RCL circuit based on the voltage in the resistance (vr), in the inductor (vl) and in the capacitor (vc). More... | |
int | zsl_phy_ecmp_rc_charg_i (zsl_real_t r, zsl_real_t c, zsl_real_t t, zsl_real_t i0, zsl_real_t *i) |
Calculates the electric current of a capacitor in a RC circuit during its charging phase. More... | |
int | zsl_phy_ecmp_rc_charg_q (zsl_real_t r, zsl_real_t c, zsl_real_t t, zsl_real_t q0, zsl_real_t *q) |
Calculates the electric charge in coulombs of a capacitor in a RC circuit during its charging phase. More... | |
int | zsl_phy_ecmp_rc_discharg_i (zsl_real_t r, zsl_real_t c, zsl_real_t t, zsl_real_t i0, zsl_real_t *i) |
Calculates the electric current of a capacitor in a RC circuit during its discharging phase. More... | |
int | zsl_phy_ecmp_rc_discharg_q (zsl_real_t r, zsl_real_t c, zsl_real_t t, zsl_real_t q0, zsl_real_t *q) |
Calculates the electric charge in coulombs of a capacitor in a RC circuit during its discharging phase. More... | |
int | zsl_phy_ecmp_rl_current (zsl_real_t r, zsl_real_t l, zsl_real_t t, zsl_real_t i0, zsl_real_t *i) |
Calculates the electric current in amperes of a RL circuit in time. More... | |
API header file for electrical components in zscilib.
This file contains the zscilib electrical component APIs
Definition in file eleccomp.h.