NBodySimulation
✖
NBodySimulation
[実験的]
✖
NBodySimulation[law,{state1,…,staten},t]
指定されたポテンシャルまたは力の法則に支配される n 体の系の運動のシミュレーションを,初期状態 stateiで時間 t の間生成する.
詳細とオプション


- NBodySimulationは,結果としてNBodySimulationDataオブジェクトを与える.
- NBodySimulationは,デフォルトで,古典的な非相対的な運動方程式を解く.
- 状態 stateiは,次の要素を含む連想として与えられる.
-
"Mass" 質量 "Position" 位置 "Velocity" 速度 "Charge" 電荷(任意) "PositionVariable" 位置の変数(任意) "MomentumVariable" 運動量の変数(任意) - 特定のポテンシャルあるいは力の法則が使う追加的要素も加えることができる.
- ポテンシャルあるいは力の法則は以下で与えられる.
-
"name" 名前付きの法則 <"prop1"f1,… > 指定された特性を持つ法則 fun 対ポテンシャル関数 - 次は,使用可能な名前付きの法則である.
-
"InverseSquare" 単位のない逆2乗の法則 "Harmonic" 単位のない調和ポテンシャル {"Harmonic",params} 単位はないがパラメータがある調和ポテンシャル "Newtonian" 物理単位があるニュートンの重力法則 "Coulomb" 物理単位があるクーロンの法則 - デフォルトで,"Harmonic"はバネ定数1と平衡長1を使う.
- {"Harmonic",<"SpringConstant"->k,"EquilibriumLength"->len >}はバネ係数 k と平衡長 len を使う.
- 法則を連想として与える際には次のキーを使うことができる.
-
"PairwisePotential" 任意の2体間の対ポテンシャル関数 "PairwiseForce" 任意の2体間の対力関数 "ExternalPotential" 各体に適用される追加的なポテンシャル関数 "ExternalForce" 各体に適用される追加的な力関数 "Region" 物体の領域 - 対ポテンシャル関数または対力関数 f は,物体 i と物体 j のすべての対に f[statei,statej]の形で適用される.
- 各体について指定された初期状態の値は,単位がある数量として与えることができる.
例題
すべて開くすべて閉じる例 (2)基本的な使用例
In[13]:=13

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-ljilw
Out[13]=13

In[14]:=14

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-izt3k5
Out[14]=14

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-bsal79
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-bhwkfb
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-l1v6wo
Out[3]=3

スコープ (8)標準的な使用例のスコープの概要
In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-l903b2
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-vg1ko
Out[2]=2

シミュレーションの間にエネルギーがどのように変化するかを表示する:
In[4]:=4

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-dnuduq
Out[4]=4

In[4]:=4

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-be4x9m
Out[4]=4

In[5]:=5

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-clr9gl
Out[5]=5

バネで繋がれた名前付きの3体のシミュレーションを二次元で行う:
In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-d3uj02
Out[1]=1

「bill」の縦の位置が時間とともにどのように変化するかを示す:
In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-pubxln
Out[2]=2

「sam」と「george」の水平位置が時間とともにどのように変化するかを示す:
In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-g6s4qa
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-nafvg
Out[4]=4

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-xbkpb
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-ejnll
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-cp93h
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-y58gc
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-n3t0eo

Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-do01v
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-fd88rn
Out[3]=3

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-en1jjl
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-e22xlu
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-pbawj7
Out[3]=3

"PairwiseForce"を使って半径1の2つの球体間の弾性衝突をモデル化する:
In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-fpt8g5
In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-iuzq7q
In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-cohupg
Out[3]=3

In[1]:=1

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-ksiogr
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-d3lqkm
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-bkp22q
Out[3]=3

アプリケーション (1)この関数で解くことのできる問題の例
In[12]:=12

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-e5lmbu
In[15]:=15

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-j43wn1
In[16]:=16

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-bzqlhp
In[18]:=18

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-thy86
In[19]:=19

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-fect6p
In[22]:=22

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-mtynqf
Out[22]=22

In[23]:=23

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-bizz4i
Out[23]=23

In[24]:=24

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-d7g9i5
Out[24]=24

In[25]:=25

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-w901n
Out[25]=25

In[26]:=26

✖
https://wolfram.com/xid/0bh1yrtrwcf5ua-do4czt
Out[26]=26

Wolfram Research (2019), NBodySimulation, Wolfram言語関数, https://reference.wolfram.com/language/ref/NBodySimulation.html.
✖
Wolfram Research (2019), NBodySimulation, Wolfram言語関数, https://reference.wolfram.com/language/ref/NBodySimulation.html.
テキスト
Wolfram Research (2019), NBodySimulation, Wolfram言語関数, https://reference.wolfram.com/language/ref/NBodySimulation.html.
✖
Wolfram Research (2019), NBodySimulation, Wolfram言語関数, https://reference.wolfram.com/language/ref/NBodySimulation.html.
CMS
Wolfram Language. 2019. "NBodySimulation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NBodySimulation.html.
✖
Wolfram Language. 2019. "NBodySimulation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NBodySimulation.html.
APA
Wolfram Language. (2019). NBodySimulation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NBodySimulation.html
✖
Wolfram Language. (2019). NBodySimulation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NBodySimulation.html
BibTeX
✖
@misc{reference.wolfram_2025_nbodysimulation, author="Wolfram Research", title="{NBodySimulation}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/NBodySimulation.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_nbodysimulation, organization={Wolfram Research}, title={NBodySimulation}, year={2019}, url={https://reference.wolfram.com/language/ref/NBodySimulation.html}, note=[Accessed: 06-April-2025
]}