Rotating System - PrincetonUniversity/athena-public-version GitHub Wiki
Considering a system rotating at the angular velocity Ω0 in the polar coordinates, one has to take the Coriolis and centrifugal forces and the energy source from the centrifugal force into account.
In cylindrical coordinates, the rotation direction is the x2
direction. The extra forces are described as F1 = 2 Ω0 vφ + R Ω02 in the x1
direction and F2 = -2 Ω0 vR in the x2
direction. The extra energy source is described as S = ρ R Ω02 vR.
In spherical polar coordinates, the rotation direction is the x3
direction. The extra forces are described as F1 = 2 Ω0 sin(θ) vφ + r (Ω0 sin(θ))2 in the x1
direction, F2 = cot(θ) (2 Ω0 sin(θ) vφ + r (Ω0 sin(θ))2) in the x2
direction, and F3 = -2 sin(θ) Ω0 (vr + cot(θ) vθ) in the x3
direction. The extra energy source is described as S = ρ r (Ω0 sin(θ)2 (vr + cot(θ) vθ).
Nothing to do at the configuration for the rotating system.
The angular velocity of the rotating system is set at Omega0
in the cylindrical or spherical polar coordinates. In order to activate the rotating system, one has to change the <orbital_advection>
block as follows:
<orbital_advection>
Omega0 = 1.0 # angular velocity of the rotating system