Skip to content

This code solves the Laplace equation for potentials in internal regions with boundary conditions using numerical methods. Each block of code is explained step by step.

Notifications You must be signed in to change notification settings

Krystifer/Laplace-equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Laplace-equation

We don't always know the exact solution of Laplace's equation, but we do know that every solution has the property that the value of the potential at some point can be obtained from the average of the nearest neighbors. The relaxation method is applied to a matrix of boundary conditions, where we update the matrix by replacing each element with the average of its nearest neighbors. After a given number of iterations, the matrix converges and by the uniqueness of the potential theorem, this is the solution to Laplace's equation in that interior region with the specified boundary conditions.

About

This code solves the Laplace equation for potentials in internal regions with boundary conditions using numerical methods. Each block of code is explained step by step.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published