Re: external gravity in Gadget-4

From: Volker Springel <vspringel_at_MPA-Garching.MPG.DE>
Date: Sun, 15 Nov 2020 12:32:51 +0100

Hi Anuj,

Ok, I've added an example for this to the code, the potential of a Hernquist halo. Look for the EXTERNALGRAVITY_STATICHQ option and source file src/gravity/ for the implementation.

Best regards,

> On 2. Nov 2020, at 19:04, Anuj Kankani <> wrote:
> Hello,
> I have started using Gadget-4 and saw that we can now include an external potential. I am trying to add a static Milky Way potential to my simulation but am having trouble figuring out how exactly to do so. Do I need to edit my initial conditions and/or parameter file, and if so what exactly do I need to edit? Any help would be greatly appreciated.
> Thank you,
> Anuj K.
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
Received on 2020-11-15 12:32:52

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET