Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qfcy committed Dec 7, 2024
1 parent ce0fbe6 commit c235756
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Additionally, this project can be further expanded to research other physical pr
项目源代码 (Project source code):https://github.com/qfcy/python-gravity-simulator
## 一.各个文件的介绍

源代码位于solar_system目录中。

#### 1.主程序
solar_system.py:主程序的最新版本,也是一个公共的模块
solar_system_v1.0.py:主程序的1.0版本(存档备用)
Expand Down Expand Up @@ -100,6 +102,8 @@ bilibili主页:[qfcy_](https://space.bilibili.com/454233262)

## 1.The introduction to each file

The source code is located in the solar_system directory.

#### (1) Main program

solar_system.py: The latest version of the main program that also serves as a utility module
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ You’re able to create a universe belonging to yourself in this program. Additi
一.各个文件的介绍
=================

源代码位于solar_system目录中。

1.主程序
--------

Expand Down Expand Up @@ -175,6 +177,8 @@ bilibili主页:\ `qfcy\_ <https://space.bilibili.com/454233262>`__
1.The introduction to each file
===============================

The source code is located in the solar_system directory.

(1) Main program
----------------

Expand Down
2 changes: 1 addition & 1 deletion solar_system/ENG/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In the program 'Gravity Simulating the Solar System':
- (5) Press ``Tab``, ``Shift+Tab`` to switch planets, and press ``Delete`` to delete the currently followed planet.
- (6) Drag the mouse to launch the "spaceship", and press ``Ctrl+D`` to delete all spaceships if there are performance problems. After tracking the spaceship, informations such as the spaceship's speed will be displayed on the screen, and the speed is relative to the parent celestial body. The parent celestial body of the spaceship is determined by the celestial body being tracked at the time of spaceship launch. Press the ↑, ↓, ←, → keys to "pilot" the spaceship, with the ↑ and ↓ keys used for acceleration and deceleration, and the ← and → keys used for turning left (counterclockwise) and right (clockwise). Using the spaceship control function allows you to adjust the spaceship's orbital path, simulating the real process of spaceship launch and trajectory adjustment.

- (7) Using the "Open" and "Save" features allows you to save simulation progress, customize planets in the gravitational system, and create a more diverse and rich celestial system. The program currently supports saving files in xlsx, csv, and pkl (pickle) formats. The "default.xlsx" table stored in the program directory is an example of a saved Excel sheet and is also the default celestial bodies list that the program reads at startup. During editing, clicking on "Help" at the bottom left of the Excel sheet provides detailed instructions on the table. Press ``Ctrl+O`` to open files, ``Ctrl+S`` to save the current file.
- (7) The "Open" and "Save" features allow you to save simulation progress, customize planets in the gravitational system, and create a more diverse and rich celestial system. The program currently supports saving files in xlsx, csv, and pkl (pickle) formats. The "default.xlsx" table stored in the program directory is an example of a saved Excel sheet and is also the default celestial bodies list that the program reads at startup. During editing, clicking on "Help" at the bottom left of the Excel sheet provides detailed instructions on the table. Press ``Ctrl+O`` to open files, ``Ctrl+S`` to save the current file.
- (8) The program includes a tool tip which can display information such as frame rate, parameters of the current following celestial body, current calculation precision and performance in the top right corner of the interface. Press ``F3`` to toggle the tool tip between three modes, including hidden, brief and detailed.
- (9) If you run this directly in Python, you also need to use the command "pip install pandas openpyxl" to install the required libraries.

Expand Down

0 comments on commit c235756

Please sign in to comment.