rometsch / fargocpt

Fluid dynamics code to study the interaction between protoplanetary disks and planets.
GNU Affero General Public License v3.0
6 stars 3 forks source link

Fix toomre calc #34

Closed rometsch closed 11 months ago

rometsch commented 11 months ago

In the calculation of the Toomre Q parameter, the rotating frame was not considered. This pull request introduces a fix.

The simplest way of adding the rotating frame is to add r*OmegaFrame to the azimuthal velocities before computing the numerical derivative. My attempts at expanding the analytical expression were all much more complicated expressions which need more operations to compute.