fuellib.convert
Unit conversion functions.
Functions
|
Convert temperature from Celsius to Fahrenheit. |
|
Convert temperature from Celsius to Kelvin. |
|
Convert temperature from Fahrenheit to Celsius. |
|
Convert temperature from Fahrenheit to Kelvin. |
|
Convert temperature from Kelvin to Celsius. |
|
Convert temperature from Kelvin to Fahrenheit. |
Convert Lennard-Jones epsilon from J/mol to characteristic temperature in Kelvin. |
- fuellib.convert.C2F(T)
Convert temperature from Celsius to Fahrenheit.
- Parameters:
T (float or np.ndarray) – Temperature in Celsius.
- Returns:
Temperature in Fahrenheit.
- Return type:
float or np.ndarray
- fuellib.convert.C2K(T)
Convert temperature from Celsius to Kelvin.
- Parameters:
T (float or np.ndarray) – Temperature in Celsius.
- Returns:
Temperature in Kelvin.
- Return type:
float or np.ndarray
- fuellib.convert.F2C(T)
Convert temperature from Fahrenheit to Celsius.
- Parameters:
T (float or np.ndarray) – Temperature in Fahrenheit.
- Returns:
Temperature in Celsius.
- Return type:
float or np.ndarray
- fuellib.convert.F2K(T)
Convert temperature from Fahrenheit to Kelvin.
- Parameters:
T (float or np.ndarray) – Temperature in Fahrenheit.
- Returns:
Temperature in Kelvin.
- Return type:
float or np.ndarray
- fuellib.convert.K2C(T)
Convert temperature from Kelvin to Celsius.
- Parameters:
T (float or np.ndarray) – Temperature in Kelvin.
- Returns:
Temperature in Celsius.
- Return type:
float or np.ndarray
- fuellib.convert.K2F(T)
Convert temperature from Kelvin to Fahrenheit.
- Parameters:
T (float or np.ndarray) – Temperature in Kelvin.
- Returns:
Temperature in Fahrenheit.
- Return type:
float or np.ndarray
- fuellib.convert.epsilon_to_characteristic_temperature(epsilon_j_per_mol)
Convert Lennard-Jones epsilon from J/mol to characteristic temperature in Kelvin.
The characteristic temperature (epsilon/k_B) is used in transport property correlations and is required by combustion codes like CHEMKIN.
Uses the relation: T* = (epsilon_J/mol) / (N_A * k_B)
- Parameters:
epsilon_j_per_mol (float) – Lennard-Jones well depth epsilon in J/mol.
- Returns:
Characteristic temperature (epsilon/k_B) in Kelvin.
- Return type:
float