Sink particle moved out of allowed boundary

14 views
Skip to first unread message

srihawk...@gmail.com

unread,
May 8, 2023, 2:25:23 PM5/8/23
to ramses_users
Hello Everyone,
I am trying implement sink particles for AGN feedback in my simulation. I am running my simulation with resolution of 256^3 particles and box size of 17 Mpc/h. I am getting an error stating that the particle has moved out of boundary. Since sink particles forms at maximum refined cells, there were already few sinks formed at levelmax(level=13). When the next sink particle formed, it formed at level 12 which resulted in error and the code stopped.
I think this has something to do with refinement strategy, I am using m_refine parameter  as refinement strategy.

Would it be fine if we make the sink particle to form only at levelmax or is it possible to solve this issue by changing refinement strategy?

Thank you in advance,
Sriram

Romain Teyssier

unread,
May 8, 2023, 2:30:27 PM5/8/23
to srihawk...@gmail.com, ramses_users
You can use the sink_refine=.true. option to force sinks to always be at the maximum level of refinement.

--
You received this message because you are subscribed to the Google Groups "ramses_users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ramses_users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ramses_users/c73bee2f-e096-4876-8d0d-86e063a1e8bfn%40googlegroups.com.

srihawk...@gmail.com

unread,
May 8, 2023, 3:10:42 PM5/8/23
to ramses_users
Hi Romain,
Thank you for the reply. 
I already included the sink_refine option in the simulation.  Since the sink_refine option keeps the sink particle at the maximum level of refinement which is formed at the maximum refinement, I am not sure if it makes the sink move to the maximum refinement as it formed one level below. 

Sriram
Reply all
Reply to author
Forward
0 new messages