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:1110.016] | https://github.com/hannorein/rebound | docs/c_outputfunctions.md | # C output functions
The functions listed here provide various output functionality.
## Output check
```c
int reb_simulation_output_check(struct reb_simulation* r, double interval);
```
This function can be used to trigger outputs at regular time intervals.
The function returns 1 if an output is required and 0 oth... | Markdown | Unknown | 2,750 |
[ascl:1110.016] | https://github.com/hannorein/rebound | docs/index.md | # Welcome to REBOUND

REBOUND is an N-body integrator, i.e. a software package that can integrate the motion of particles under the influence of gravity. The particles can represent stars, planets, moons, ring or dust particles. REBOUND is very flexible and can be customized ... | Markdown | Unknown | 7,525 |
[ascl:1110.016] | https://github.com/hannorein/rebound | docs/c_randomsamplingfunctions.md | # Random sampling
REBOUND includes several functions which help sampling random numbers from various distributions.
Each function takes a pointer to a `struct reb_simulation` as a first argument.
This is because the simulation structure stores the random number generator state in the member `rand_seed`.
When a simula... | Markdown | Unknown | 1,748 |
[ascl:1110.016] | https://github.com/hannorein/rebound | docs/c_examples/generate_c_examples.py | # -*- coding: utf-8 -*-
import glob
# C Example update
def run(*args, **kwargs):
print("Generating C examples.")
count = 0
for problemc in glob.glob("examples/*/problem.c"):
count += 1
cname = problemc.split("/")[1]
with open("docs/c_examples/"+cname+".md","w") as fd:
wi... | Python | Unknown | 2,860 |
[ascl:1110.016] | https://github.com/hannorein/rebound | docs/javascripts/config.js | window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};
document$.subscribe(() => {
MathJax.typesetPromise()
})
| JavaScript | Unknown | 300 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_whfast512.h | /**
* @file integrator_whfast612.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
* Pejvak Javaheri <pejvak.javaheri@mail.utoronto.ca>
*
* @section LICENSE
* Copyright (c) 2023 Hanno Rein, Pejvak Javaheri
*
* This file is part of rebound.
*
* reb... | C/C++ Header | Unknown | 1,772 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/communication_mpi.c | /**
* @file communication_mpi.c
* @brief Handles communication between nodes using MPI.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @details These routines handle the communication between
* different nodes via the Message Passing Interface (MPI).
* There are two different types of communications implement... | C | Unknown | 21,467 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_whfast512.c | /**
* @file integrator_whfast.c
* @brief WHFAST512 integration scheme.
* @author Hanno Rein <hanno@hanno-rein.de>
* Pejvak Javaheri <pejvak.javaheri@mail.utoronto.ca>
* @details This file implements the WHFast512 integration scheme with
* optimizations for AVX512.
*
* @section LICENSE
* Copyri... | C | Unknown | 45,556 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/frequency_analysis.c | /**
* @file freuquency_analysis.c
* @brief Functions to perform a frequency analysis of time series data.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the Modified Fourier Transform of Laskar (1988)
* and the Frequency Modified Fourier Transform of Sidlichovsky and
* ... | C | Unknown | 21,469 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/transformations.c | /**
* @file transformations.c
* @brief Transformations back and forth between different coordinate systems.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file collects all the transformations used by the different integrators
* between different coordinate systems.
*
* @section LICENSE
* ... | C | Unknown | 23,757 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_leapfrog.h | /**
* @file integrator_leapfrog.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the term... | C/C++ Header | Unknown | 1,449 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/output.h | /**
* @file output.h
* @brief Output routines.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | C/C++ Header | Unknown | 1,830 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator.h | /**
* @file integrator.h
* @brief Interface for numerical particle integrators
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under th... | C/C++ Header | Unknown | 1,073 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/rotations.h | /**
* @file rotations.h
* @brief Tools for quaternions and rotations
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2022 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gener... | C/C++ Header | Unknown | 918 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_sei.h | /**
* @file integrator_sei.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of ... | C/C++ Header | Unknown | 1,287 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/input.c | /**
* @file input.c
* @brief Parse command line options and read restart files.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it u... | C | Unknown | 13,258 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/glad.c | /*
OpenGL loader generated by glad 0.1.12a0 on Tue Nov 29 20:33:23 2016.
Language/Generator: C/C++
Specification: gl
APIs: gl=3.3
Profile: compatibility
Extensions:
GL_ARB_framebuffer_sRGB,
GL_ARB_multisample,
GL_EXT_framebuffer_sRGB
Loader: False
Local files: False
Omit khrplatform: False
Commandline:
--profi... | C | Unknown | 94,368 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/tree.c | /**
* @file tree.c
* @brief Tree routine, initializing and updating trees.
* @author Shangfei Liu <liushangfei@pku.edu.cn>
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you c... | C | Unknown | 15,701 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/derivatives.h | /**
* @file derivatives.h
* @brief Functions to calculate derivatives of Keplerian orbits.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein, Dan Tamayp, Rejean Leblanc
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it... | C/C++ Header | Unknown | 1,015 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/output.c | /**
* @file output.c
* @brief Output routines.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | C | Unknown | 37,667 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/tools.c | /**
* @file tools.c
* @brief Tools for creating distributions.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the G... | C | Unknown | 62,986 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_mercurius.c | /**
* @file integrator_mercurius.c
* @brief MERCURIUS, a modified version of John Chambers' MERCURY algorithm
* using the IAS15 integrator and WHFast. It works with planet-planry
* collisions, test particles, and additional forces.
* @author Hanno Rein, Dan Tamayo
*
* @section LICENSE
*... | C | Unknown | 22,232 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator.c | /**
* @file integrator.c
* @brief Integration schemes.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file manages the different integration scheme.
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it... | C | Unknown | 11,525 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_whfast.c | /**
* @file integrator_whfast.c
* @brief WHFAST integration scheme.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the WHFast integration scheme.
* Described in Rein & Tamayo 2015, Rein et al. 2019.
* See also Wisdom et al. 1996.
*
* @section LICENSE
* Copyright (c) 2015 Ha... | C | Unknown | 57,824 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/rotations.c | /**
* @file rotations.c
* @brief Tools for vector manipulations, rotations and quaternions.
* @author Hanno Rein <hanno@hanno-rein.de>, Dan Tamayo
* @details This code uses the same conventions as the Apple SIMD quaternion framework. See e.g.:
* https://github.com/xybp888/iOS-SDKs/blob/master/iPhoneOS... | C | Unknown | 14,109 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/khrplatform.h | #ifndef __khrplatform_h_
#define __khrplatform_h_
#ifdef OPENGL
/*
** Copyright (c) 2008-2009 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without ... | C/C++ Header | Unknown | 10,203 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_bs.c | /**
* @file integrator.c
* @brief BS integration scheme.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the Gragg-Bulirsch-Stoer integration scheme.
* It is a reimplementation of the fortran code by E. Hairer and G. Wanner.
* The starting point was the JAVA impleme... | C | Unknown | 33,018 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/collision.c | /**
* @file collision.c
* @brief Collision search routine.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @details A collision is defined as an overlap between two particles. This
* is only an approximation and works only if the timestep is small
* enough. More precisely, dt << v / Rp, wher... | C | Unknown | 40,373 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_ias15.c | /**
* @file integrator_ias15.c
* @brief IAS15 integrator.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the IAS15 integration scheme.
* IAS stands for Integrator with Adaptive Step-size control, 15th
* order. This scheme is a fifteenth order integrator well suited for
* hig... | C | Unknown | 46,489 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/collision.h | /**
* @file collision.h
* @brief Collision search.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | C/C++ Header | Unknown | 1,034 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/simulationarchive.c | /**
* @file simulationarchive.c
* @brief Tools for creating and reading Simulationarchive binary files.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* ... | C | Unknown | 27,716 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_saba.c | /**
* @file integrator_saba.c
* @brief SABA integrator family (Laskar and Robutel 2001, Blanes et al 2013).
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the family of symplectic integrators
* of Laskar and Robutel (2001), Blanes et al (2013), Farres et al (2013).
*
* @section... | C | Unknown | 14,923 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/binarydiff.h | /**
* @file binarydiff.h
* @brief Binary diff allows to compare binary snapshots.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2018 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of ... | C/C++ Header | Unknown | 1,540 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/simplefont.h | static const unsigned char simplefont[] =
{
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0xC0,
0x07, 0xC0, 0xFF, 0xFF, 0x7F, 0xFE, 0x3F,... | C/C++ Header | Unknown | 52,614 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/binarydiff.c | /**
* @file binarydiff.c
* @brief Binary diff allows to compare binary snapshots.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2018 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the ter... | C | Unknown | 14,404 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_janus.h | /**
* @file integrator_janus.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2017 Hanno Rein, Daniel Tamayo
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it un... | C/C++ Header | Unknown | 1,305 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/boundary.h | /**
* @file boundary.h
* @brief Handles different boundary conditions.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms o... | C/C++ Header | Unknown | 1,754 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/fmemopen.h | /**
* @file fmemopen.h
* @brief Tools for creating distributions.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2013 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General ... | C/C++ Header | Unknown | 1,025 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_whfast.h | /**
* @file integrator_whfast.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein, Daniel Tamayo
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it u... | C/C++ Header | Unknown | 1,414 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_trace.h | /**
* @file integrator_trace.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein
*
* @section LICENSE
* Copyright (c) 2023 Tiger Lu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | C/C++ Header | Unknown | 1,518 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_leapfrog.c | /**
* @file integrator.c
* @brief Leap-frog integration scheme.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the leap-frog integration scheme.
* This scheme is second order accurate, symplectic and well suited for
* non-rotating coordinate systems. Note that the scheme is forma... | C | Unknown | 9,521 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_ias15.h | /**
* @file integrator_ias15.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms... | C/C++ Header | Unknown | 1,300 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/tree.h | /**
* @file tree.h
* @brief Tree header file. All the tree implementations needed by other routines.
* @author Shangfei Liu <liushangfei@pku.edu.cn>, Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free so... | C/C++ Header | Unknown | 4,117 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/rebound.h | /**
* @file rebound.h
* @brief REBOUND API definition.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU... | C/C++ Header | Unknown | 87,377 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/input.h | /**
* @file input.h
* @brief Parse command line options and read restart files.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under t... | C/C++ Header | Unknown | 1,261 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/tools.h | /**
* @file tools.h
* @brief Tools for creating distributions.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the G... | C/C++ Header | Unknown | 2,366 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_janus.c | /**
* @file integrator_janus.c
* @brief Janus integration scheme.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the Janus integration scheme.
* Described in Rein & Tamayo 2017.
*
* @section LICENSE
* Copyright (c) 2017 Hanno Rein, Daniel Tamayo
*
* This file is part of re... | C | Unknown | 7,920 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_trace.c | /**
* @file integrator_trace.c
* @brief TRACE
* @author Tiger Lu, Hanno Rein
*
* @section LICENSE
* Copyright (c) 2023 Tiger Lu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... | C | Unknown | 33,328 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/frequency_analysis.h | /**
* @file frequency_analysis.c
* @brief Functions for the FMFT algorithm.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2026 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the ... | C/C++ Header | Unknown | 912 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_bs.h | /**
* @file integrator_bs.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2021 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of t... | C/C++ Header | Unknown | 1,514 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/boundary.c | /**
* @file boundary.c
* @brief Implementation of all boundary conditions.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @details The code supports different boundary conditions.
*
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is fr... | C | Unknown | 8,369 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/rebound.c | /**
* @file rebound.c
* @brief Main REBOUND control structures and routine, iteration loop.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify... | C | Unknown | 38,378 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/transformations.h | /**
* @file transformations.h
* @brief Transformations back and forth between various coordinate systems
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2017 Hanno Rein, Dan Tamayo.
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it an... | C/C++ Header | Unknown | 966 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/communication_mpi.h | /**
* @file communication_mpi.h
* @brief Handles communication between nodes using MPI.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @details These routines handle the communication between
* different nodes via the Message Passing Interface (MPI).
* There are two different types of communications
* imp... | C/C++ Header | Unknown | 4,449 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/gravity.h | /**
* @file gravity.h
* @brief Calculate gravitational forces.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GN... | C/C++ Header | Unknown | 1,458 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/simulationarchive.h | /**
* @file simulationarchive.h
* @brief Tools for creating and readin a Simulationarchive binary file.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* ... | C/C++ Header | Unknown | 1,459 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_eos.h | /**
* @file integrator_eos.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein
*
* @section LICENSE
* Copyright (c) 2019 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | C/C++ Header | Unknown | 1,275 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/derivatives.c | /**
* @file derivatives.c
* @brief Functions to calculate derivatives of Keplerian orbits.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein, Dan Tamayp, Rejean Leblanc
*
* This file is part of rebound.
*
* rebound is free software: you can redistribut... | C | Unknown | 85,589 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/particle.h | /**
* @file particle.h
* @brief reb_particle structure and main particle routines.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it unde... | C/C++ Header | Unknown | 1,474 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_saba.h | /**
* @file integrator_saba.h
* @brief SABA integrator family (Laskar and Robutel 2001).
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the family of symplectic integrators
* of Laskar and Robutel (2001).
*
* @section LICENSE
* Copyright (c) 2019 Hanno Rein
*
* This file is ... | C/C++ Header | Unknown | 1,416 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/server.h | /**
* @file server.c
* @brief Opens a webserver to allow for platform independent visualization.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details These functions provide real time visualizations
* using OpenGL. Part of the code is by Dave O'Hallaron, Carnegie Mellon (tiny.c).
*
* @section LICENSE
* ... | C/C++ Header | Unknown | 1,117 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/display.c | /**
* @file display.c
* @brief Realtime OpenGL visualization.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details These functions provide real time visualizations
* using OpenGL.
*
* @section LICENSE
* Copyright (c) 2015 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is fre... | C | Unknown | 71,547 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_sei.c | /**
* @file integrator_sei.c
* @brief Symplectic Epicycle Integrator (SEI).
* @author Hanno Rein <hanno@hanno-rein.de>
* @details This file implements the Symplectic Epicycle Integrator
* (SEI). The integrator is described in detail in Rein & Tremaine 2011.
* It solves epicyclic motion exactly and is therefo... | C | Unknown | 5,143 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/fmemopen.c | /**
* @file fmemopen.c
* @brief Implementation of fmemopen for old MacOSX and Windows.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2023 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the t... | C | Unknown | 4,456 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/server.c | /**
* @file server.c
* @brief Opens a webserver to allow for platform independent visualization.
* @author Hanno Rein <hanno@hanno-rein.de>
* @details These functions provide real time visualizations
* using OpenGL. Part of the code is by Dave O'Hallaron, Carnegie Mellon (tiny.c).
*
* @section LICENSE
* ... | C | Unknown | 31,625 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_mercurius.h | /**
* @file integrator_mercurius.h
* @brief Interface for numerical particle integrator
* @author Hanno Rein
*
* @section LICENSE
* Copyright (c) 2017 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | C/C++ Header | Unknown | 1,730 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/integrator_eos.c | /**
* @file integrator_eos.c
* @brief Embedded Operator Splitting (EOS) method
* @author Hanno Rein
*
* @section LICENSE
* Copyright (c) 2019 Hanno Rein
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | C | Unknown | 41,192 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/display.h | /**
* @file display.h
* @brief Realtime OpenGL visualization.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the ... | C/C++ Header | Unknown | 1,485 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/particle.c | /**
* @file particle.c
* @brief reb_particle structure and main particle routines.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2011 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it unde... | C | Unknown | 21,523 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/gravity.c | /**
* @file gravity.c
* @brief Direct gravity calculation, O(N^2).
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @details This is the crudest implementation of an N-body code
* which sums up every pair of particles. It is only useful very small
* particle numbers (N<~100) as it scales as O(N^2)... | C | Unknown | 83,334 |
[ascl:1110.016] | https://github.com/hannorein/rebound | src/glad.h | /*
OpenGL loader generated by glad 0.1.12a0 on Tue Nov 29 20:33:23 2016.
Language/Generator: C/C++
Specification: gl
APIs: gl=3.3
Profile: compatibility
Extensions:
GL_ARB_framebuffer_sRGB,
GL_ARB_multisample,
GL_EXT_framebuffer_sRGB
Loader: False
Local files: False
Omit khrplatform: False
Commandline:
--profi... | C/C++ Header | Unknown | 188,935 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/simulationarchive/problem.c | /**
* Simulationarchive
*
* This example shows how to use the Simulationarchive.
* We integrate a two planet system forward in time using
* the WHFast integrator. The simulation can be interrupted
* at any time. On the next run, the program will try to reload
* the latest data from the Simulationarchive.
*/
#... | C | Unknown | 2,443 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/eccentric_orbit/problem.c | /**
* Highly eccentric orbits
*
* This example uses the IAS15 integrator to simulate
* a very eccentric planetary orbit. The integrator
* automatically adjusts the timestep so that the pericenter passages
* are resolved with high accuracy.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "reb... | C | Unknown | 1,979 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/whfast512_2_planets/problem.c | /**
* Integrating a two planet system with WHFast512
*
* This example integrates four two-planets systems
* using the WHFast512 integrator. Note that you need
* a CPU which support AVX512 instructions to run
* this example.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sched.h>
#include... | C | Unknown | 4,832 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/outer_solar_system/problem.c | /**
* Outer Solar System
*
* This example uses the IAS15 integrator
* to integrate the outer planets of the solar system. The initial
* conditions are taken from Applegate et al 1986. Pluto is a test
* particle. This example is a good starting point for any long term orbit
* integrations.
*
* You probably wan... | C | Unknown | 4,038 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/thermalhysteresis/problem.c | /**
* Thermal Hysteresis
*
* This example can be used as a starting point to reproduce
* the results of Larue, Latter, and Rein (2022).
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
// Structure to store simulation parameters and output data
// Having this structure and setti... | C | Unknown | 13,795 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/orbital_elements/problem.c | /**
* Orbital Elements
*
* This is a simple overview of the helper functions in REBOUND
* for using orbital elements. For an in-depth discussion and
* examples, see ipython_examples/OrbitalElements.ipynb. The
* C function calls are more explicit (see below), but the numerical
* issues and conventions are the s... | C | Unknown | 2,463 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/high_order_symplectic/problem.c | /**
* High Order Symplectic Integrators
*
* This example uses a high order symplectic integrators
* WHCKL and SABA(10,6,4) to integrate all planets of the Solar System.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
double ss_pos[10][3] =
{
{3.256101656448802E-03 , -1.9512... | C | Unknown | 4,776 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/bouncing_balls_corners/problem.c | /**
* Bouncing balls at corner
*
* This example tests collision detection methods across box boundaries.
* There are four particles, one in each corner. To see the ghost boxes in OpenGL
* press `g` while the simulation is running.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
e... | C | Unknown | 2,991 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/mergers/problem.c | /**
* Colliding and merging planets
*
* This example integrates a densely packed planetary system
* which becomes unstable on a timescale of only a few orbits. The IAS15
* integrator with adaptive timestepping is used. The bodies have a finite
* size and merge if they collide. Note that the size is unphysicall... | C | Unknown | 2,124 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/closeencounter/problem.c | /**
* Close Encounter
*
* This example integrates a densely packed planetary system
* which becomes unstable on a timescale of only a few orbits. The IAS15
* integrator with adaptive timestepping is used. This integrator
* automatically decreases the timestep whenever a close
* encounter happens. IAS15 is ve... | C | Unknown | 1,835 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/star_of_david/problem.c | /**
* Star of David
*
* This example uses the IAS15 integrator
* to integrate the "Star od David", a four body system consisting of two
* binaries orbiting each other. Note that the time is running backwards,
* which illustrates that IAS15 can handle both forward and backward in time
* integrations. The initial... | C | Unknown | 1,685 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/simplest/problem.c | /**
* A very simple test problem
*
* We first create a REBOUND simulation, then we add
* two particles and integrate the system until infinity.
* You can cancel the simulation by pressing CTRL-C
* or `q` when the visualization is enabled.
*/
#include "rebound.h"
#include <stdio.h>
#include <stdlib.h>
int main... | C | Unknown | 1,503 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/planetary_migration/problem.c | /**
* Planetary migration in the GJ876 system
*
* This example applies dissipative forces to two
* bodies orbiting a central object. The forces are specified
* in terms of damping timescales for the semi-major axis and
* eccentricity. This mimics planetary migration in a protostellar disc.
* The example reprodu... | C | Unknown | 5,263 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/uniquely_identifying_particles_with_hashes/problem.c | /**
* How to use hashes to identify particles
*
* This example shows how to assign hashes to particles
* and how to access particles using hashes.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
int main(int argc, char* argv[]){
/* Several events can make particles move around... | C | Unknown | 4,036 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/closeencounter_hybrid/problem.c | /**
* Close encounters with MERCURIUS integrator
*
* This example integrates a densely packed planetary system
* which becomes unstable on a timescale of only a few orbits.
* This is a test case for the MERCURIUS integrator.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
void... | C | Unknown | 2,074 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/spreading_ring/problem.c | /**
* Spreading ring
*
* A narrow ring of collisional particles is spreading.
* An error message will alert you to the fact that we
* do not take the mass of particles into account when
* calculating mutual gravity. However, we use the mass
* during the collision resolve phase. Thus you can ignore
* the warnin... | C | Unknown | 2,241 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/granulardynamics/problem.c | /**
* Granular dynamics
*
* This example is about granular dynamics. No gravitational
* forces are present in this example. Two boundary layers made of
* particles simulate shearing walls. These walls are heating
* up the particles, create a dense and cool layer in the middle.
*/
#include <stdio.h>
#include <s... | C | Unknown | 5,451 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/mpi_unittests/problem.c | /**
* MPI Unittests
*
* This file contains a couple of unit tests for REBOUND
* using MPI.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
#include "rebound.h"
#include "tools.h"
void print_N(struct reb_simulation* r){
int N_to_send;
... | C | Unknown | 3,715 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/openmp/problem.c | /**
* OpenMP example.
*
* A self-gravitating disc is integrated using
* the leap frog integrator and direct summation.
* Shared memory parallelization using OpenMP
* is enabled in the Makefile.
*
* Note that you need a compiler which supports
* OpenMP to run this example. By default, the
* OSX compilers fr... | C | Unknown | 3,127 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/custom_integrator_with_data/problem.c | /**
* Custom integrator with data storage
*
* This example shows how to use a custom, user-provided integrator
* that requires internal storage with REBOUND. Here, we implement
* the 2nd order leap-frog integrator which combines the first and
* last Drift steps.
*/
#include "rebound.h"
#include <stdio.h>
#incl... | C | Unknown | 5,050 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/prdrag/problem.c | /**
* Radiation forces
*
* This example provides an implementation of the
* Poynting-Robertson effect. The code is using the IAS15 integrator
* which is ideally suited for this velocity dependent force.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rebound.h"
void radiation_forces(struct... | C | Unknown | 4,267 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/selfgravity_disc/problem.c | /**
* Self-gravitating disc
*
* A self-gravitating disc is integrated using
* the leap frog integrator. Collisions are not resolved.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "rebound.h"
void heartbeat(struct reb_simulation* const r);
int main(int argc, char* argv[])... | C | Unknown | 2,327 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/api/problem.c | /**
* REBOUND API without simulations
*
* REBOUND is a shared library. This means you can not only run full simulations
* from your program, but also use internal functions from REBOUND in your
* own programs. Here we demonstrate some common use cases: We use a Kepler
* solver to move a planet along its orbit. A... | C | Unknown | 2,841 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/variational_equations/problem.c | /**
* Variational Equations
*
* This example shows how to use first and second
* order variational equations.
* See also https://github.com/hannorein/rebound/blob/master/ipython_examples/VariationalEquations.ipynb and Rein and Tamayo (2016).
*/
#include "rebound.h"
#include <stdio.h>
#include <stdlib.h>
// This... | C | Unknown | 6,764 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/ode_affecting_nbody/problem.c | /**
* ODE affecting N-body simulation
*
* This examples shows how to integrate arbitrary ODEs
* and add a back-reaction to N-body particles via an
* additional_forces function.
*
*/
#include "rebound.h"
#include <stdio.h>
#include <stdlib.h>
const double k = 1.; // Constants for the Harmonic Oscillator
const d... | C | Unknown | 2,137 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/simulationarchive_fields/problem.c | /**
* Simulationarchive Fields
*
* This program outputs all fields of a Simulationarchive
* in human readable form. Note that the output can be extensive
* for large files. This is only intended for debugging and to
* illustrate the nature of the binary file system.
*
*/
#include <stdio.h>
#include <stdlib.h>
#... | C | Unknown | 10,277 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/shearing_sheet_diagnostics/problem.c | /**
* Shearing sheet with diagnostics
*
* This example simulates a small patch of Saturn's
* Rings in shearing sheet coordinates. It also calculated
* various quantities which can be used as diagnostics for
* dynamical models of the rings. Diagnostics include
* the midplane filling factor, the mean normal optica... | C | Unknown | 6,825 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/whfast512_solar_system/problem.c | /**
* Solar System with WHFast512
*
* This example integrates the Solar System using
* the WHFast512 integrator. Note that you need a
* CPU which support AVX512 instructions to run
* this example.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sched.h>
#include <stdbool.h>
#include "rebou... | C | Unknown | 4,772 |
[ascl:1110.016] | https://github.com/hannorein/rebound | examples/whfast512_solar_system/run.sh | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --cpus-per-task=80
#SBATCH --time=1:00:00
#SBATCH --job-name=rebound_benchmark
#SBATCH --output=/scratch/r/rein/rein/output.txt
#SBATCH --mail-type=FAIL
rsync -ua --progress --exclude=".*" $HOME/git/rebound $SCRATCH/rebound
cd $SCRATCH/rebound/rebound/examples/avx512_performanc... | Shell | Unknown | 925 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.