-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathfermi-dirac-distro.typ
More file actions
60 lines (51 loc) · 1.57 KB
/
Copy pathfermi-dirac-distro.typ
File metadata and controls
60 lines (51 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#import "@preview/cetz:0.5.2": canvas, draw
#import "@preview/cetz-plot:0.1.4": plot
#import "../_shared/plot.typ": legend-box, style-axes
#import "../_shared/theme.typ": series
#import draw: content
#set page(width: auto, height: auto, margin: 8pt, fill: none)
#let n-F(x, beta, mu: 1) = 1 / (calc.exp(beta * (x - mu)) + 1)
#canvas({
style-axes(x-label: (anchor: "north-east"), y-label: (anchor: "south-west"))
plot.plot(
size: (8, 7),
x-label: [$epsilon$ / $mu$],
y-label: $n(epsilon)$,
x-min: 0,
x-max: 2.3,
y-min: 0,
y-max: 1.2,
x-tick-step: .5,
y-tick-step: .5,
y-ticks: (0.5, 1),
axis-style: "left",
legend: "inner-south-west",
legend-style: legend-box,
{
let chem-pot = 1
for (idx, beta) in (5, 25).enumerate() {
plot.add(
style: (stroke: series(idx)),
domain: (0, 2.3),
samples: 150,
x => n-F(x, beta),
label: $k_"B" T = 1 / #beta mu$,
)
}
// T = 0 (blue step function)
let points = ((0, 1), (chem-pot, 1), (chem-pot, 0), (2.3, 0))
plot.add(
style: (stroke: series(2)),
points,
label: $T = 0$,
)
plot.add-vline(0.8, style: (stroke: (dash: "dashed", thickness: 0.5pt)))
plot.add-vline(1.2, style: (stroke: (dash: "dashed", thickness: 0.5pt)))
plot.add-hline(1.1, min: 0.8, max: 1.2, style: (
stroke: (thickness: 0.5pt),
mark: (symbol: "stealth", stroke: 0.5pt, fill: black, scale: .1),
))
},
)
content((3.5, 6.5), $prop 1 / beta$, anchor: "south")
})