knightshock.absorption
absorbance(X, sigma, T, P, L=1)
Calculates the absorption for a species from the Beer-Lambert law.
Parameters:
-
X
(
float | npt.NDArray[float]
) –Species mole fraction.
-
sigma
(
float | npt.NDArray[float]
) –Absorption cross-section [cm2].
-
T
(
float | npt.NDArray[float]
) –Absolute temperature [K].
-
P
(
float | npt.NDArray[float]
) –Absolute pressure [Pa].
-
L
(
float
) –Path length [cm] (optional).
Returns:
-
A(
float | npt.NDArray[float]
) –Absorbance.
absorption_cross_section(A, X, T, P, L)
Calculates the species mole fraction from the Beer-Lambert law.
Parameters:
-
A
(
float | npt.NDArray[float]
) –Absorbance.
-
X
(
float | npt.NDArray[float]
) –Species mole fraction.
-
T
(
float | npt.NDArray[float]
) –Absolute temperature [K].
-
P
(
float | npt.NDArray[float]
) –Absolute pressure [Pa].
-
L
(
float
) –Path length [cm].
Returns:
-
sigma(
float | npt.NDArray[float]
) –Absorption cross-section [cm2].
species_mole_fraction(A, sigma, T, P, L)
Calculates the species mole fraction from the Beer-Lambert law.
Parameters:
-
A
(
float | npt.NDArray[float]
) –Absorbance.
-
sigma
(
float | npt.NDArray[float]
) –Absorption cross-section [cm2].
-
T
(
float | npt.NDArray[float]
) –Absolute temperature [K].
-
P
(
float | npt.NDArray[float]
) –Absolute pressure [Pa].
-
L
(
float
) –Path length [cm].
Returns:
-
X(
float | npt.NDArray[float]
) –Species mole fraction.
multi_species_mole_fraction(A, sigma, T, P, L)
Experimental
Calculates the mole fractions of N
species from absorbance data at N
wavelengths given absorption
cross-sections for each species at each wavelength. For mole fraction time histories, absorption cross-sections,
temperature, and pressure can be constant or varying with time.
Parameters:
-
A
(
npt.NDArray[float]
) –Absorbance at each wavelength
(N, ...)
. -
sigma
(
npt.NDArray[float]
) –Species absorption cross-sections [cm^2] at each wavelength
(N, N, ...)
. -
T
(
float | npt.NDArray[float]
) –Absolute temperature [K].
-
P
(
float | npt.NDArray[float]
) –Absolute pressure [Pa].
-
L
(
float
) –Path length [cm].
Returns:
-
X(
npt.NDArray[float]
) –Species mole fractions
(N, ...)
.