Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Other Sciences
Programming and Computer Science
Getting Started with C++ (for N-Body Simulations)
Reply to thread
Message
[QUOTE="jedishrfu, post: 5590773, member: 376845"] My first question is why have you chosen C/C++ as the language of choice? There are many good references on N-body simulations that use Java and Python. Are you interested in "speed" of execution or is it because of some class requirement? Assuming that language is not really the issue then I would suggest looking at Open Source Physics. Its a collection of java classes for writing complex simulations such as N-body simulations. It comes with several ODE solvers, and many 2D and 3D graphical plotting classes. THe authors have also written a book covering a lot of simulation material including and going beyond N-body. [URL="http://www.compadre.org/osp"]www.compadre.org/osp[/URL] and the book [URL]http://www.compadre.org/OSP/document/ServeFile.cfm?ID=7375&DocID=527[/URL] If instead you want ot use Python then the Anaconda version has numpy, and scipy included: [URL]http://lectures.quantecon.org/[/URL] for directions on how to install and use it. Alternatively you could consider using julia (see the above link) which is a MATLAB like clone as the programming language of choice [URL]https://www.wired.com/2014/02/julia/[/URL] Lastly, you could look as Processing.org, a java language environment with extensive graphics libraries, examples and tutorials to get you up and running with Java. Some examples could be adapted to the N-body problem if they don't simulate it already. [MEDIA=youtube]FdsiXZA6Ymo[/MEDIA] Processing makes the power of OpenGL available to you via the java language so give it a try. processing.org [/QUOTE]
Insert quotes…
Post reply
Forums
Other Sciences
Programming and Computer Science
Getting Started with C++ (for N-Body Simulations)
Back
Top