Skip to content

Bar rotation frequency as a function of time #501

Answered by jobovy
KaiOneWeaver asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

There isn't currently any wrapper that allows the bar to rotate with a time-dependent frequency, but it wouldn't be too difficult to implement one starting from SolidBodyRotationWrapperPotential. However, if you need to do many integrations, you'll want the speed-ups of the C code and then you would have to add a C version as well. Again, not difficult based on the constant OmegaB wrapper, but a bit of work.

However, you can use a time-dependent frequency by using galpy's new capability to work in rotating reference frames (see docs currently here). In NonInertialFrameForce, you can specify that you want to frame to be rotating with a time-varying frequency (just set Omega and Omegadot;…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@KaiOneWeaver
Comment options

@KaiOneWeaver
Comment options

@jobovy
Comment options

@KaiOneWeaver
Comment options

Answer selected by KaiOneWeaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #500 on August 29, 2022 01:03.