Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Merge requests
  • !1019

Logger example

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Loic Hausammann requested to merge logger_example into master Feb 12, 2020
  • Overview 13
  • Commits 12
  • Changes 16

Hey,

In this merge request, I am adding a new example for the logger. It is a simple planetary system (on circular orbits) around a star, then I am comparing the energy between the usual output and the logger. In the figure, I am plotting the error on the energy (E - E(t=0)) / E(t=0) (should I change the ylabel with that?) for the snapshots (blue dots), the statistics file (red line), the logger without interpolation (orange crosses) and the logger with interpolation (green line).

Figure_1

In order to do this example, I have implemented a new python function that move all the particles forward in time and also two functions for the Hermite interpolation (position and velocity).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: logger_example