Re: RE: ICs with N-GenIC

From: Benjamin L’Huillier <>
Date: Thu, 21 Jun 2012 10:58:23 +0900

Hi Shankar,

I am not sure about the first part of your question, but in this case I use
Nmesh=Nsample=256. Note that the ICs are generated for DM only, and then
each particle is split into a pair of gas and DM particles.

You need a "glass file" to generate the ICs, that can either be a regular
grid or a "glass configuration". I think the "dummy_glass.dat" file is a
64^3 particles (please check), in a regular grid, you can use it with a
TileFactor=4 to generate 256^3 particles, and uncomment the -DPRODUCEGAS in
the Makefile to generate gas particles, or you can generate a glass
configuration by running Gadget-2 with the GLASS option in the Makefile.


On Wed, Jun 20, 2012 at 11:52 PM, Agarwal, Shankar <> wrote:

> Hi,
> I am trying to generate ICs with N-GenIC. If I want Gadget to run on 256^3
> CDM and 256^3 gas particles, does that mean I need to set Nmesh=Nsample=256
> ?
> What happens (computationally and physics) if Nmesh > Nsample ? What is a
> typical value ?
> Also, N-GenIC comes with a GlassFile named dummy_glass.dat . When is it
> needed (if at all) ? And how can I produce one, for 256^3 CDM and 256^3 gas
> particles .
> Thanks
> Shankar
> -----------------------------------------------------------
> 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:

Benjamin L’Huillier
Research Fellow
Korean Institute for Advanced Study
85 Hoegiro (Cheongnyangni-dong 207-43)
Seoul 130-722
Republic of Korea
+82 2-958-3758
Received on 2012-06-21 03:58:24

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST