Files
vault/課本/電磁學/Ch4/圖表工具示範.md
T
vaultadmin dd3ef9721e 15Tw: 181 added
- .obsidian/app (conflict 15Tw 2026-11-16 1639).json
- .obsidian/app.json
- .obsidian/appearance.json
- .obsidian/community-plugins.json
- .obsidian/core-plugins.json
- .obsidian/envoy.log
- .obsidian/plugins/vault-sync-git/data.json
- .obsidian/plugins/vault-sync-git/main.js
- .obsidian/plugins/vault-sync-git/manifest.json
- .obsidian/plugins/vault-sync-git/styles.css
- …and 171 more

Device: 15Tw
Plugin: 1.8.0
2026-11-30 06:38:33 +00:00

52 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "圖表工具示範(TikZ / Manim)"
tags:
- 電磁學
- 繪圖
- TikZ
- Manim
---
# 圖表工具示範
> 這頁示範新裝的三種繪圖後端。之後可把 Ch4 的 12 張圖全部改用這套重新產生。
## 1. TikZ:理想偶極的場線
由 $r=R\sin^2\theta$ 直接算出的場線(向量圖,非手繪):
![[dipole_field.svg]]
- 每一條曲線是同一個 $R$ 的場線;箭頭方向就是 $\mathbf E$。
- 靠近原點場線密集 → 場強;遠處稀疏。
## 2. TikZ:均勻極化球
![[polarized_sphere.svg]]
- 上正下負的 $\sigma_b=P\cos\theta$;
- 球內均勻場 $\mathbf E_{\rm in}=-\mathbf P/(3\varepsilon_0)$,方向與 $\mathbf P$ 相反。
## 3. Manim:介電球在均勻場中(高解析 static frame)
![[dielectric_sphere.png]]
## 4. Manim:介電板被吸入電容器(動圖)
![[slab.gif]]
- 介電板受邊緣場吸引而進入電容器;
- 能量法 $F=-dW/dx$ 可算出方向與大小,不必真的算邊緣場。
---
## 工具鏈
| 工具 | 用途 | 指令 |
|---|---|---|
| TikZ + pdflatex + pdftocairo | 出版級靜態向量圖 | `bin/render_tikz.sh` |
| Asymptote | 參數曲線/數學圖 | `asy -f pdf` |
| Manim CE 0.22 | 動畫 MP4/GIF、高解析 PNG | `bin/render_manim.sh` |
版本:TeX Live 2023、Asymptote 2.87、Manim 0.22.1。