|
31 | 31 | "name": "stdout", |
32 | 32 | "output_type": "stream", |
33 | 33 | "text": [ |
34 | | - "Sun= Particle(12839191512243679478, set=<139958624342096>\n", |
| 34 | + "Sun= Particle(5327607734827039294, set=<140344016938512>\n", |
35 | 35 | " , mass=1.0 MSun\n", |
36 | 36 | " , vx=0.0 kms\n", |
37 | 37 | " , vy=0.0 kms\n", |
|
54 | 54 | }, |
55 | 55 | { |
56 | 56 | "cell_type": "code", |
57 | | - "execution_count": 3, |
| 57 | + "execution_count": 4, |
58 | 58 | "metadata": {}, |
59 | 59 | "outputs": [ |
60 | 60 | { |
61 | 61 | "name": "stdout", |
62 | 62 | "output_type": "stream", |
63 | 63 | "text": [ |
64 | | - "Earth= Particle(2132547103536715993, set=<139958624342096>\n", |
| 64 | + "Earth= Particle(11549171301815924007, set=<140344016938512>\n", |
65 | 65 | " , mass=3.00273515275e-06 MSun\n", |
66 | 66 | " , vx=0.0 kms\n", |
67 | 67 | " , vy=29.7885123292 kms\n", |
|
88 | 88 | }, |
89 | 89 | { |
90 | 90 | "cell_type": "code", |
91 | | - "execution_count": 4, |
| 91 | + "execution_count": 5, |
92 | 92 | "metadata": {}, |
93 | 93 | "outputs": [ |
94 | 94 | { |
|
98 | 98 | " key mass vx vy vz x y z\n", |
99 | 99 | " - MSun kms kms kms au au au\n", |
100 | 100 | "==================== =========== =========== =========== =========== =========== =========== ===========\n", |
101 | | - "12839191512243679478 1.000e+00 0.000e+00 -8.945e-05 0.000e+00 -3.003e-06 0.000e+00 0.000e+00\n", |
102 | | - " 2132547103536715993 3.003e-06 0.000e+00 2.979e+01 0.000e+00 1.000e+00 0.000e+00 0.000e+00\n", |
| 101 | + " 5327607734827039294 1.000e+00 0.000e+00 -8.945e-05 0.000e+00 -3.003e-06 0.000e+00 0.000e+00\n", |
| 102 | + "11549171301815924007 3.003e-06 0.000e+00 2.979e+01 0.000e+00 1.000e+00 0.000e+00 0.000e+00\n", |
103 | 103 | "==================== =========== =========== =========== =========== =========== =========== ===========\n" |
104 | 104 | ] |
105 | 105 | } |
|
118 | 118 | }, |
119 | 119 | { |
120 | 120 | "cell_type": "code", |
121 | | - "execution_count": 5, |
| 121 | + "execution_count": 6, |
122 | 122 | "metadata": {}, |
123 | 123 | "outputs": [], |
124 | 124 | "source": [ |
|
135 | 135 | }, |
136 | 136 | { |
137 | 137 | "cell_type": "code", |
138 | | - "execution_count": 6, |
| 138 | + "execution_count": 7, |
139 | 139 | "metadata": {}, |
140 | 140 | "outputs": [ |
141 | 141 | { |
142 | 142 | "name": "stdout", |
143 | 143 | "output_type": "stream", |
144 | 144 | "text": [ |
145 | | - "Sun= Particle(12839191512243679478, set=<139958624342096>\n", |
| 145 | + "Sun= Particle(5327607734827039294, set=<140344016938512>\n", |
146 | 146 | " , mass=1.0 MSun\n", |
147 | 147 | " , name=sun\n", |
148 | 148 | " , vx=0.0 kms\n", |
|
168 | 168 | }, |
169 | 169 | { |
170 | 170 | "cell_type": "code", |
171 | | - "execution_count": 7, |
| 171 | + "execution_count": 8, |
172 | 172 | "metadata": {}, |
173 | 173 | "outputs": [ |
174 | 174 | { |
|
178 | 178 | "moon= key mass name vx vy vz x y z\n", |
179 | 179 | " - kg none 44597309335878.1 * m * s**-1 44597309335878.1 * m * s**-1 44597309335878.1 * m * s**-1 km km km\n", |
180 | 180 | "==================== =========== =========== =========== =========== =========== =========== =========== ===========\n", |
181 | | - " 4163597056661966629 7.348e+22 moon 0.000e+00 2.297e-11 0.000e+00 3.844e+05 0.000e+00 0.000e+00\n", |
| 181 | + " 5429030374334993932 7.348e+22 moon 0.000e+00 2.297e-11 0.000e+00 3.844e+05 0.000e+00 0.000e+00\n", |
182 | 182 | "==================== =========== =========== =========== =========== =========== =========== =========== ===========\n" |
183 | 183 | ] |
184 | 184 | } |
|
203 | 203 | }, |
204 | 204 | { |
205 | 205 | "cell_type": "code", |
206 | | - "execution_count": 8, |
| 206 | + "execution_count": 9, |
207 | 207 | "metadata": {}, |
208 | 208 | "outputs": [], |
209 | 209 | "source": [ |
|
220 | 220 | }, |
221 | 221 | { |
222 | 222 | "cell_type": "code", |
223 | | - "execution_count": 9, |
| 223 | + "execution_count": 10, |
224 | 224 | "metadata": {}, |
225 | 225 | "outputs": [ |
226 | 226 | { |
227 | 227 | "data": { |
228 | 228 | "text/plain": [ |
229 | | - "<amuse.datamodel.particles.Particle at 0x7f4aa8163140>" |
| 229 | + "<amuse.datamodel.particles.Particle at 0x7fa46347c640>" |
230 | 230 | ] |
231 | 231 | }, |
232 | | - "execution_count": 9, |
| 232 | + "execution_count": 10, |
233 | 233 | "metadata": {}, |
234 | 234 | "output_type": "execute_result" |
235 | 235 | } |
|
248 | 248 | }, |
249 | 249 | { |
250 | 250 | "cell_type": "code", |
251 | | - "execution_count": 10, |
| 251 | + "execution_count": 11, |
252 | 252 | "metadata": {}, |
253 | 253 | "outputs": [], |
254 | 254 | "source": [ |
|
264 | 264 | }, |
265 | 265 | { |
266 | 266 | "cell_type": "code", |
267 | | - "execution_count": 11, |
| 267 | + "execution_count": 12, |
268 | 268 | "metadata": {}, |
269 | 269 | "outputs": [ |
270 | 270 | { |
|
274 | 274 | "Solar system: key mass name vx vy vz x y z\n", |
275 | 275 | " - MSun none kms kms kms au au au\n", |
276 | 276 | "==================== =========== =========== =========== =========== =========== =========== =========== ===========\n", |
277 | | - "12839191512243679478 1.000e+00 sun 0.000e+00 -9.059e-05 0.000e+00 -3.040e-06 0.000e+00 0.000e+00\n", |
278 | | - " 2132547103536715993 3.003e-06 earth 0.000e+00 2.979e+01 0.000e+00 1.000e+00 0.000e+00 0.000e+00\n", |
279 | | - " 4163597056661966629 3.694e-08 moon 0.000e+00 3.081e+01 0.000e+00 1.003e+00 0.000e+00 0.000e+00\n", |
| 277 | + " 5327607734827039294 1.000e+00 sun 0.000e+00 -9.059e-05 0.000e+00 -3.040e-06 0.000e+00 0.000e+00\n", |
| 278 | + "11549171301815924007 3.003e-06 earth 0.000e+00 2.979e+01 0.000e+00 1.000e+00 0.000e+00 0.000e+00\n", |
| 279 | + " 5429030374334993932 3.694e-08 moon 0.000e+00 3.081e+01 0.000e+00 1.003e+00 0.000e+00 0.000e+00\n", |
280 | 280 | "==================== =========== =========== =========== =========== =========== =========== =========== ===========\n" |
281 | 281 | ] |
282 | 282 | } |
|
296 | 296 | }, |
297 | 297 | { |
298 | 298 | "cell_type": "code", |
299 | | - "execution_count": 12, |
| 299 | + "execution_count": 13, |
300 | 300 | "metadata": {}, |
301 | 301 | "outputs": [ |
302 | 302 | { |
|
322 | 322 | }, |
323 | 323 | { |
324 | 324 | "cell_type": "code", |
325 | | - "execution_count": 13, |
| 325 | + "execution_count": 14, |
326 | 326 | "metadata": {}, |
327 | 327 | "outputs": [ |
328 | 328 | { |
|
347 | 347 | }, |
348 | 348 | { |
349 | 349 | "cell_type": "code", |
350 | | - "execution_count": 14, |
| 350 | + "execution_count": 15, |
351 | 351 | "metadata": {}, |
352 | 352 | "outputs": [ |
353 | 353 | { |
|
358 | 358 | " [ 4.86057963e-06, 0.00000000e+00, 0.00000000e+00]])" |
359 | 359 | ] |
360 | 360 | }, |
361 | | - "execution_count": 14, |
| 361 | + "execution_count": 15, |
362 | 362 | "metadata": {}, |
363 | 363 | "output_type": "execute_result" |
364 | 364 | } |
|
385 | 385 | }, |
386 | 386 | { |
387 | 387 | "cell_type": "code", |
388 | | - "execution_count": 15, |
| 388 | + "execution_count": 16, |
389 | 389 | "metadata": {}, |
390 | 390 | "outputs": [ |
391 | 391 | { |
|
586 | 586 | " 'z']" |
587 | 587 | ] |
588 | 588 | }, |
589 | | - "execution_count": 15, |
| 589 | + "execution_count": 16, |
590 | 590 | "metadata": {}, |
591 | 591 | "output_type": "execute_result" |
592 | 592 | } |
|
1403 | 1403 | "cell_type": "markdown", |
1404 | 1404 | "metadata": {}, |
1405 | 1405 | "source": [ |
1406 | | - "You have performed some rudimentary operations on a particle set.\n", |
| 1406 | + "###### You have performed some rudimentary operations on a particle set.\n", |
1407 | 1407 | "It is now time to experiment a little for yourself.\n", |
1408 | 1408 | "\n", |
1409 | 1409 | "\n", |
1410 | | - "Assignmnets and questions:\n", |
| 1410 | + "Assignments and questions:\n", |
1411 | 1411 | "---------------\n", |
1412 | 1412 | "\n", |
1413 | 1413 | "### Assignment 1:\n", |
|
1450 | 1450 | ], |
1451 | 1451 | "metadata": { |
1452 | 1452 | "kernelspec": { |
1453 | | - "display_name": "Python 3", |
| 1453 | + "display_name": "Python 3 (ipykernel)", |
1454 | 1454 | "language": "python", |
1455 | 1455 | "name": "python3" |
1456 | 1456 | }, |
|
1464 | 1464 | "name": "python", |
1465 | 1465 | "nbconvert_exporter": "python", |
1466 | 1466 | "pygments_lexer": "ipython3", |
1467 | | - "version": "3.9.7" |
| 1467 | + "version": "3.8.10" |
1468 | 1468 | } |
1469 | 1469 | }, |
1470 | 1470 | "nbformat": 4, |
|
0 commit comments