You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,24 @@ Feature requests and issues welcome.
9
9
discretization = MOLFiniteDifference(dxs,
10
10
<your choice of continuous variable, usually time>;
11
11
upwind_order = <currently hard coded to 1>,
12
-
centered_order = <currently hard coded to 2>,
12
+
approx_order = Order of derivative approximation, starting from 2
13
13
grid_align = your grid type choice>)
14
14
prob = discretize(pdesys, discretization)
15
15
```
16
16
Where `dxs` is a vector of pairs of parameters to the grid step in this dimension, i.e. `[x=>0.2, y=>0.1]`
17
17
18
18
Note that the second argument to `MOLFiniteDifference` is optional, all parameters can be discretized if all boundary conditions are specified
19
19
20
-
Currently supported grid types: `center_align` and `edge_align`
20
+
Currently supported grid types: `center_align` and `edge_align`. Edge align will give better accuracy with Neumann Boundary conditions.
21
21
22
22
`center_align`: naive grid, starting from lower boundary, ending on upper boundary with step of `dx`
23
23
24
24
`edge_align`: offset grid, set halfway between the points that would be generated with center_align, with extra points at either end that are above and below the supremum and infimum by `dx/2`.
25
25
26
-
Currently boundary conditions defined in terms of derivatives at the boundary are unsupported above 1 discretized dimension. Periodic conditions are also unsupported.
26
+
Currently Periodic boundary conditions are unsupported
27
27
28
28
## Coming soon:
29
-
-Arbitrary approximation order
29
+
-Automatic up/downwinding for odd order derivatives
0 commit comments