Zephyr Scientific Library (zscilib)
|
API header file for fluids in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_fluid_dens (zsl_real_t m, zsl_real_t v, zsl_real_t *d) |
Calculates the density of a material based on its mass and volume. More... | |
int | zsl_phy_fluid_simple_press (zsl_real_t f, zsl_real_t a, zsl_real_t *p) |
Calculates the pressure in pascals based on a force (f) against a surface (a). More... | |
int | zsl_phy_fluid_press (zsl_real_t p0, zsl_real_t h, zsl_real_t d, zsl_real_t *p) |
Calculates pressure in pascals of a body submerged 'h' meters down the surface of a fluid, given the pressure of the fluid at its surface and its density. More... | |
int | zsl_phy_fluid_bouyant_force (zsl_real_t v, zsl_real_t d, zsl_real_t *f) |
Calculates the module of the upwards force experienced by a body submerged into a fluid, AKA bouyant force. More... | |
int | zsl_phy_fluid_flow_rate (zsl_real_t a1, zsl_real_t v1, zsl_real_t a2, zsl_real_t *v2) |
Given two sections of a pipe with different surfaces 'a1' and 'a2' and knowing the value of the velocity of the fluid when passing through 'a1', this function calculates the velocity of the fluid in 'a2'. More... | |
int | zsl_phy_fluid_force_prop (zsl_real_t a1, zsl_real_t f1, zsl_real_t a2, zsl_real_t *f2) |
Given two sections of a pipe with different surfaces 'a1' and 'a2' and knowing the value of the force with which the fluid goes through 'a1', this function calculates the force with which the fluid goes through 'a2'. More... | |
int | zsl_phy_fluid_bernoulli (zsl_real_t d, zsl_real_t v1, zsl_real_t p1, zsl_real_t v2, zsl_real_t *p2) |
Given a pipe in which a fluid flows at different velocities 'v1' and 'v2' in two different sections and knowing the pressure of the fluid in the first section (p1), this function calculates the pressure of fluid in the second section. More... | |
int | zsl_phy_fluid_volume_flow_rate (zsl_real_t vel, zsl_real_t a, zsl_real_t *v) |
Calculates the volume flow rate of a flowing fluid based on its velocity (vel) in a section of surface (a). More... | |
API header file for fluids in zscilib.
This file contains the zscilib fluids APIs
Definition in file fluids.h.