Skip to content

Issue with Boundary Conditions in 1D Diffusion PDE Example #576

Discussion options

You must be logged in to vote

Your code runs into the classical von Neumann instability. To avoid this, it is better to use an adaptive time stepper by replacing the central line that solves the PDE by result = eq.solve(field, t_range=t_max, adaptive=True, tracker=storage.tracker(interval=0.001))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@GijsBerkenbosch
Comment options

Answer selected by GijsBerkenbosch
Comment options

You must be logged in to vote
1 reply
@david-zwicker
Comment options

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