Zephyr Scientific Library (zscilib)
Functions
gases.h File Reference

API header file for gases in zscilib. More...

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

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) and the number of moles of gas (n). More...
 
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 of gas. More...
 
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 calculates the final volume of the gas supposing the temperature hasn't changed through the process. More...
 
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 calculates the final volume of the gas supposing its pressure hasn't changed through the process. More...
 

Detailed Description

API header file for gases in zscilib.

This file contains the zscilib gases APIs

Definition in file gases.h.