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
+11
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,17 @@ lazily.
98
98
Of course, standard operators from vector calculus like gradient, divergence and curl are also available
99
99
as shortcuts.
100
100
101
+
If one or more axis of your grid are periodic, you can specify that when defining the derivative or later
102
+
when setting the grid. For example:
103
+
104
+
```python
105
+
d_dx = Diff(0, dx, periodic=True)
106
+
107
+
# or later
108
+
d_dx = Diff(0)
109
+
d_dx.set_grid({0: {"h": dx, "periodic": True}})
110
+
```
111
+
101
112
More examples can be found [here](https://findiff.readthedocs.io/en/latest/source/examples.html) and in [this blog](https://medium.com/p/7e54132a73a3).
0 commit comments