Class PhaseEquilibria
java.lang.Object
org.episteme.natural.physics.classical.thermodynamics.PhaseEquilibria
Phase Equilibria calculations.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleclausiusClapeyron(double p1, double t1, double t2, double deltaHvap) Clausius-Clapeyron equation.static intgibbsPhaseRule(int components, int phases) Gibbs Phase Rule.
-
Constructor Details
-
PhaseEquilibria
public PhaseEquilibria()
-
-
Method Details
-
clausiusClapeyron
public static double clausiusClapeyron(double p1, double t1, double t2, double deltaHvap) Clausius-Clapeyron equation. Relates vapor pressure and temperature. ln(P2/P1) = (-ÃŽâ€ÂH_vap / R) * (1/T2 - 1/T1)- Parameters:
p1- Pressure at T1 (Pa)t1- Temperature 1 (K)t2- Temperature 2 (K)deltaHvap- Enthalpy of vaporization (J/mol)- Returns:
- Pressure at T2 (Pa)
-
gibbsPhaseRule
public static int gibbsPhaseRule(int components, int phases) Gibbs Phase Rule. F = C - P + 2- Parameters:
components- Number of chemically independent componentsphases- Number of phases- Returns:
- Degrees of freedom
-