Zephyr Scientific Library (zscilib)
|
API header file for thermo-dynamics in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_thermo_fahren_cels (zsl_real_t t1, zsl_real_t *t2, bool ctf) |
If 'ctf' is set to true, this function transforms the celcius input temperature into fahrenheit. If 'ctf' is set to false, this function transforms the fahrenheit input temperature into celcius. More... | |
int | zsl_phy_thermo_cels_kel (zsl_real_t t1, zsl_real_t *t2, bool ktc) |
If 'ktc' is set to true, this function transforms the kelvin input temperature into celcius. If 'ktc' is set to false, this function transforms the celcius input temperature into kelvin. More... | |
int | zsl_phy_thermo_heat_fusion (zsl_real_t m, zsl_real_t lh, zsl_real_t *q) |
Calculates the necessary heat to melt a material based on its latent heat (lh) and mass (m). More... | |
int | zsl_phy_thermo_heat (zsl_real_t m, zsl_real_t sh, zsl_real_t t, zsl_real_t *q) |
Calculates the amount of heat required to increase the temperature of a material. More... | |
int | zsl_phy_thermo_expan (zsl_real_t l0, zsl_real_t a, zsl_real_t t, zsl_real_t *l) |
Calculates the final length of an object under heat expansion based on its initial length, its linear thermal expansion coeffitient and the difference in temperature. More... | |
int | zsl_phy_thermo_mean_free_path (zsl_real_t nv, zsl_real_t d, zsl_real_t *lambda) |
Calculates the average distance between the collisions of molecules in a gas based on the number of particles per unit volume and the diameter of the gas molecules. More... | |
int | zsl_phy_thermo_effic_heat_engine (zsl_real_t qc, zsl_real_t qh, zsl_real_t *e) |
Calculates the efficiency of a heat engine based on the energy of the cold (qc) and the hot (qh) chambers. More... | |
int | zsl_phy_thermo_carnot_engine (zsl_real_t tc, zsl_real_t qc, zsl_real_t th, zsl_real_t *qh) |
Calculates the energy of the hot chamber of a Carnot engine when the energy of the cold chamber and the temperatures in both chambers are known values. More... | |
API header file for thermo-dynamics in zscilib.
This file contains the zscilib thermo-dynamics APIs
Definition in file thermo.h.