Size: 2607
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 74: | 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 79: | 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
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