Debian Codegraph @

texmf-dist/doc/latex/thermodynamics/thermodynamics-examples.tex

raw
1 %%
2 %% This is file `thermodynamics-examples.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% thermodynamics.dtx (with options: `example')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 2022-2026 by Karl D. Hammond
12 %%
13 %% Karl D. Hammond,
14 %% Contact: kaiserkarl31 at yahoo.com
15 %%
16 %% This work may be distributed and/or modified under the
17 %% conditions of the LaTeX Project Public License, either version 1.3
18 %% of this license or (at your option) any later version.
19 %% The latest version of this license is in
20 %% http://www.latex-project.org/lppl.txt
21 %% and version 1.3 or later is part of all distributions of LaTeX
22 %% version 2005/12/01 or later.
23 \documentclass{article}
24 \usepackage[margin=1in]{geometry}
25 \usepackage{amsmath,amssymb}
26 \usepackage{thermodynamics}
27 \title{Examples to Accompany the \textsf{thermodynamics} Package}
28 \author{Karl D. Hammond}
29 \date{}
30 \begin{document}
31 \NewThermodynamicProperty{B}{B}
32 \maketitle\noindent
33 The combined laws:
34 \begin{align*}
35 d\Et &= d\Ut + d\left(\frac12 m v^2\right) - d(m\phi) \\
36 d\Ut &= \dbar\Qt + \dbar\Wt + \Um d\Nt
37 = \dbar\Qt - P d\Vt + \Hm d\Nt
38 \\ &= \Partial*{\Ut}{\St}{\Vt,\allNs} d\St
39 + \Partial*{\Ut}{\Vt}{\St,\allNs} d\Vt
40 + \sumall_i \Partial*{\Ut}{\Nt_i}{\Vt,\St,\allNsbut{i}} d\Nt_i
41 \\ &= T d\St - P d\Vt + \sumall_i \mu_i d\Nt_i
42 \end{align*}
43 With surfaces present:
44 \begin{gather*}
45 d\Ut = T d\St - P d\Vt + \sigma d\At + \sumall_i \mu_i d\Nt_i \\
46 d\Ht = T d\St + \Vt dP + \sigma d\At + \sumall_i \mu_i d\Nt_i \\
47 d\Ft = -\St dT - P d\Vt + \sigma d\At + \sumall_i \mu_i d\Nt_i \\
48 d\Gt = -\St dT + \Vt dP + \sigma d\At + \sumall_i \mu_i d\Nt_i \\
49 d\Lt = -\St dT - P d\Vt + \sigma d\At - \sumall_i \Nt_i d\mu_i \\
50 \Bt = \Ut + P\Vt - T\St - \sigma\At \\
51 d\Bt = -\St dT + \Vt dP - \At d\sigma + \sumall_i \mu_i d\Nt_i \\
52 \mu_i = \Bpm_i = \Gpm_i + \sigma \Apm_i
53 \end{gather*}
54 Some Maxwell reciprocity relations:
55 \begin{gather*}
56 \Partial*{\Vt}{T}{P,\allNs}
57 = \PartialMixSecond*{\Gt}{T}{P}{\allNs}
58 = \PartialMixSecond*{\Gt}{P}{T}{\allNs}
59 = -\Partial{\St}{P}{T,\allNs}
60 \\
61 \Partial*{\Gpm_i}{T}{P,\allXs}
62 = \PartialMixSecond*{\Gt}{T}{\Nt_i}{P,\allNsbut{i}}
63 = \PartialMixSecond*{\Gt}{\Nt_i}{T}{P,\allNsbut{i}}
64 = -\Partial*{\St}{\Nt_i}{T,P,\allNsbut{i}}
65 = -\Spm_i
66 \end{gather*}
67 Temporary changes of derivative delimiters:
68 \begin{gather*}
69 \begin{thermobrackets}
70 \Partial*{\Vt}{T}{P,\allNs}
71 \end{thermobrackets}
72 \begin{thermobar}
73 = \PartialMixSecond*{\Gt}{T}{P}{\allNs}
74 \end{thermobar}
75 \begin{thermomolesrange}
76 = \PartialMixSecond*{\Gt}{P}{T}{\allNs}
77 \end{thermomolesrange}
78 \begin{thermobraces}
79 = -\Partial*{\St}{P}{T,\allNs}
80 \begin{thermoNOsubscripts}
81 \begin{thermomolesrange}
82 = -\Partial{\St}{P}{T,\allNs}
83 \end{thermomolesrange}
84 \end{thermoNOsubscripts}
85 \end{thermobraces}
86 \end{gather*}
87 Inline derivatives:
88 \begin{gather*}
89 \mu_i = \Partialinline{\Gt}{\Nt_i}{T,P,\allNsbut{i}}
90 = \Partialinline{\Ft}{\Nt_i}{T,\Vt,\allNsbut{i}}
91 = \Partialinline{\Ht}{\Nt_i}{\St,P,\allNsbut{i}}
92 = \Partialinline{\Ut}{\Nt_i}{\St,\Vt,\allNsbut{i}}
93 \end{gather*}
94 The heat capacities:
95 \begin{gather*}
96 \cV = T \Partial*{\Sm}{T}{\Vm,\allXs} = \Partial*{\Um}{T}{\Vm,\allXs}
97 = -T\PartialSecond{\Fm}{T}{\Vm,\allXs}
98 \\
99 \cP^\IGM = T \Partial*{\Sm^\IGM}{T}{P,\allYs}
100 = \Partial*{\Hm^\IGM}{T}{P,\allYs}
101 \begin{thermobrackets}
102 = -T\PartialSecond{\Gm^\IGM}{T}{P,\allYs}
103 \end{thermobrackets}
104 \\
105 \cVt = T \Partial*{\St}{T}{\Vt,\allNs} = \Partial*{\Ut}{T}{\Vt,\allNs}
106 \begin{thermobraces}
107 = -T\PartialSecond{\Ft}{T}{\Vm,\allNs}
108 \end{thermobraces}
109 \\
110 \begin{thermobar}
111 \cPt = T \Partial*{\St}{T}{P,\allNs} = \Partial*{\Ht}{T}{P,\allNs}
112 = -T\PartialSecond{\Gt}{T}{P,\allNs}
113 \end{thermobar}
114 \\
115 \cVs = T \Partial*{\Ss}{T}{\Vs,\allWs} = \Partial*{\Us}{T}{\Vs,\allWs}
116 \begin{thermoplain}
117 = -T\PartialSecond{\Fs}{T}{\Vs,\allWs}
118 \end{thermoplain}
119 \\
120 \cPs = T \Partialbigg*{\Ss}{T}{P,\allWs} = \Partialbigg*{\Hs}{T}{P,\allWs}
121 = -T\PartialSecondbigg{\Gs}{T}{P,\allWs}
122 \\
123 \begin{split}
124 \cPpm_i &= \Partial*{\cPt}{\Nt_i}{T,P,\allNsbut{i}}
125 = T \PartialMixSecond*{\St}{\Nt_i}{T}{P,\allNsbut{i}}
126 = T \PartialMixSecond*{\St}{T}{\Nt_i}{P,\allNsbut{i}}
127 \\ &= T \Partial*{\Spm_i}{T}{P,\allXs}
128 = \Partial*{\Hpm_i}{T}{P,\allXs}
129 = \PartialMixSecond*{\Ht}{T}{\Nt_i}{P,\allNsbut{i}}
130 = \PartialMixSecond*{\Ht}{\Nt_i}{T}{P,\allNsbut{i}}
131 \\ &= -T\PartialSecond*{\Gpm_i}{T}{P,\allXs}
132 = -T\Partial{{}^3 \Gt}{T^2\partial \Nt_i}{P,\allNsbut{i}}
133 \end{split}
134 \end{gather*}
135 Other measurable quantities:
136 \begin{align*}
137 \alphaS &= \frac{1}{\Vm} \Partial{\Vm}{T}{\Sm} &
138 \alphaP &= \frac{1}{\Vm} \Partial{\Vm}{T}{P} \\
139 \kappaS &= -\frac{1}{\Vm} \Partial{\Vm}{P}{\Sm} &
140 \kappaT &= -\frac{1}{\Vm} \Partial{\Vm}{P}{T}
141 \end{align*}
142 The chemical potential, fugacity, and activity:
143 \[ \mu_i = \Gpm_i = \Gm_i^\std + RT \ln a_i
144 = \Gm_i^\std + RT\ln\left(\frac{\fmix_i}{\fstd_i}\right) \]
145 Equilibrium in a chemical reaction:
146 \[ \sumall_i \nu_i \mu_i = 0
147 \Rightarrow
148 \exp\left(\frac{-\Delta\Gm^\std}{RT}\right) = K = \prodall_i a_i^{\nu_i} \]
149 Partial molar quantities:
150 \begin{align*}
151 \Hpm{i} &= \Partial*{\Ht}{\Nt_i}{T,P,\allNsbut{i}}
152 = \Hm + \Nt \Partial*{\Hm}{\Nt_i}{T,P,\allNsbut{i}}
153 \\ &= \Hm + \Partial*{\Hm}{x_i}{T,P,\allXsbut{i}}
154 - \sumallbutlast_j x_j \Partial*{\Hm}{x_j}{T,P,\allXsbut{j}}
155 = \Partial*{\Hm}{x_i}{T,P,\allXsbut{i}} + \Hpm_\ncomponents
156 \end{align*}
157 \[ \Vpm_i = \Partial{\Vt}{\Nt_i}{T,P,\allNsbut{i}} \]
158 Fugacity and related properties:
159 \begin{gather*}
160 \Gpm_i = \mu_i
161 = \Gm_i^\std(T) + RT\ln a_i
162 = \Gm_i^\std(T) + RT\ln\left(\frac{\fmix_i}{\fstd_i}\right)
163 \\
164 a_i = \frac{\fmix_i}{\fstd_i}
165 = x_i \gamma_i
166 \exp\left(\frac{1}{RT} \int_{\Pstd}^P \Vm_i(T,p)\,dp\right)
167 \approx x_i \gamma_i
168 \\
169 \begin{split}
170 \fmix_i &= x_i \phimix_i P
171 = x_i \gamma_i \fpure_i = x_i \gamma_i \phipure_i P
172 = x_i \gammarat_i \Henryrat_i
173 = C_i \gammamol_i \Henrymol_i
174 = x_i \gamma_i \fsat_i
175 \exp\left(\frac{1}{RT} \int_{\Psat_i}^P \Vm_i(T,p)\,dp\right)
176 \\ &= x_i \gamma_i \Psat_i \phisat_i
177 \exp\left(\frac{1}{RT} \int_{\Psat_i}^P \Vm_i(T,p)\,dp\right)
178 \approx x_i \gamma_i \Psat_i
179 \end{split}
180 \end{gather*}
181 Chemical Equilibria:
182 \begin{gather*}
183 \Deltarxn\Hm^\std = \sumall_i \nu_i \Deltaf\Hm_i^\std \\
184 \Deltarxn\Gm^\std = \sumall_i \nu_i \Deltaf\Gm_i^\std
185 = \sumall_i \nu_i \mu_i^\std \\
186 \Deltarxn\cP^\std = \sumall_i \nu_i \cP_i^\std \\
187 \mu_i = \mu_i^\std + RT\ln a_i \\
188 a_i = \begin{cases}
189 \displaystyle
190 \frac{y_i \phimix_i P}{\Pstd} \approx \frac{y_i P}{\Pstd}
191 & \text{(gases)} \\
192 \rule{0pt}{5ex}%
193 \displaystyle
194 x_i \gamma_i \exp\left(\frac{1}{RT} \int_{\Pstd}^P \Vm_i(T,p)\,dp\right)
195 \approx
196 x_i \gamma_i \exp\left(\frac{\Vm_i(P-\Pstd)}{RT}\right)
197 \approx x_i \gamma_i \approx 1
198 & \text{(solids, solvents)} \\
199 \displaystyle
200 \rule{0pt}{5ex}%
201 \frac{C_i \gammamol_i}{C_i^\std}
202 \exp\left(\frac{1}{RT}
203 \int_{\Pstd}^P \Vpm_i^\infty(T,p,\allXs)\,dp\right)
204 \approx
205 \frac{C_i \gammamol_i}{C_i^\std} \approx \frac{C_i}{C_i^\std}
206 & \text{(solutes)}
207 \end{cases}
208 \end{gather*}
209 Phase change properties:
210 \begin{gather*}
211 \Deltafus\Sm = \Sm^L - \Sm^S \\
212 \Deltasub\Vm = \Vm^V - \Vm^S \\
213 \Deltavap\Gm = \Gm^V - \Gm^L
214 \end{gather*}
215 Specific properties:
216 \newcommand*{\Btilde}[2][]{\widetilde{B}_{#2}^{#1}}
217 \[ \Btilde{j} \equiv \Partial{\Bt}{m_j}{T,\Vs,\allMsbut[i]{j}} \]
218 and thus
219 \[ \Btilde{i}
220 = \frac{\Bpm{i}}{M_i}
221 + \Biggl(\Vs - \frac{\Vpm_i}{M_i}\Biggr)
222 \Partial*{\Bs}{\Vs}{T,\allMs}
223 = \frac{\Bpm{i}}{M_i}
224 + \Biggl(\Vs - \frac{\Vpm_i}{M_i}\Biggr)
225 \Partial{\Bs}{\Vs}{T,m,\allWs} \]
226 and
227 \[ \Bs = \sumall_i w_i \Btilde{i}. \]
228 Excess and Residual (Departure) Properties:
229 \begin{align*}
230 \HR &= \Hm - \Hm^\IG &
231 \FR &= \Fm - \Fm^\IGM \\
232 \SE &= \Sm - \Sm^\IS &
233 \VRpm_k &= \Vpm_k - \Vpm_k^\IGM
234 \end{align*}
235 Jacobians:
236 \begin{gather*}
237 \Jacobian{\St,\Vt}{T,P} = \Jacobiandet{\St,\Vt}{T,P} \\
238 \Jacobian{f,g,h}{x,y,z} = \Jacobiandet[\displaystyle]{f,g,h}{x,y,z} \\
239 \Jacobian{h_1,\dots,h_k}{z_1,\dots,z_k} =
240 \Jacobiandet{h_1,\dots,h_k}{z_1,\dots,z_k} \\
241 \cP = T\Partial{\Sm}{T}{P}
242 = T\Jacobian{\Sm,P}{T,P}
243 = -T\Jacobian{\Sm,P}{T,\Vm} \Jacobian{T,\Vm}{T,P}
244 = -T\Jacobian{P,\Sm}{\Vm,\Sm} \Jacobian{\Vm,\Sm}{T,\Vm}
245 \Jacobian{T,\Vm}{T,P}
246 = \gamma \cV
247 \end{gather*}
248 \end{document}
249 \endinput
250 %%
251 %% End of file `thermodynamics-examples.tex'.