Coupling Gadget-2 With ph4 and Multiples Using Bridge #976
-
Hi all,
My question is the following: should I be bridging Gadget-2 to multiples in this way? Or, should I switch the multiples_code in Bridge to my ph4 code that I initiated before? i.e. should ph4 be my star_to_gas_codes instead of multiples_code? I am quite new to multiples so I guess another way to ask this question is: does multiples return the evolution of every star in a cluster (including those not detected as an encounter) or does it just return the stars determined to be an encounter by multiples and send those to ph4 to evolve the whole system? Please let me know if you need more detail. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Jeremy, Thanks for asking - this is something we hope to expand on in the second edition of the AMUSE book.
In this case, you want the stars in Multiples to be kicked by the gas in Gadget, and vice versa. Since Gadget is a tree code, it makes sense to treat any forces involving it with a tree code as well - no need for anything more fancy. So, to answer your question, I would probably not use multiples or ph4 for stars_to_gas, but instead use the same approach as for gas_to_stars, with a Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi Jeremy,
Thanks for asking - this is something we hope to expand on in the second edition of the AMUSE book.
I'll explain here briefly what exactly happens.
First, you set up two integrators: Multiples for the stars, and Gadget for the gas.
Second, you initiate a Bridge system (the parameters don't matter for this explanation).
Third, you add your systems to Bridge. The arguments here are the following:
In this case, you want the stars in Multiples to be kicked by the gas in Gadget, and vice versa.
What you specify here is /how/ those kicks (from the particles in 2 to the particles in 1) should be calculated.
Sin…