Dear Volker,
Thanks for your help. The recent commit can fix my problem. The power spectrum by using 'TILING=8' after this correction is almost identical that by using my own tiling for the glass file.
Best,
Zhao
> 2022年12月18日 22:48,Volker Springel <vspringel_at_MPA-Garching.MPG.DE> 写道:
>
>
> Dear Zhao,
>
> In principle, the tiling option should work with a glass file. However, the code was not automatically scaling the boxsize of the input glass file when TILING is used, and I suspect your problem originates from this. I have now added such a scaling of the boxsize in the most recent commit, i.e. one should in principle now be able to use a Gadget2 glass file for arbitrary boxsizes in Gadget4, and to use TILING to enlarge the glass file to a larger particle load. (I haven't had a chance to explicitly test this yet, however).
>
> Best regards,
> Volker
>
>> On 29. Nov 2022, at 17:42, 陈钊 <chyiru_at_sjtu.edu.cn> wrote:
>>
>> Dear all,
>> I am trying to use Gadget to generate the initial conditions (ICs) by using glass file. I noticed that “TILING” option is provided for scaling test. While I wondering that if this option can be used to scale the glass file with low number of particles. So I used glass file with 32**3 particles generated by Gadget-2 to produce IC with 256**3 particles and set the "TILING=8” in the Config.sh. However, I got a very strange power spectrum shown by the green line in the following figure. The red line is the result from the glass file with the same number 256**3 and no TILING in the Config.sh which is right relative to my input power spectrum (magenta line).
>> <tt4.png>
>>
>> So, this means that I should not use “TILING” option to rescale the input glass file? And I should always provide the glass with same number of IC to the Gadget-4 NGENIC? This is not very convenient when the particle number is extremely large.
>> I don’t know if I lacked some key points for this option. Is there a solution for this?
>> Thanks for your time in advance!
>>
>> Best,
>> Zhao
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
>> A web-archive of this mailing list is available here:
>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
Received on 2022-12-19 08:25:03