flowtube.viscosity_density
Handles the calculation of the viscosity and density of a variety of pure gases.
Functions
|
Estimate absolute/dynamic viscosity of pure gases using the corresponding states method from Reid et al., 1987. |
|
Calculates the real density of a gas using van der Waal's equation of state. |
Classes
|
- class flowtube.viscosity_density.basic_attrs(*args, **kwargs)[source]
-
P:
float
-
T:
float
- __init__(*args, **kwargs)
-
P:
- flowtube.viscosity_density.real_density(obj, gas)[source]
Calculates the real density of a gas using van der Waal’s equation of state.
- Parameters:
obj (basic_attrs) – Object with basic attributes (P in Pa, T in K).
gas (str) – Molecular formula of gas (supported: Ar, He, N2, O2).
- Returns:
Real density of gas in kg m-3.
- Return type:
float
- flowtube.viscosity_density.dynamic_viscosity(obj, gas)[source]
Estimate absolute/dynamic viscosity of pure gases using the corresponding states method from Reid et al., 1987.
- Parameters:
obj (basic_attrs) – Object with basic attributes (P in Pa, T in K).
gas (str) – Molecular formula of gas (supported: Ar, He, N2, O2).
- Returns:
Gas viscosity (kg m-1 s-1).
- Return type:
float