Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2014-06-06 08:10:59
Size: 2518
Comment:
Revision 6 as of 2014-06-06 08:31:58
Size: 2661
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
tipsy2gadget in=planck.64_64.00047 out=planck.64_64.00047.g2 tipsy2gadget planck.64_64.zoom.DM.02000 planck.64_64.zoom.DM.02000.g2
Line 20: Line 20:
planck.64_64.00047.g2 is the gadget2 file created planck.64_64.zoom.DM.02000.g2 is the gadget2 file created
Line 25: Line 25:
uns_info planck.64_64.00047.g2
ouzo:/home/jcl> uns_info planck.64_64.zoom.DM.02000.g2
Line 28: Line 27:
File name : planck.64_64.00047.g2 File name : planck.64_64.zoom.DM.02000.g2
Line 30: Line 29:
Nbody selected = 262144 Nbody selected = 673177
Line 33: Line 32:
halo : 262144 halo : 673177
Line 37: Line 36:
pos [3] = -4.950922e-01 -4.887503e-01 -4.955622e-01
           -4.788181e-01 -4.887079e-01 -4.943947e-01
pos [3] = 4.870900e+01 -4.669364e+01 4.757927e+01
           -4.897452e+01 -4.635316e+01 4.848135e+01
Line 40: Line 39:
vel [3] = -2.016661e-01 2.457134e-01 -2.518843e-01
           -1.523429e-01 2.570927e-01 -1.726928e-01
vel [3] = -2.291998e-02 2.731730e-02 -4.330940e-02
           -1.046871e-02 3.446640e-02 -3.198051e-02
Line 53: Line 52:
glnemo2 planck.64_64.00047.g2  glnemo2  planck.64_64.zoom.DM.02000.g2

{{attachment:glnemo2_dm.png}}

Line 71: Line 74:
uns_density planck.64_64.00047.g2 planck.64_64.00047.g2.dens halo uns_density planck.64_64.zoom.DM.02000.g2 planck.64_64.zoom.DM.02000.g2.dens halo
Line 76: Line 79:

{{attachment:glnemo2_dm_dens.png}}

How to visualize a tipsy file with glnemo2

Convert to gadget2 file format using '''tipsy2gadget''' program

So far glnemo2 does not support natively tipsy file format, therefore you have to convert it in a known file format like gadget2

tipsy2gadget in=??? out=??? scale=100 

tipsy2gadget help=h
in               : tipsy input file  [???]
out              : gadget2 output file) [???]
scale            : scaling factor (pos,hsml) [100]

example :

tipsy2gadget planck.64_64.zoom.DM.02000 planck.64_64.zoom.DM.02000.g2

planck.64_64.zoom.DM.02000.g2 is the gadget2 file created

get some info from gadget file using '''uns_info''' program

ouzo:/home/jcl> uns_info planck.64_64.zoom.DM.02000.g2
**************************************************
File name : planck.64_64.zoom.DM.02000.g2
File type : Gadget2
Nbody selected = 673177
Time=0
==================================================
halo    :   673177
mass[1] =  1.211165e-06 1.211165e-06 1.211165e-06 
           1.211165e-06 1.211165e-06 1.211165e-06 
           . . .
pos [3] =  4.870900e+01 -4.669364e+01 4.757927e+01 
           -4.897452e+01 -4.635316e+01 4.848135e+01 
           . . .
vel [3] =  -2.291998e-02 2.731730e-02 -4.330940e-02 
           -1.046871e-02 3.446640e-02 -3.198051e-02 
           . . .
id  [1] =  0 1 2 
           3 4 5 
           . . .
  • We can see that there is only one component here : dark matter halo

  • Visualize gadget file with glnemo2

glnemo2 planck.64_64.zoom.DM.02000.g2

glnemo2_dm.png

Compute the density with '''uns_density''' program

uns_density  help=h
in               : UNS input file (gadget|nemo)                        [???]
out              : output file                                         [???]
select           : component selected (disk,stars,halo,gas,range)      [???]
m                : 0: Ferrers  method, 1:hackdens method               [0]
K                : number of neighbours                                [32]
N                : order of Ferrers kernel                             [1]
ncrit            : ncrit value, if empty=max(1,K/4)                    []
time             : selected time                                       [all]
first            : add a trailing numbering to the first output file  [f]
offset           : +/- time offset                                     [0.01]

uns_density planck.64_64.zoom.DM.02000.g2 planck.64_64.zoom.DM.02000.g2.dens halo

We compute density on halo component

  • visualize with glnemo2

glnemo2_dm_dens.png

DagalWiki: TipsyGadget (last edited 2014-06-06 08:31:58 by JeanCharlesLambert)