Coder Social home page Coder Social logo

s-ankur / montecarlo-pde Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 0.0 4 MB

Monte Carlo Method to Solve Laplace and Poisson Equations with example for EE447 High Voltage Engineering

Python 100.00%
monte-carlo laplace-equation poisson-equation electrostatics simulation

montecarlo-pde's Introduction

montecarlo-pde

The Poisson Equation, and its special case, the Laplace Equation, are important partial differential equations within electrostatics, as they describe the electric potential field caused by a particular charge distribution. Solving the Poisson equation for a given set of boundary conditions is a fundamental problem within the field. This report describes an algorithm for a Monte Carlo Method solution to the Poisson and Laplace equations. Monte Carlo Method is a parallelizable non- deterministic numerical approach towards solving this problem. A Python implementation is also provided for three versions of the Monte Carlo Method: Fixed Step, Semi-Floating and Full Floating. Several examples including the one-dimensional and two-dimensional parallel plate capacitors are performed to illustrate the function of the implementation.

Keywords: Poisson Equation, Laplace Equation, Monte Carlo Methods, Electrostatics, Parallel Plate Capacitor, Python Implementation

A. One dimentional capacitor (Laplace Equation)

B. Variation of solution with number of random walks (Laplace Equation)

C. Variation of solution with number of lattice points (Laplace Equation)

D.One dimensional capacitor with a linear charge distribution (Poisson Equation)

E. Two dimentional capacitor (Laplace Equation)

F.Two dimentional metal box with a spherical charge in centre (Poisson Equation)

G. Two dimentional metal box with a two oppositely charged spheres (Poisson Equation)

H.Two dimentional metal box with a spherical charge at center using semi-floating random walk algorithm (Poisson Equation)

I. Two dimentional metal box with a spherical charge at center using full floating random walk algorithm (Poisson Equation)

montecarlo-pde's People

Contributors

s-ankur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.