Skip to content

Enforcing forward-differencing for compressible Euler Equations #561

Discussion options

You must be logged in to vote

Thank you for your message. Forward differences were indeed not very well exposed in the package. I just merged a new pull request in the main branch, which improves the situation. If you download the latest version of the package from GitHub, you should be able to replace your calls to .gradient(bc=self.bc) with .gradient(bc=self.bc, method="forward") to obtain forward derivatives. Analogously, you can use method="backward" to obtain backwards derivatives.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@taylorhughmorgan
Comment options

@david-zwicker
Comment options

@taylorhughmorgan
Comment options

Answer selected by taylorhughmorgan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants