Skip to content

Commit 9a6b069

Browse files
authored
Merge pull request #262 from termi-official/do/fix-pide-docs
Fix PIDE docs
2 parents 7e046c4 + 0b3ea2a commit 9a6b069

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/src/tutorials/PIDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,28 @@
33
It is also possible to solve PIDEs with MethodOfLines.jl.
44

55
Consider the following system:
6+
67
```math
78
\frac{\partial}{\partial t}u(t, x)+2u(t, x)+5\frac{\partial}{\partial x}[\int_0^xu(t, x)dx]=1
89
```
10+
911
On the domain:
12+
1013
```math
1114
t \in (0, 2)
1215
x \in (0, 2\pi)
1316
```
17+
1418
With BCs and ICs:
19+
1520
```math
1621
u(0, x)=cos(x)
1722
\frac{\partial}{\partial x}u(t, 0)=0
1823
\frac{\partial}{\partial x}u(t, 2)=0
1924
```
25+
2026
We can discretize such a system like this:
27+
2128
```@example pide
2229
using MethodOfLines, ModelingToolkit, OrdinaryDiffEq, DomainSets, Plots
2330
@@ -92,4 +99,4 @@ tdisc = sol[t]
9299
integralsol = sol[integral(t, x)]
93100

94101
heatmap(integralsol)
95-
```
102+
```

0 commit comments

Comments
 (0)