CodingTrain / CodingTrain/Suggestion-Box

Black hole event horizon demo in honor of Stephen Hawking

オープン
#896 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
570
フォーク
85
PR マージ指標
30日以内にマージされた PR はありません

説明

In honor of Stephen Hawking, here is a black hole event horizon demo that is a modified version of the "Slingshot with gravity" coding activity from the STEMcoding project:

http://www.physics.ohio-state.edu/~orban/physics_coding/gravity/gravity.html

In the modified version, the speed of the object cannot exceed the speed of light (c) which in this case is set to 50.0. Here is the code:

http://alpha.editor.p5js.org/ChrisOrban/sketches/rk7BNQwKz

If you change the initial position of the object to be just inside the event horizon (x = 445, y = 250 for example) you'll notice that the distance from the black hole never gets larger than some value, but if you change the initial position to be just outside the event horizon (x = 465, y = 250) then the position keeps increasing over time because the object is unbound from the system. In this way, the event horizon is a kind of point of no return because not even light can fully escape the system.

Just for fun, you can also click and drag the mouse to sling an object in some direction at the speed of light.

There are better ways of writing gravity codes with more accurate integration of trajectories, but this simple implementation still shows the basic features of the event horizon. Enjoy!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、リンクされているSTEMcodingの重力アクティビティとp5.jsスケッチを確認してください。ここで説明されている事象の地平面での挙動と光速の制約も含みます。このissueでは、リポジトリのファイル、テスト、実装のエントリーポイントが指定されていません。完了とするには、これをCoding Trainのトピックまたはデモとして採用するためのスコープについて合意する必要があります。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
content
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。