C - graphics library for physical models

Click For Summary
The discussion centers on a request for assistance in creating a simple program to illustrate a specific case of the three-body problem using C on a Linux system. The user is comfortable with numerical calculations but seeks guidance on how to animate the movement of three bodies on the screen. They express that a graphical user interface (GUI) is not necessary, as they would be satisfied with a console-based application that allows for manual input of parameters like total energy and positions. A suggestion is made to consider the GLES2Phys library, which is a well-known cross-platform library for creating GUIs, although it is in C++. The user is looking for a straightforward solution to visualize the dynamics of the three-body problem.
irycio
Messages
96
Reaction score
1
Hello everyone, haven't been here in a while.
My tutor asked me wether I wouldn't be interested in writing a smal program to illustrate one particular case of 3-body problem. I definitely would be, it's just that I've never written any application displaying anything. Numerical calculations shouldn't be a problem, I just need a way to move my 3 bodies around the screen. Since I write in C (Linux), a simple library for that environment would be extremely helpful. Although the possibility of manually changing some parameters of the system (total energy, postions, whatever ;)) is expected, GUI is not necessary - typing them in a console window and than just watch the animated evolution of the system would be just fine.

Anyway, thanks in advance for your help!
 
Technology news on Phys.org
Last edited by a moderator:
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 29 ·
Replies
29
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K