The equation of state for nitrogen has been formulated using the Helmholtz energy as the fundamental property with independent variables of density and temperature. The equation of state in dimensional form is given by $$a(\rho,T)=a^o(\rho,T)+a^r(\rho,T),$$ where a is the Helmholtz energy, $a^o(\rho,T)$ is the ideal gas contribution to the Helmholtz energy, and $a^r(\rho,T)$ is the residual Helmholtz energy which corresponds to the influence of intermolecular forces. All thermodynamic properties can be calculated as derivatives of the Helmholtz energy.
Source: J. Phys. Chem. Ref. Data, Vol. 29, No. 6, 2000, pg. 1374
Per Wikipedia, density is a thermodynamic property. If I know pressure and temperature, how can I use the $P,T$ information with the Helmholtz energy equation described above to calculate nitrogen density?
EDIT PER COMMENTS
An example would be helpful -- Thermodynamics is tough. Per user Kyle Kanos, one would need to find the inverse of $a$ using a numerical technique such as the Newton-Raphson methdod. NIST shows the density of nitrogen at T=300 K and P=10,000 psia to be 17363 mol/m3. Using Kyle Kanos's methodology, can someone show how to get this result?
Answer
Since the Helmholtz EOS is a function of density, you need to invert the function: $$ \rho=a^{-1}(a(\rho,T)) $$ For this particular, EOS, there is no analytic form for this, you must use iterative methods (e.g., Newton's method).
Since you know the pressure and temperature, you can use the fact that $$ p=\rho RT\left[1+\delta\left(\frac{\partial a}{\partial\delta}\right)_\tau\right] $$ where $\delta=\rho/\rho_c$, $\rho_c$ is the critical density, $\tau=T_c/T$ and $T_c$ the critical temperature; all other terms take their normal meaning. So the method of solving is something like
0: guess density
1: find p using known T and rho
2: compare calculated p & known p
- if sufficiently close (e.g., |p-p'|<1e-5) exit
3: increase or decrease value of rho depending on 2
4: goto 1
Depending on how much you increase or decrease $\rho$, the solver might take a while to work its way towards the solution (it is also assumed that there is a unique solution).
No comments:
Post a Comment