Zephyr Scientific Library (zscilib)
thermo.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_THERMO_H_
23 #define ZEPHYR_INCLUDE_ZSL_THERMO_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
42 int zsl_phy_thermo_fahren_cels(zsl_real_t t1, zsl_real_t *t2, bool ctf);
43 
55 int zsl_phy_thermo_cels_kel(zsl_real_t t1, zsl_real_t *t2, bool ktc);
56 
69 
84  zsl_real_t *q);
85 
101  zsl_real_t *l);
102 
117  zsl_real_t *lambda);
118 
132  zsl_real_t *e);
133 
149  zsl_real_t *qh);
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* ZEPHYR_INCLUDE_ZSL_THERMO_H_ */
156  /* End of thermo-dynamics group */
zsl_phy_thermo_heat_fusion
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).
zsl_phy_thermo_expan
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,...
zsl_phy_thermo_effic_heat_engine
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) cham...
zsl_phy_thermo_carnot_engine
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 t...
zsl_phy_thermo_heat
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.
zsl_phy_thermo_cels_kel
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....
zsl.h
API header file for zscilib.
zsl_phy_thermo_mean_free_path
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 p...
zsl_real_t
double zsl_real_t
Definition: zsl.h:51
zsl_phy_thermo_fahren_cels
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....