Created
August 26, 2023 20:59
-
-
Save hannorein/aab74fc8cf6885f89191b9e37cbb0cba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "id": "5552de1e", | |
| "metadata": { | |
| "ExecuteTime": { | |
| "end_time": "2023-08-26T20:59:02.015274Z", | |
| "start_time": "2023-08-26T20:59:01.984914Z" | |
| } | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "N:\n", | |
| "\u001b[31m< 0\u001b[0m\n", | |
| "---\n", | |
| "\u001b[32m> 1\u001b[0m\n", | |
| "ri_whfast.safe_mode:\n", | |
| "\u001b[31m< 1\u001b[0m\n", | |
| "---\n", | |
| "\u001b[32m> 0\u001b[0m\n", | |
| "rand_seed:\n", | |
| "\u001b[31m< 36877\u001b[0m\n", | |
| "---\n", | |
| "\u001b[32m> 36691\u001b[0m\n", | |
| "particles:\n", | |
| "\u001b[32m> (128 bytes, values not printed)\u001b[0m\n", | |
| "\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "import rebound\n", | |
| "sim = rebound.Simulation()\n", | |
| "sim.add(m=1)\n", | |
| "sim.ri_whfast.safe_mode = 0\n", | |
| "sim2 = rebound.Simulation()\n", | |
| "sim.diff(sim2)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "id": "0cc44259", | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 3 (ipykernel)", | |
| "language": "python", | |
| "name": "python3" | |
| }, | |
| "language_info": { | |
| "codemirror_mode": { | |
| "name": "ipython", | |
| "version": 3 | |
| }, | |
| "file_extension": ".py", | |
| "mimetype": "text/x-python", | |
| "name": "python", | |
| "nbconvert_exporter": "python", | |
| "pygments_lexer": "ipython3", | |
| "version": "3.9.6" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 5 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment