How to access grid coordinates when defining the evolution_rate of a customed PDE class? #566
-
This might be a dumb question, but what is the internal approach to get the values of the grid? Specifically, when writing the member function |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm a not entirely sure what you mean by "values of the grid", but you can access the grid object using |
Beta Was this translation helpful? Give feedback.
You can use
state.grid.axes_coords
,state.grid.cell_coords
, orstate.grid.coordinate_arrays
; see the documentation for the exact details.