Skip to content
Snippets Groups Projects
partiview-6.html 1.53 KiB
Newer Older
  • Learn to ignore specific revisions
  • teuben's avatar
    teuben committed
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
     <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
    
     <TITLE> Partiview (PC-VirDir): Partiview and NEMO</TITLE>
    
    teuben's avatar
    teuben committed
     <LINK HREF="partiview-7.html" REL=next>
     <LINK HREF="partiview-5.html" REL=previous>
     <LINK HREF="partiview.html#toc6" REL=contents>
    </HEAD>
    <BODY>
    <A HREF="partiview-7.html">Next</A>
    <A HREF="partiview-5.html">Previous</A>
    <A HREF="partiview.html#toc6">Contents</A>
    <HR>
    
    <H2><A NAME="s6">6. Partiview and NEMO</A></H2>
    
    teuben's avatar
    teuben committed
    
    
    <P>The program <CODE>snapspecks</CODE>  converts a NEMO snapshot to specks format
    that can be read in directly by partiview. The default viewing variables
    
    are <CODE>x,y,z,m</CODE>, but you can add and changed them by
    using the <B>options=</B> keyword. 
    In fact, arbitrary <I>bodytrans</I> expressions can be used
    for output.  In the following example a 32-body Plummer sphere is
    created, which is then given a power-law mass spectrum (with slope -2) 
    between 0.5 and 10 mass units, and animated:
    
    teuben's avatar
    teuben committed
    <P>
    
    teuben's avatar
    teuben committed
    <BLOCKQUOTE><CODE>
    
    teuben's avatar
    teuben committed
    <PRE>
    
      % mkplummer - 32 |\
            snapmass - - massname='n(m)' masspars=p,-2 massrange=0.5,10 |\
            hackcode1 - run1.dat
      % snapspecks run1.dat > run1.tab
      % partiview run1.cf
      % cat run1.cf
    
    teuben's avatar
    teuben committed
    
    
      eval labels off
      eval lum lum 0 1
      eval polylumvar point-size .1 area
      texturevar 4
      eval psize 5000
      eval slum 5
      eval every 1
           
    
    teuben's avatar
    teuben committed
    </PRE>
    
    teuben's avatar
    teuben committed
    </CODE></BLOCKQUOTE>
    
    teuben's avatar
    teuben committed
    <P>
    
    teuben's avatar
    teuben committed
    <HR>
    <A HREF="partiview-7.html">Next</A>
    <A HREF="partiview-5.html">Previous</A>
    <A HREF="partiview.html#toc6">Contents</A>
    </BODY>
    </HTML>