fuellib.utility
Utility functions for mixture calculations and droplet properties.
Functions
|
Calculate the mass of each compound in the fuel provided the radius of the droplet. |
Calculate spherical volume of a droplet given the radius. |
|
|
Mixing rules for computing mixture properties. |
- fuellib.utility.droplet_mass(fuel, r, Yi, T)
Calculate the mass of each compound in the fuel provided the radius of the droplet.
- Parameters:
fuel (fuel object) – An instance of the fuel class.
r (float) – Radius of the droplet in meters.
Yi (np.ndarray) – Mass fractions of each compound.
T (float) – Droplet temperature in Kelvin.
- Returns:
Mass of each compound in droplet in kg.
- Return type:
np.ndarray
- fuellib.utility.droplet_volume(r)
Calculate spherical volume of a droplet given the radius.
- Parameters:
r (float) – Radius of the droplet in meters.
- Returns:
Spherical volume of droplet in cubic meters.
- Return type:
float
- fuellib.utility.mixing_rule(var_n, X, pseudo_prop='arithmetic')
Mixing rules for computing mixture properties.
- Parameters:
var_n (np.ndarray) – Individual compound properties.
X (np.ndarray) – Mole fractions of the compounds.
pseudo_prop (str, optional) – Type of mean (“arithmetic” or “geometric”).
- Returns:
Mixture property value.
- Return type:
float