Zephyr Scientific Library (zscilib)
electric.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_ELECTRIC_H_
23 #define ZEPHYR_INCLUDE_ZSL_ELECTRIC_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
44 
58  zsl_real_t *f);
59 
71 
84 
98  zsl_real_t *u);
99 
112 
128  zsl_real_t *fl);
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif /* ZEPHYR_INCLUDE_ZSL_ELECTRIC_H_ */
135  /* End of electric group */
zsl_phy_elec_force
int zsl_phy_elec_force(zsl_real_t q1, zsl_real_t q2, zsl_real_t r, zsl_real_t *f)
Calculates the electric force in newtons between two charged bodies based on their charges and the di...
zsl_phy_elec_force2
int zsl_phy_elec_force2(zsl_real_t q, zsl_real_t e, zsl_real_t *f)
Calculates the electric force in newtons that a charged body experiences when it enters an electric f...
zsl_phy_elec_flux
int zsl_phy_elec_flux(zsl_real_t e, zsl_real_t a, zsl_real_t theta, zsl_real_t *fl)
Calculates the electric flux that flows across a surface based on the area (a), the electric field (b...
zsl_phy_elec_charge_dens
int zsl_phy_elec_charge_dens(zsl_real_t q, zsl_real_t v, zsl_real_t *d)
Calculates the uniform charge density of an charged body based on its charge and its volume.
zsl_phy_elec_field
int zsl_phy_elec_field(zsl_real_t q, zsl_real_t r, zsl_real_t *e)
Calculates the electric field created by a charged body anywhere in space.
zsl.h
API header file for zscilib.
zsl_phy_elec_potential
int zsl_phy_elec_potential(zsl_real_t q, zsl_real_t r, zsl_real_t *v)
Calculates the Coulomb's potential of a charged body anywhere in space.
zsl_real_t
double zsl_real_t
Definition: zsl.h:51
zsl_phy_elec_pot_ener
int zsl_phy_elec_pot_ener(zsl_real_t q1, zsl_real_t q2, zsl_real_t r, zsl_real_t *u)
Calculates the electric potential energy in joules of two charged bodies based on their charges and t...