ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/data.py
# -*- coding: utf-8 -*- """ Initial conditions for standard tests """ import math def add_earths(sim, ei): """ Add a simple test system with 2 ~ Earths, with eccentricities and inclinations (same) specified """ sim.add(m=1.) massratio = 3.e-6 sim.add(m=massratio, a=1., e=ei, inc=ei) sim....
Python
Unknown
357
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/reboundx.h
/** * @file reboundx.h * @brief REBOUNDx API definition. * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2019 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the...
C/C++ Header
Unknown
32,360
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/tools.py
from . import clibreboundx from ctypes import c_double coordinates = {"JACOBI":0, "BARYCENTRIC":1, "PARTICLE":2} # to use C version's REBX_COORDINATES enum #function to test whether REBOUND shared library can be located and called correctly def install_test(): e = None try: clibreboundx.install_test.r...
Python
Unknown
663
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/rebxtools.h
/** * @file rebxtools.h * @brief Helper functions for reboundx * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of t...
C/C++ Header
Unknown
1,905
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/extras.py
from . import clibreboundx from ctypes import Structure, c_double, POINTER, c_int, c_uint, c_long, c_ulong, c_void_p, c_char_p, CFUNCTYPE, byref, c_uint32, c_uint, cast, c_char, pointer import rebound import reboundx import warnings integrators = {"implicit_midpoint": 0, "rk4":1, "euler": 2, "rk2": 3, "none": -1} REB...
Python
Unknown
18,708
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_simulationarchive.py
import rebound import reboundx import unittest import numpy as np """ Acts as both a test on various integration options for forces working (add_force vs step before/after/both) and for reproducibility with the simulationarchive under those various modes. """ # When the scheme error with leapfrog is larger than the p...
Python
Unknown
7,738
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_stochastic_forces.py
import rebound import reboundx import unittest import os import numpy as np class TestStochastic(unittest.TestCase): def test_default(self): self.sim = rebound.Simulation() self.sim.add(m=1., r=0.005) self.sim.add(m=1.e-3, a=1.0, e=0.1) self.sim.integrator = "whfast" self.si...
Python
Unknown
2,396
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_dynamical_tides.py
import rebound import reboundx import unittest import os import numpy as np class TestTides(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.G = 4*np.pi**2 self.sim.add(m=1.) self.sim.add(m=1.e-3, a=1.5, e=0.987, r=7.5e-4) self.sim.move_to_com() ...
Python
Unknown
1,549
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_gr.py
import rebound import reboundx import unittest import os import numpy as np import reboundx.constants as constants class TestGR(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1., r=0.005) self.sim.add(m=1.e-3, a=1.0, e=0.1) self.sim.dt = self.sim...
Python
Unknown
3,302
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_tides_constant_time_lag.py
import rebound import reboundx import unittest import os import numpy as np class TestTides(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1., r=0.005) self.sim.add(m=1.e-3, a=0.05, e=0.1, r=0.0005) self.sim.move_to_com() self.rebx = rebo...
Python
Unknown
4,567
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_effects.py
import rebound import reboundx import unittest class TestForces(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1.) self.sim.add(a=1., e=0.2) self.rebx = reboundx.Extras(self.sim) def test_loadforce(self): gr = self.rebx.load_force('g...
Python
Unknown
8,522
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_tides_spin.py
import rebound import reboundx import unittest import os import numpy as np class TestTides(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1., r=0.005) self.sim.add(m=1.e-3, a=0.05, e=0.1, r=0.0005) self.sim.move_to_com() self.rebx = rebo...
Python
Unknown
5,058
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_conservation.py
import rebound import reboundx import unittest import os class TestConservation(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1.) self.sim.add(m=1.e-4, a=1., e=0.1) self.sim.add(m=1.e-4, a=2, e=0.1, inc=0.2) self.sim.integrator="whfast" ...
Python
Unknown
2,926
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_rebx.py
import rebound import reboundx import unittest class TestRebx(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1.) self.sim.add(a=1., e=0.2) self.rebx = reboundx.Extras(self.sim) def test_warn_force(self): self.gr = self.rebx.load_forc...
Python
Unknown
2,576
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_segfaults.py
import rebound import reboundx import unittest def make(): sim = rebound.Simulation() sim.add(m=1.) sim.add(a=0.1, e=0.1) rebx = reboundx.Extras(sim) return sim, rebx def makegr(): sim, rebx = make() gr = rebx.load_force('gr') rebx.add_force(gr) gr.params['c'] = 1e2 ret...
Python
Unknown
2,566
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/__init__.py
Python
Unknown
1
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_machine_independent.py
import rebound import reboundx import unittest import os class TestMachineIndependent(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1.) self.sim.add(a=1., e=0.2) self.rebx = reboundx.Extras(self.sim) sim = rebound.Simulation() s...
Python
Unknown
6,082
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_interpolation.py
import rebound import reboundx import unittest import os import numpy as np class TestConservation(unittest.TestCase): def setUp(self): self.sim = rebound.Simulation() self.sim.add(m=1.) self.sim.add(m=1.e-4, a=1., e=0.1) self.sim.add(m=1.e-4, a=2, e=0.1, inc=0.2) self.sim.i...
Python
Unknown
2,888
[ascl:2011.020]
https://github.com/dtamayo/reboundx
reboundx/test/test_params.py
import rebound import reboundx from reboundx import data import unittest import math import numpy as np from ctypes import c_uint, c_uint8, c_uint32, c_uint64 def mycomp(obj1, obj2): if type(obj1) != type(obj2): return False for attr in [attr for attr in dir(obj1) if not attr.startswith('_')]: ...
Python
Unknown
6,991
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/add_effect.rst
.. _add_effect: Adding A New Effect =================== Whether you're playing around with new physics in your integrations or want to contribute a new effect to REBOUNDx, the process is easy. The :ref:`basic_force` section shows you how to get your new effect working in C and python within 10 minutes. The :ref:`ad...
reStructuredText
Unknown
22,820
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/effect_headers.txt
.. _effects: Astrophysical Effects ===================== Below are descriptions for each of the effects included in REBOUNDx. Different implementations for the same effect are grouped together. All effects follow the same recipes for usage, see the Python quick-start guide (:ref:`python_qs`) or C quick-start guide (:...
Text
Unknown
1,331
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/collisions.rst
.. _collisions: Collisions ========== Below are each of the functions for resolving collisions implemented in REBOUNDx.
reStructuredText
Unknown
123
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/effects.rst
.. _effects: Astrophysical Effects ===================== Below are descriptions for each of the effects included in REBOUNDx. Different implementations for the same effect are grouped together. All effects follow the same recipes for usage, see the Python quick-start guide (:ref:`python_qs`) or C quick-start guide (:...
reStructuredText
Unknown
46,550
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # REBOUNDx documentation build configuration file, created by # sphinx-quickstart on Sun Nov 29 14:22:27 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
Python
Unknown
20,177
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/python_quickstart.rst
.. _python_quickstart: Quickstart (Python) =================== Installation ------------ To quickly get up and running, simply type into a terminal (if you installed REBOUND in a virtual environment, activate it first):: pip install reboundx At this point you are done and can skip to the Quick Start Guide bel...
reStructuredText
Unknown
2,841
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/misc.rst
.. _misc: Miscellaneous Utilities ======================= Below are various miscellaneous utilities implemented in REBOUNDx. .. _track_min_distance: track_min_distance ****************** ======================= =============================================== Authors D. Tamayo Implementation Paper ...
reStructuredText
Unknown
3,977
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/index.rst
.. REBOUNDx documentation master file, created by sphinx-quickstart on Sun Nov 29 14:22:27 2019. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. image:: images/hlTau.png :width: 200px :height: 200px .. image:: images/GR.png :width: 20...
reStructuredText
Unknown
3,073
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/requirements.txt
breathe numpydoc rebound>=3.10.0
Text
Unknown
33
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/c_api.rst
.. _c_api: API Documentation (C) ===================== This documents the C API for REBOUNDx. **The main reference point in the documentation is** :ref:`effects` **,which has descriptions for each effect and its parameters, citations, and links to examples.** .. doxygenfile:: reboundx.h
reStructuredText
Unknown
292
[ascl:2011.020]
https://github.com/dtamayo/reboundx
doc/c_quickstart.rst
.. _c_quickstart: Quickstart (C) ============== Installation ------------ Navigate to the parent directory that holds the ``rebound`` folder (see below if you want to install in a custom folder). Then in a terminal:: git clone https://github.com/dtamayo/reboundx.git (install git if you don't have it). *If yo...
reStructuredText
Unknown
3,319
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gr.c
/** * @file gr.c * @brief Post-newtonian general relativity corrections arising from a single massive body * @author Pengshuai (Sam) Shi, Dan Tamayo, Hanno Rein <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Pengshuai (Sam) Shi, Dan Tamayo, Hanno Rein * * This file is part of rebo...
C
Unknown
10,275
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gas_dynamical_friction.c
/** * @file gas_dynamical_friction.c * @brief Gas drag from a thin, disk with a power-law density profile * @author Aleksey Generozov * * * * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
C
Unknown
7,554
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/modify_mass.c
/** * @file modify_mass.c * @brief Add exponential mass loss/growth between timesteps in the simulation. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistri...
C
Unknown
3,329
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gravitational_harmonics.c
/** * @file gravitational_harmonics.c * @brief Add J2n gravitational harmonics to particles * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or mo...
C
Unknown
11,694
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/steppers.c
/** * @file steppers.c * @brief Wrappers to run REBOUND steps with different integrators * @author Dan Tamayo, Hanno Rein <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute ...
C
Unknown
4,825
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/integrator_euler.c
/** * @file euler.c * @brief Euler's method * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2017 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of the GNU...
C
Unknown
1,418
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gas_damping_timescale.c
/** * @file gas_damping_timescale.c * @brief Update orbits with prescribed timescales by directly changing orbital elements after each timestep * @author Phoebe Sandhaus <pjs5535@psu.edu> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * rebound...
C
Unknown
7,176
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/type_I_migration.c
/** * @file type_I_migration.c * @brief Type I migration * @author Kaltrina Kajtazi <1kaltrinakajtazi@gmail.com>, Gabriele Pichierri <gabrielepichierri@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you...
C
Unknown
9,956
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/rebxtools.h
/** * @file rebxtools.h * @brief Helper functions for reboundx * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms...
C/C++ Header
Unknown
2,802
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/radiation_forces.c
/** * @file radiation_forces.c * @brief Add radiation forces * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms ...
C
Unknown
6,693
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/core.h
/** * @file core.h * @brief Central internal functions for REBOUNDx (not called by user) * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or mo...
C/C++ Header
Unknown
7,468
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/linkedlist.h
/** * @file linkedlist.h * @brief Internal functions for manipulating linked lists * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify ...
C/C++ Header
Unknown
2,105
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/rebxtools.c
#include <math.h> #include <stdlib.h> #include <stdio.h> #include "reboundx.h" struct reb_particle rebx_get_com_without_particle(struct reb_particle com, struct reb_particle p){ com.x = com.x*com.m - p.x*p.m; com.y = com.y*com.m - p.y*p.m; com.z = com.z*com.m - p.z*p.m; com.vx = com.vx*com.m - p.vx*p.m...
C
Unknown
11,391
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/central_force.c
/** * @file central_force.c * @brief A general central force. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of ...
C
Unknown
6,919
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/tides_spin.c
/** * @file tides_spin.c * @brief Add self-consistent spin, tidal and dynamical equations of motion for bodies with structure * @author Tiger Lu <tiger.lu@yale.edu>, Dan Tamayo <tamayo.daniel@gmail.com>, Hanno, Rein <hanno.rein@utoronto.ca> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rei...
C
Unknown
18,550
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/lense_thirring.c
/** * @file lense_thirring.c * @brief Add Lense-Thirring effect to particles * @author Arya Akmal <akmala@gmail.com> * * @section LICENSE * Copyright (c) 2023 Arya Akmal * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of the ...
C
Unknown
5,968
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/integrate_force.c
/** * @file integrate_force.c * @brief Generic operator for integrating a force across a timestep * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2017 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistri...
C
Unknown
2,504
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/integrator_implicit_midpoint.c
/** * @file integrator_implicit_midpoint.c * @brief Symplectic numerical integration scheme. * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2017 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute ...
C
Unknown
5,021
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/core.c
/** * @file core.c * @brief Central internal functions for REBOUNDx (not called by user) * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or mo...
C
Unknown
43,002
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/exponential_migration.c
/** * @file exponential_migration.c * @brief Continuous velocity kicks leading to exponential change in the object's semimajor axis. * @author Mohamad Ali-Dib <mma9132@nyu.edu> * * @section LICENSE * Copyright (c) 2021 Mohamad Ali-Dib * * This file is part of reboundx. * * reboundx is free software...
C
Unknown
5,289
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/track_min_distance.c
/** * @file track_min_distance.c * @brief Track minimum distance of secondaries from primary each timestep and log results. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free softwar...
C
Unknown
4,521
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/integrator_rk4.c
/** * @file rk4.c * @brief 4th order Runge Kutta method * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2017 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the term...
C
Unknown
3,547
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/modify_orbits_forces.c
/** * @file modify_orbits_forces.c * @brief Update orbital elements with prescribed timescales using forces. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redi...
C
Unknown
6,845
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/input.c
/** * @file input.c * @brief Input functions. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of the GNU Gene...
C
Unknown
26,750
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/stochastic_forces.c
/** * @file stochastic_forces.c * @brief Add stochastic forces * @author Hanno Rein <hanno@hanno-rein.de> * * @section LICENSE * Copyright (c) 2022 Hanno Rein, Dan Tamayo * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of...
C
Unknown
11,468
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/tides_dynamical.c
/** * @file tides_dynamical.c * @brief Update body's orbital and modal evolution due to the presence of dynamical tides. * @author Donald J. Liveoak <dliveoak@umich.edu> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software...
C
Unknown
16,028
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gr_full.c
/** * @file gr_full.c * @brief Post-newtonian general relativity corrections for all bodies in the simulation * @author Pengshuai (Sam) Shi, Hanno Rein, Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Pengshuai (Sam) Shi, Hanno Rein, Dan Tamayo * * This file is part of ...
C
Unknown
16,760
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/output.c
/** * @file output.c * @brief Output functions. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the terms of the GNU Ge...
C
Unknown
13,232
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/yarkovsky_effect.c
/** * @file yarkovsky_effect.c * @brief Adds the perturbations from the Yarkovsky effect to one or more of the orbiting bodies * @author Noah Ferich <nofe4108@colorado.edu>, Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of r...
C
Unknown
13,968
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/inner_disk_edge.c
/** * @file inner_disk_edge.c * @brief Inner disk edge implemention at a chosen location, while planets are undergoing migration * @author Kaltrina Kajtazi <1kaltrinakajtazi@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx ...
C
Unknown
4,111
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/tides_constant_time_lag.c
/** * @file tides_constant_time_lag.c * @brief Add constant time lag tides raised on primary, orbiting bodies, or both * @author Stanley A. Baronett <stanley.a.baronett@gmail.com>, Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is p...
C
Unknown
10,518
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/linkedlist.c
/** * @file core.c * @brief Internal functions for manipulating linked lists * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it u...
C
Unknown
2,941
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/integrator_rk2.c
/** * @file rk2.c * @brief 2nd order Runge Kutta method (Ralston's method) * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2017 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify ...
C
Unknown
2,433
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/reboundx.h
/** * @file reboundx.h * @brief REBOUNDx API definition. * @author Dan Tamayo <tamayo.daniel@gmail.com>, Hanno Rein * * @section LICENSE * Copyright (c) 2019 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reboundx is free software: you can redistribute it and/or modify * it under the...
C/C++ Header
Unknown
32,360
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/gr_potential.c
/** * @file gr_potential.c * @brief Post-newtonian general relativity corrections using a simple potential that gets the pericenter precession right. * @author Pengshuai (Sam) Shi, Hanno Rein, Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Pengshuai (Sam) Shi, Hanno Rein,...
C
Unknown
5,699
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/modify_orbits_direct.c
/** * @file modify_orbits_direct.c * @brief Update orbital with prescribed timescales by directly changing orbital elements after each timestep. * @author Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2015 Dan Tamayo, Hanno Rein * * This file is part of reboundx. * * reb...
C
Unknown
7,638
[ascl:2011.020]
https://github.com/dtamayo/reboundx
src/interpolation.c
/** * @file interpolation.c * @brief Interpolate particle parameters from passed dataset between timesteps in the simulation. * @author Stanley A. Baronett <stanley.a.baronett@gmail.com>, Dan Tamayo <tamayo.daniel@gmail.com> * * @section LICENSE * Copyright (c) 2020 Dan Tamayo, Hanno Rein * * This file is...
C
Unknown
7,675
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TrackMinDistance.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tracking a particle's minimum distance\n", "\n", "While you can always check particles' states after every call to `sim.integrate`, you might want to check for particular conditions every timestep that you would otherwise mis...
Jupyter Notebook
Unknown
6,008
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TidesConstantTimeLag.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Drag from Tides\n", "\n", "This adds a constant time lag model (Hut 1981) to tides raised on either the primary and/or the orbiting bodies.\n", "As an example, we'll add the tides raised on a post-main sequence Sun near i...
Jupyter Notebook
Unknown
109,363
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/Migration.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Migration\n", "\n", "For modifying orbital elements, REBOUNDx offers two implementations. `modify_orbits_direct` directly calculates orbital elements and modifies those, while `modify_orbits_forces` applies forces that when ...
Jupyter Notebook
Unknown
41,167
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/SpinsIntro.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Getting Started with Spins\n", "\n", "Modeling spins often requires more involved 3D manipulations and visualizations, and this notebook gives an introduction to these capabilities in REBOUND/REBOUNDx." ] }, { "cel...
Jupyter Notebook
Unknown
408,170
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/GeneralRelativity.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding Post-Newtonian general relativity corrections\n", "\n", "It's easy to add post-newtonian corrections to your REBOUND simulations with REBOUNDx. Let's start with a simulation without GR:" ] }, { "cell_type": ...
Jupyter Notebook
Unknown
9,086
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/m.txt
1.2275000469593370E+10 9.9003475370387406E-01 1.2275645582720903E+10 9.9000012913334712E-01 1.2276419718473944E+10 9.8995840009895097E-01 1.2277348681377592E+10 9.8990758749988950E-01 1.2277886834258232E+10 9.8987746187924719E-01 1.2278532617714996E+10 9.8984110875054743E-01 1.2279307557863115E+10 9.8979696341914614E-0...
Text
Unknown
258,336
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/CustomSplittingIntegrationSchemes.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding Custom Operator Steps in Integration Schemes\n", "\n", "In addition to forces that modify particle accelerations every timestep, we can use REBOUNDx to add operations that happen before and/or after each REBOUND timest...
Jupyter Notebook
Unknown
72,714
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/GasDampingTimescale.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Gas Damping Timescale\n", "\n", "`gas_damping_timescale` updates orbits with prescribed timescales by directly changing orbital elements after each timestep, based on Dawson et al. 2016. Outlined in Equation 16 from Dawson e...
Jupyter Notebook
Unknown
164,166
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/OperatorsOverview.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Manually Adding Operator Steps\n", "\n", "Make a simple test case" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import rebound\n", "import rebound...
Jupyter Notebook
Unknown
41,524
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/r.txt
1.2275000469593370E+10 7.4845158254270556E+00 1.2275645582720903E+10 7.4961891477111307E+00 1.2276419718473944E+10 7.5372491836763027E+00 1.2277348681377592E+10 7.6032073670859983E+00 1.2277886834258232E+10 7.6190301634565927E+00 1.2278532617714996E+10 7.6528892741594463E+00 1.2279307557863115E+10 7.7077232910480618E+0...
Text
Unknown
258,336
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/Radiation_Forces_Debris_Disk.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Radiation Forces in a Debris Disk\n", "\n", "Here we add radiation forces to dust particles as a simple model for a debris disk, using WHFast. Our radiation force implementation follows Eq. 5 from Burns et al. 1979. It incl...
Jupyter Notebook
Unknown
66,424
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/EccAndIncDamping.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Eccentricity & Inclination Damping\n", "\n", "For modifying orbital elements, REBOUNDx offers two implementations. `modify_orbits_direct` directly calculates orbital elements and modifies those, while `modify_orbits_forces` ...
Jupyter Notebook
Unknown
68,640
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TypeIMigration.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Type I Migration with an Inner Disk Edge\n", "\n", "Rather than prescribing migration, eccentricity and inclination damping timescales directly, we use a model for Type I Migration that calculates those timescales from physic...
Jupyter Notebook
Unknown
48,886
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/LenseThirring.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding the Lense-Thirring (LT) effect\n", "\n", "Without any additional effects, the pericenter of Mercury doesn't precess" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ ...
Jupyter Notebook
Unknown
47,783
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/StochasticForces.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding stochastic forces\n", "\n", "In this example, we add a stochastic force to a planet. This can be used simulate migration in a turbulent disk. See e.g. [Rein (2012)](https://ui.adsabs.harvard.edu/abs/2012MNRAS.427L..21R...
Jupyter Notebook
Unknown
210,327
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/ParameterInterpolation.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Interpolating Parameters\n", "\n", "If parameters are changing significantly on dynamical timescales (e.g. mass transfer at pericenter on very eccentric orbits) you need a specialized numerical scheme to do that accurately.\n...
Jupyter Notebook
Unknown
153,782
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/ObliquityEvolution.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "**Migration + Equilibrium tides + Obliquity evolution tutorial**\n", "\n", "*Authors: Dang Pham, Michael Poon (equal contribution)*\n", "\n", "In this tutorial, we produce an obliquity evolution for a 2-planet + star sy...
Jupyter Notebook
Unknown
129,028
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/Simulationarchive.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Simulationarchives with REBOUNDx\n", "\n", "We can reproduce `REBOUNDx` simulations with extra effects bit by bit with the `Simulationarchive` (see Rein & Tamayo 2017 for details), and make sure to read [Simulationarchive.ipy...
Jupyter Notebook
Unknown
7,403
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/InnerDiskEdge.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Inner Disk Edge\n", "\n", "This provides a useful prescription for when you need an inner planet trap to halt migration (though it should not be considered a realistic model of the inner edge of a disk)." ] }, { "ce...
Jupyter Notebook
Unknown
27,364
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/J2.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding J2 (Oblateness)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "J2 or oblateness is the leading term in the expansion of the gravitational potential of an extended, azimuthally symmetric body,...
Jupyter Notebook
Unknown
396,875
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/GettingStartedParameters.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding Parameters With REBOUNDx\n", "\n", "We start by creating a simulation, attaching REBOUNDx, and adding the effects of general relativity:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}...
Jupyter Notebook
Unknown
9,707
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/SavingAndLoadingSimulations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Saving and Reloading Simulations\n", "\n", "Here we show how to save a binary field with all the parameters for particles and the simulation's REBOUNDx effects. We begin with a one planet system subject to general relativity ...
Jupyter Notebook
Unknown
5,017
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/GasDynamicalFriction.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Gas Dynamical Friction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "(This effect was used in Generozov&Perets 2022 [https://arxiv.org/abs/2212.11301].)\n", "\n", "This effect can be used t...
Jupyter Notebook
Unknown
24,347
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/Radiation_Forces_Circumplanetary_Dust.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Radiation Forces on Circumplanetary Dust\n", "\n", "This example shows how to integrate circumplanetary dust particles under the action of radiation forces. We use Saturn's Phoebe ring as an example, a distant ring of debris...
Jupyter Notebook
Unknown
92,437
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/Custom_Effects.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Custom Effects\n", "\n", "This notebook walks you through how to simply add your own custom forces and operators through REBOUNDx.\n", "\n", "The first thing you need to decide is whether you want to write a force or ...
Jupyter Notebook
Unknown
73,370
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/ExponentialMigration.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Exponential Migration\n", "\n", "This example shows how to add migration on a specified timescale that exponentially decays to move an object between a specified initial and final semimajor axis" ] }, { "cell_type":...
Jupyter Notebook
Unknown
17,128
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TidesDynamical.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "d387e322-315d-4d88-8d0b-6426a85643d2", "metadata": {}, "source": [ "## Migration from chaotic tides\n", "\n", "This notebook shows how to include the effects of dynamical tides in high-eccentricity migration. In particular, for near-unity eccentr...
Jupyter Notebook
Unknown
132,077
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/CentralForce.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# A General Central Force\n", "\n", "This implementation adds a central acceleration of the form $\\vec{a}=Ar^\\gamma\\hat{r}$, where $\\vec{r}$ is the vector from the central particle to the body. Let's first create a simulat...
Jupyter Notebook
Unknown
44,967
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/StochasticForcesCartesian.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding stochastic forces in cartesian coordinates\n", "\n", "In this example, we add a stochastic force in the x and y direction to a free floating particle." ] }, { "cell_type": "code", "execution_count": 1, ...
Jupyter Notebook
Unknown
70,399
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/YarkovskyEffect.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Yarkovsky Effect" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This example shows how to add the Yarkovsky effect in a Rebound simulation. There are two versions, which we call the 'Full Version' a...
Jupyter Notebook
Unknown
73,676
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TidesSpinEarthMoon.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Earth-Moon System\n", "\n", "This adds self consistent spin, tidal and dynamical equations of motion in the equilibrium tide model as outlined by Eggleton et. al (1998). See Lu et. al (in review) for specific details of the i...
Jupyter Notebook
Unknown
233,394
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/ModifyMass.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Adding exponential mass loss/growth\n", "\n", "You can always modify the mass of particles between calls to `sim.integrate`. However, if you want to apply the mass/loss growth every timestep *within* calls to `sim.integrate`...
Jupyter Notebook
Unknown
144,141
[ascl:2011.020]
https://github.com/dtamayo/reboundx
ipython_examples/TidesSpinPseudoSynchronization.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Pseudo-Synchronization\n", "\n", "This adds self consistent spin, tidal and dynamical equations of motion in the equilibrium tide model as outlined by Eggleton et. al (1998). In this simple example we confirm the prediction o...
Jupyter Notebook
Unknown
119,906