Giter Site home page Giter Site logo

wanglican / fmm_matlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanliangguo/fmm_matlab

3.0 2.0 1.0 14 KB

This is an implementation of a (toy) 2D Laplace problem using fast multipole method (FMM) in Matlab.

License: GNU General Public License v2.0

MATLAB 100.00%

fmm_matlab's Introduction

fmm_matlab

This is an implementation of a (toy) 2D Laplace problem using fast multipole method (FMM) in Matlab. The algorithm follows L. Greengard & V. Rokhlin, Journal of Computational Physics, 1987 Some variable names are motivated by L. Ying et al., Journal of Computational Physics, 2004

What does the code do

N source points are randomly distributed in a unit box centered at (0.5, 0.5) The strengths of the charges are also random. The fast multipole method is used to evaluate the potential at the target points (collocated with the source points). The results are compared to direct evaluation as a validation.

Intent of the project

This code was a self-exercise when I was in grad school at the University of Southern California. I used this code to learn the algorithm of the fast multipole method (FMM). The code is reasonably optimized and one could test the complexity and convergence by changing the inputs. I shall stress that this code is only for “proof-of-concept” purpose, as there are plenty of existing (high-performance) FMM libraries that are far superior than this implementation (notably at Courant mathematics and Computing Laboratory). Nevertheless, this code might be a reasonable starting point for people who are familiar with Matlab and wants to get a hand on FMM.

fmm_matlab's People

Contributors

hanliangguo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chaogecanfly

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.