Understanding devito conventions and defaults #2805
Unanswered
cdelavegamartin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just getting started with devito and I have some questions:
Switch of
fd_orderfor first derivativeI would have expected the four following expressions to produce the expression:$\displaystyle - \frac{0.5 u(x - h_x)}{h_{x}} + \frac{0.5 u(x + h_x)}{h_{x}}$
I understand this is in order to avoid potential instability with the centered scheme but why is not done when higher space_order or fd_order is used? (only happens when not specifying centered, even though the default is centered) eg
right vs left one sided fd convention
For the left side first order accurate first derivative, the stencils are what I would expect
But the right sided ones are displaced one grid point
I would have expected
$\displaystyle - \frac{u(x)}{h_{x}} + \frac{u(x + h_x)}{h_{x}}$
Max differentiation order of
unot throwing errors whenspace_order=1But
Produces
ValueError: Function does not support x-derivative with `fd_order` 3I would be very grateful to understand the reason for these conventions/defaults, as I keep questioning if what is happening under the hood for more complex operators is what I'm actually expecting.
Beta Was this translation helpful? Give feedback.
All reactions