-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jensens-inequality.typ converted from jensens-inequality.tex
change readme title from gear icon with TikZ text to "Scientific Diagrams" update-readme-table.py now errors on typst/latex code files without a corresponding YAML metadata file rename shell.tex to momentum-shell.tex and add momentum-shell.typ typst translation rename hea.tex to high-entropy-alloy.tex
- Loading branch information
Showing
20 changed files
with
336 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
#import "@preview/cetz:0.3.1": canvas, draw | ||
|
||
#set page(width: auto, height: auto, margin: 8pt) | ||
|
||
#canvas({ | ||
import draw: * | ||
|
||
let orange-fill = rgb(100%, 80%, 70%) | ||
let red-fill = rgb(100%, 80%, 80%) | ||
let gray-fill = rgb(90%, 90%, 90%) | ||
let blue-fill = rgb(80%, 80%, 100%) | ||
|
||
// Helper function for rounded rectangles with text | ||
let node(pos, text, fill: none, name: none) = { | ||
rect( | ||
(pos.at(0) - 2cm, pos.at(1) - 1.5cm), | ||
(pos.at(0) + 2cm, pos.at(1) + 1.5cm), | ||
fill: fill, | ||
stroke: black + 1pt, | ||
radius: 3mm, | ||
name: name, | ||
) | ||
content( | ||
pos, | ||
text, | ||
anchor: "center", | ||
) | ||
} | ||
|
||
// Helper for comment nodes | ||
let comment(pos, text, name: none) = { | ||
content( | ||
pos, | ||
text, | ||
anchor: "center", | ||
name: name, | ||
) | ||
} | ||
|
||
// Main equation components | ||
content((0cm, 0cm), $($, anchor: "center", scale: 300%) | ||
node((4cm, 0cm), $-frac(h^2, 2m) nabla^2_bold(r)$, fill: orange-fill, name: "kinetic") | ||
content((6.5cm, 0cm), $+$, anchor: "center", scale: 200%) | ||
node((9cm, 0cm), $v_"ext"(bold(r))$, fill: red-fill, name: "external") | ||
content((11.5cm, 0cm), $+$, anchor: "center", scale: 200%) | ||
node((14cm, 0cm), $v_H(bold(r))$, fill: red-fill, name: "hartree") | ||
content((16.5cm, 0cm), $+$, anchor: "center", scale: 200%) | ||
node((19cm, 0cm), $v_"xc"$, fill: red-fill, name: "xc") | ||
content((21cm, 0cm), $)$, anchor: "center", scale: 300%) | ||
node((24cm, 0cm), $phi_i(bold(r))$, fill: gray-fill, name: "phi1") | ||
content((26.5cm, 0cm), $=$, anchor: "center", scale: 200%) | ||
node((29cm, 0cm), $E_i$, fill: blue-fill, name: "energy") | ||
node((32cm, 0cm), $phi_i(bold(r))$, fill: gray-fill, name: "phi2") | ||
|
||
// Comments with line breaks | ||
comment( | ||
(4cm, 4cm), | ||
[#set align(center) | ||
#text(14pt)[non-rel. Schrödinger equation\ | ||
or relativistic Dirac equation]], | ||
name: "kinetic-comment", | ||
) | ||
comment( | ||
(9cm, -4cm), | ||
[#set align(center) | ||
#text(14pt)[pseudopotential\ | ||
(ultrasoft/PAW/norm-conserving)\ | ||
or all-electron]], | ||
name: "external-comment", | ||
) | ||
comment( | ||
(14cm, -4cm), | ||
[#set align(center) | ||
#text(14pt)[Hartree potential\ | ||
from solving Poisson eq.\ | ||
or integrating charge density]], | ||
name: "hartree-comment", | ||
) | ||
comment( | ||
(19cm, 4cm), | ||
[#set align(center) | ||
#text(14pt)[LDA or GGA\ | ||
or hybrids]], | ||
name: "xc-comment", | ||
) | ||
comment( | ||
(28cm, 4cm), | ||
[#set align(center) | ||
#text(14pt)[physical orbitals or not\ | ||
mesh density and basis set]], | ||
name: "phi-comment", | ||
) | ||
comment( | ||
(29cm, -4cm), | ||
[#set align(center) | ||
#text(14pt)[view EVs as mere Lagrange\ | ||
multipliers or band structure approx]], | ||
name: "energy-comment", | ||
) | ||
|
||
// Arrows | ||
let arrow-style = ( | ||
mark: (end: "stealth"), | ||
stroke: 1pt, | ||
) | ||
line("kinetic-comment", "kinetic.north", ..arrow-style) | ||
line("external-comment", "external.south", ..arrow-style) | ||
line("hartree-comment", "hartree.south", ..arrow-style) | ||
line("xc-comment", "xc.north", ..arrow-style) | ||
line("phi-comment", "phi1.north", ..arrow-style) | ||
line("phi-comment", "phi2.north", ..arrow-style) | ||
line("energy-comment", "energy.south", ..arrow-style) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
title: Kohn-Sham DFT User Choices | ||
title: DFT Choices | ||
description: A diagram illustrating the various choices and components in density functional theory (DFT) calculations, including kinetic energy, external potential, Hartree potential, and exchange-correlation terms. | ||
tags: | ||
- physics | ||
- quantum-mechanics | ||
- density-functional-theory | ||
- Kohn-Sham | ||
description: Visualization of the many choices involved in a Kohn-Sham calculation. It can be non-relativistic based on the classical Schrödinger equation or fully relativistic based on the Dirac equation which includes spin-orbit coupling. The near-core electrons can be modeled explicitly in an all-electron calculation or, much more commonly, incorporated along with the nucleus into an effective pseudo-potential. The Hartree energy can be obtained by integrating the charge density or by solving the Poisson equation. The exchange-correlation potential can be treated with a huge library of density functionals, most commonly LDA and GGA. The wave functions can be computed on a numerical mesh and expanded in one of many possible basis sets, e.g. plane waves, APW, or PAW. Inspired by fig. 3 in [arxiv:cond-mat/0211443](https://arxiv.org/abs/cond-mat/0211443). | ||
- quantum mechanics | ||
- dft | ||
- equations | ||
- schematic |
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#import "@preview/cetz:0.3.1": canvas, draw | ||
#import "@preview/cetz-plot:0.1.0": plot | ||
|
||
#set page(width: auto, height: auto, margin: 8pt) | ||
|
||
#canvas({ | ||
let mark = (end: "stealth", fill: black, scale: 0.7) | ||
draw.set-style( | ||
axes: ( | ||
y: (label: (anchor: "north-west", offset: -0.2), mark: mark), | ||
x: (label: (anchor: "south-east", offset: -0.25), mark: mark), | ||
), | ||
) | ||
|
||
plot.plot( | ||
size: (8, 6), | ||
x-label: $x$, | ||
y-label: $log x$, | ||
y-min: -1, | ||
x-tick-step: none, | ||
y-tick-step: none, | ||
axis-style: "school-book", | ||
{ | ||
// Main logarithmic curve | ||
plot.add( | ||
style: (stroke: rgb(0%, 0%, 80%) + 1.5pt), | ||
domain: (11, 150), | ||
samples: 150, | ||
x => calc.ln(x - 10) - 2, | ||
) | ||
|
||
// Dashed line | ||
plot.add( | ||
style: ( | ||
stroke: (paint: orange, thickness: 1.5pt, dash: "dashed"), | ||
), | ||
domain: (8, 120), | ||
x => 0.2 + (3 - 0.2) * (x - 8) / (120 - 8), | ||
) | ||
}, | ||
) | ||
}) |
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#import "@preview/cetz:0.3.1": canvas, draw | ||
|
||
#set page(width: auto, height: auto, margin: 3pt) | ||
|
||
#canvas({ | ||
import draw: line, content, circle | ||
|
||
let rx = 4 | ||
let ry = 2.2 | ||
let arrow-style = (mark: (end: "stealth", fill: black), stroke: 1pt) | ||
|
||
// Axes | ||
line((-rx - 0.5, 0), (rx + 0.5, 0), ..arrow-style) | ||
content((rx + 0.5, 0), $q_1$, anchor: "west", padding: 2pt) | ||
|
||
line((0, -ry - 0.5), (0, ry + 0.5), ..arrow-style) | ||
content((0, ry + 0.5), $q_2$, anchor: "south", padding: 2pt) | ||
|
||
// Ellipse | ||
circle( | ||
(0, 0), | ||
radius: (rx, ry), | ||
stroke: blue, | ||
fill: rgb(0%, 0%, 100%, 5%), | ||
name: "ellipse", | ||
) | ||
|
||
// Labels for radii | ||
content((rx + .2, 1), $sqrt(2E \/ m)$, anchor: "south-west", padding: 1pt, name: "r1") | ||
line((rx, 0), "r1.south", stroke: 0.2pt) | ||
content((0.5, ry + .5), $sqrt(2E \/ k)$, anchor: "south-west", padding: 1pt, name: "r2") | ||
line((0, ry), "r2.south-west", stroke: 0.2pt) | ||
|
||
// Label P | ||
content((3, 1), text(fill: blue)[$P$]) | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.