Since this isn&#39;t yt related question anymore, let&#39;s move this to a private conversation.  <div><br></div><div>Sam<br><br><div class="gmail_quote">On Sun, Feb 28, 2010 at 1:45 PM, Agarwal, Shankar <span dir="ltr">&lt;<a href="mailto:sagarwal@ku.edu">sagarwal@ku.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Sam,<br>
<br>
If I choose option 1, I guess I will need a grid of 512*4=2048. That will resolve 200Mpc/2048=97 Kpc<br>
<br>
In that case,<br>
<br>
MaximumRefinementLevel = 2<br>
CellFlaggingMethod = 2 4<br>
MinimumOverDensityForRefinement = 2.0 4.0<br>
<br>
<br>
How important is MinimumOverDensityForRefinement ? I can&#39;t decide why I should not use 4.0 8.0 to reduce computing time. And how do these two numbers relate to the VirialOverdensity=200?<br>
<br>
Is this something that I will have to figure out only by running a simulation? I am hoping somebody already has experience with large box simulations.<br>
<div class="im"><br>
Shankar<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:yt-users-bounces@lists.spacepope.org">yt-users-bounces@lists.spacepope.org</a> on behalf of Sam Skillman<br>
</div><div><div></div><div class="h5">Sent: Sun 2/28/2010 1:39 PM<br>
To: Discussion of the yt analysis package<br>
Subject: Re: [yt-users] Dealing with HOP groups<br>
<br>
Actually yes.  You could check this yourself by examining the last column in<br>
HopAnalysis out.  If max_r &lt; 2*(1/512)=3.9e-3 then yes, it will skip it.  In<br>
one of my simulations, a 5e11 Msun halo has a max_r of 2.64e-03<br>
corresponding to 168 kpc/h.  The halo profiler was not built for profiling<br>
halos with &lt; 2 cells in radius.  In my mind you have at least four options:<br>
<br>
1.  Run with AMR to resolve the dark matter potential so that you can use<br>
the halo profiler as built.  Moderate computational cost.  I&#39;m guessing this<br>
was the case for Stephen&#39;s simulation where a decent fraction of the halos<br>
in the HopAnalysis were able to be profiled.<br>
2.  Run with a gigantic unigrid such that you can resolve these halos with &gt;<br>
2 (and preferably many) cells.  This is a very computationally expensive<br>
route as you&#39;d need more than a 2048^3 unigrid in a 200 Mpc box.  I do not<br>
recommend this option.<br>
3.  Write a dark matter particle profiler that uses the particle positions<br>
(and not grid cells) to bin up the profile.  Little computational cost but<br>
requires coding on your part.<br>
4.  Run the same size unigrid on a smaller physical volume to capture a<br>
different range of the mass function.<br>
<br>
Cheers,<br>
Sam<br>
<br>
<br>
<br>
On Sun, Feb 28, 2010 at 12:07 PM, Agarwal, Shankar &lt;<a href="mailto:sagarwal@ku.edu">sagarwal@ku.edu</a>&gt; wrote:<br>
<br>
&gt; Hi Sam,<br>
&gt;<br>
&gt; Here is how I am using it right now...<br>
&gt;<br>
&gt; hp.add_halo_filter(HP.VirialFilter,must_be_virialized=True,<br>
&gt;              overdensity_field=&#39;ActualOverdensity&#39;,<br>
&gt;              virial_overdensity=200,<br>
&gt;               virial_filters=[[&#39;TotalMassMsun&#39;,&#39;&gt;=&#39;,&#39;5e11&#39;]],<br>
&gt;              virial_quantities=[&#39;TotalMassMsun&#39;,&#39;RadiusMpc&#39;])<br>
&gt; hp.make_profiles(filename=&quot;VirialHaloes.out&quot;)<br>
&gt;<br>
&gt; And i get 500.<br>
&gt;<br>
&gt;<br>
&gt; Do you think it has something to do with the grid spacing (for 512 ^3 grid<br>
&gt; in 200 Box, it is 390 Kpc)<br>
&gt;<br>
&gt; HaloProfiler may be skipping small halos completely since they are smaller<br>
&gt; than 390 Kpc.<br>
&gt;<br>
&gt;<br>
&gt; Shankar<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:yt-users-bounces@lists.spacepope.org">yt-users-bounces@lists.spacepope.org</a> on behalf of Sam Skillman<br>
&gt; Sent: Sun 2/28/2010 12:34 PM<br>
&gt; To: Discussion of the yt analysis package<br>
&gt; Subject: Re: [yt-users] Dealing with HOP groups<br>
&gt;<br>
&gt; Hi Shankar,<br>
&gt;<br>
&gt; Do you have a line that looks like:<br>
&gt; hp.add_halo_filter(HP.VirialFilter,must_be_virialized=True,<br>
&gt;                   overdensity_field=&#39;ActualOverdensity&#39;,<br>
&gt;                   virial_overdensity=200,<br>
&gt;                   virial_filters=[[&#39;TotalMassMsun&#39;,&#39;&gt;=&#39;,&#39;1e14&#39;]],<br>
&gt;                   virial_quantities=[&#39;TotalMassMsun&#39;,&#39;RadiusMpc&#39;])<br>
&gt;<br>
&gt; If so, please post it.  The number of halos &gt; 10^14 Msun is fairly close to<br>
&gt; 500 in a 200 Mpc box.  If you want the halo profiler to use all halos, set<br>
&gt; virial_filters=[[&#39;TotalMassMsun&#39;,&#39;&gt;=&#39;,&#39;1e14&#39;]]  accordingly.<br>
&gt;<br>
&gt; Sam<br>
&gt;<br>
&gt; On Sun, Feb 28, 2010 at 11:08 AM, Agarwal, Shankar &lt;<a href="mailto:sagarwal@ku.edu">sagarwal@ku.edu</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi Stephen,<br>
&gt; &gt;<br>
&gt; &gt; I read<br>
&gt; &gt;<br>
&gt; <a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2009-March/000110.html" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2009-March/000110.html</a><br>
&gt; &gt;<br>
&gt; &gt; Do you remember the cosmology parameters for your run: particles, grid,<br>
&gt; &gt; box, refinement, AMR ON or OFF ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I have run a 200 Mpc/h box, 512^3 particle, 512^3 grid, AMR-OFF<br>
&gt; simulation<br>
&gt; &gt; and I get about 30,000 halos using HOP. When I try to finding virial<br>
&gt; halos,<br>
&gt; &gt; I get only 500. I may have to increase the grid to 1024^3.<br>
&gt; &gt;<br>
&gt; &gt; Let me know how you got 40,000 virial halos.<br>
&gt; &gt;<br>
&gt; &gt; Thanks<br>
&gt; &gt; Shankar<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; yt-users mailing list<br>
&gt; &gt; <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
&gt; &gt; <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Samuel W. Skillman<br>
&gt; DOE Computational Science Graduate Fellow<br>
&gt; Center for Astrophysics and Space Astronomy<br>
&gt; University of Colorado at Boulder<br>
&gt; samuel.skillman[at]<a href="http://colorado.edu" target="_blank">colorado.edu</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; yt-users mailing list<br>
&gt; <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
&gt; <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Samuel W. Skillman<br>
DOE Computational Science Graduate Fellow<br>
Center for Astrophysics and Space Astronomy<br>
University of Colorado at Boulder<br>
samuel.skillman[at]<a href="http://colorado.edu" target="_blank">colorado.edu</a><br>
<br>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Samuel W. Skillman<br>DOE Computational Science Graduate Fellow<br>Center for Astrophysics and Space Astronomy<br>University of Colorado at Boulder<br>samuel.skillman[at]<a href="http://colorado.edu">colorado.edu</a><br>


</div>