barbagroup / fmm_tutorial Goto Github PK
View Code? Open in Web Editor NEWA step-by-step introduction to treecode.
A step-by-step introduction to treecode.
Most of the docstrings have their descriptions running on in a single line.
There should be newlines inserted so that they're readable.
In general, actually, max column width should be 79 characters in line with PEP8
and a copyright notice.
MIT License is good, and for a copyright notice, probably
Content under Creative Commons Attribution license CC-BY 4.0, code under MIT license (c) 2015 T. Wang, N. Clementi
Hi there,
I'm a PhD student in the group of Hans Fangohr, and I used this material to learn the concepts behind the Barnes-Hut method/FMM. I'd like to cite the repository in a paper that I'm writing - is there any chance the authors could put the repository onto Zenodo so I can cite the DOI?
Also wanted to say thanks; I found the material very instructive.
All the best,
Ryan
Hi there!
In 2022, there're some dependencies and commands are deprecated for Python 3.9 or later, here are some updates:
In treenode_helper.py you should change:
line 5: from numba import autjit
-> from numba import jit
line 73 self.leaf = numpy.zeros(n_crit, dtype=numpy.int)
-> self.leaf = numpy.zeros(n_crit, dtype=int)
line 75 self.child = numpy.zeros(8, dtype=numpy.int)
-> self.child = numpy.zeros(8, dtype=int)
line 79 self.multipole = numpy.zeros(10, dtype=numpy.float)
-> self.multipole = numpy.zeros(10, dtype=float)
In 04_tree_construction.ipyn you should change in class cell():
self.leaf = numpy.zeros(n_crit, dtype=numpy.int)
-> self.leaf = numpy.zeros(n_crit, dtype=int)
self.child = numpy.zeros(8, dtype=numpy.int)
-> self.child = numpy.zeros(8, dtype=int)
self.multipole = numpy.zeros(10, dtype=numpy.float)
-> self.multipole = numpy.zeros(10, dtype=float)
In 06_treecode.ipynb you should change every clock()
to time()
I hope it will be helpful for future readers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.