tAdd equation example and fix typo - brcon2020_adc - my presentation for brcon2020
(HTM) git clone git://src.adamsgaard.dk/.brcon2020_adc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit e2e3230e62cf7da5ef9dbea0306bb5ed5e84476e
(DIR) parent 234b172dd70299ae87cb26694d4164edb21507cb
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 28 Apr 2020 19:33:00 +0200
Add equation example and fix typo
Diffstat:
M brcon2020_adc.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/brcon2020_adc.md b/brcon2020_adc.md
t@@ -184,7 +184,7 @@ Academic interests:
-- = -k ∇² T
∂t
- domain: discritize into n=7 cells
+ domain: discretize into n=7 cells
.---------+---------+---------+---------+---------+---------+---------.
| | | | | | | |
t@@ -196,9 +196,12 @@ Academic interests:
| \ | / \ | / \ | / \ | / \ | / |
.----|----+-\--|--/-+-\--|--/-+-\--|--/-+-\--|--/-+-\--|--/-+----|----.
| | | | | | | |
- t+dt | T₁ | T₂ | T₃ | T₄ | T₅ | T₆ | T₇ |
+t + dt | T₁ | T₂ | T₃ | T₄ | T₅ | T₆ | T₇ |
| | | | | | | |
'---------+---------+---------+---------+---------+---------+---------'
+ |<- dx ->|
+
+ T_new[i] = T[i] - k*(T[i+1] - 2.0*T[i] + T[i-1])/(dx*dx) * dt;
example BC: outer boundaries constant temperature (T₁ & T₇)