
import numpy as np
# Van 't Hoff Equation: d(ln K)/dT = Delta H / (R * T^2)
R = 8.314 # J / (mol*K)
delta_H = -92400 # J/mol (exothermic)
T1 = 300.0 # 300 K
T2 = 600.0 # 600 K
# ln(K2 / K1) = - (delta_H / R) * (1/T2 - 1/T1)
ln_ratio = -(delta_H / R) * (1.0/T2 - 1.0/T1)
K_ratio = np.exp(ln_ratio)
print(f'K_eq ratio K(600K) / K(300K) = {K_ratio:.2e}')
# Since delta_H < 0 and T2 > T1, K2 < K1. Lower temp -> higher K_eq
assert K_ratio < 1.0, 'K_eq must decrease at higher temperatures for exothermic reaction'
# Delta n of gas
n_reactants = 1 + 3
n_products = 2
delta_n = n_products - n_reactants
assert delta_n == -2, 'Delta n of gas must be -2'
print('Assertion PASSED: Decreasing T increases K_eq; Increasing P favors NH3 formation')
Only each person's first answer, given before viewing the solution, is counted.
Discussion 0 comments
Log in to join the discussion.