Zephyr Scientific Library (zscilib)
gases.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_GASES_H_
23 #define ZEPHYR_INCLUDE_ZSL_GASES_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
45 
60 
75  zsl_real_t *vf);
76 
91  zsl_real_t *vf);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* ZEPHYR_INCLUDE_ZSL_GASES_H_ */
98  /* End of gases group */
zsl_phy_gas_press
int zsl_phy_gas_press(zsl_real_t v, zsl_real_t n, zsl_real_t t, zsl_real_t *p)
Calculates the pressure of an ideal gas based on the number of moles, the temperature and the volume ...
zsl_phy_gas_av_vel
int zsl_phy_gas_av_vel(zsl_real_t m, zsl_real_t n, zsl_real_t t, zsl_real_t *v)
Calculates the average velocity of a gas molecule based on the mass of gas (m), its temperature (t) a...
zsl_phy_gas_charles_lussac
int zsl_phy_gas_charles_lussac(zsl_real_t ti, zsl_real_t vi, zsl_real_t tf, zsl_real_t *vf)
Given the initial and final temperature, and the initial volume of an ideal gas, this function calcul...
zsl_phy_gas_boyle
int zsl_phy_gas_boyle(zsl_real_t pi, zsl_real_t vi, zsl_real_t pf, zsl_real_t *vf)
Given the initial and final pressure, and the initial volume of an ideal gas, this function calculate...
zsl.h
API header file for zscilib.
zsl_real_t
double zsl_real_t
Definition: zsl.h:51