sxs-collaboration / spectre

SpECTRE is a code for multi-scale, multi-physics problems in astrophysics and gravitational physics.
https://spectre-code.org
Other
154 stars 187 forks source link

Add Number of Orbit and Fraction of Orbit Triggers #6009

Open AlexCarpenter46 opened 1 month ago

AlexCarpenter46 commented 1 month ago

Proposed changes

Adds a trigger to do something the user specifies after a certain number of orbits. Addresses #5938

If you want to try either of these triggers out for something like eccentricity control or Observations at certain points in. your orbit, add this to the EventsAndTriggers sections in your yaml.

  - Trigger:
      NumberOfOrbits:
        Value: 1.0
    Events:
      - Completion
  - Trigger:
      FractionOfOrbit:
        Value: 0.25
    Events:
      - ObservationAhA
      - ObservationAhB

Upgrade instructions

Code review checklist