Bar rotation frequency as a function of time #501
-
Hi everyone. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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 However, you can use a time-dependent frequency by using
As I mention in the code, you have to make sure to initialize the I know that the documentation on how to use I'm also going to convert this to a discussion, because there isn't any issue with the code. |
Beta Was this translation helpful? Give feedback.
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). InNonInertialFrameForce
, you can specify that you want to frame to be rotating with a time-varying frequency (just setOmega
andOmegadot
;…