Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precision resilient 2D Laplacian #152

Closed
milankl opened this issue Mar 3, 2021 · 2 comments
Closed

Precision resilient 2D Laplacian #152

milankl opened this issue Mar 3, 2021 · 2 comments

Comments

@milankl
Copy link
Owner

milankl commented Mar 3, 2021

du[j,i] = minus_4*u[j+1,i+1] + u[j,i+1] + u[j+2,i+1] + u[j+1,i] + u[j+1,i+2]

probably as

uij = u[j,i]
∇²u[j,i] = (u[j,i+1]-uij) + (u[j+2,i+1]-uij) + (u[j+1,i]-uij) + (u[j+1,i+2]-uij)
@milankl
Copy link
Owner Author

milankl commented Mar 3, 2021

or

∇²u[j,i] = ((u[j-1,i]-uij) + (u[j+1,i]-uij)) + ((u[j,i-1]-uij) + (u[j,i+1]-uij))

note the brackets

@milankl
Copy link
Owner Author

milankl commented Mar 23, 2021

done in #153

@milankl milankl closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant