Giter Site home page Giter Site logo

Comments (5)

eugvas avatar eugvas commented on June 16, 2024

not at the moment.
while the Python interface to Agama provides some basic unit conversion facilities, the standalone codes such as mkspherical, phaseflow and raga all work in the N-body units (i.e. G=1). in practice you choose your length and velocity units, and the mass unit follows from it (for instance, 1 kpc, 1 km/s => 232500 Msun is a common choice).

from agama.

dipto4 avatar dipto4 commented on June 16, 2024

So when we are evolving a system with binary black holes, should the total mass of the stellar particles be set to 1 or the total mass of the stellar particles + mass of the black holes be set to 1?

Thank you.

from agama.

eugvas avatar eugvas commented on June 16, 2024

this doesn't matter; you can choose any base unit for two out of three independent dimensional quantities (mass, length and velocity), and the third one should be determined from the condition G=1. So for instance you may use 1Msun as mass unit and 1 pc as length unit, then the velocity unit should be 0.0656 km/s, etc.

from agama.

dipto4 avatar dipto4 commented on June 16, 2024

Thank you! That really helped me!

from agama.

eugvas avatar eugvas commented on June 16, 2024

by the way, the convention G=1 is referred to as "N-body units" in the docs. In the most strict definition (e.g. Heggie&Mathieu 1986), this name also implies that the total mass of the system is 1 and the total energy is -1/4, which fully determines all three base dimensional units, but both these conditions are not required in Agama when using just G=1, which establishes only one relation between three base units (length, mass and time). In fact, the whole library is carefully designed to be as scale-invariant as possible, so that even measuring distances in km and time in seconds should not break the internal algorithms - if this doesn't hold promise, that is a bug.

from agama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.