Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /usr/bin/env partiview
filepath +:.:../data
# id: >0 positive small integer index for leaf nodes (stars),
# <0 negative of small integer index for non-leaves (CM nodes)
# mass: mass
# nclump: number of stars in clump. 1=singles, 2=binaries, ...
# topnode: small int index, equal for all stars/CM nodes in clump.
# topnode == abs(id) for root node of a clump.
# treeaddr: bit-encoded, giving location in a clump tree.
# 0 for single stars (nclump=1). Otherwise,
# 1 for root of a clump
# 2*(parent treeaddr) for left-child of parent
# 2*(parent treeaddr)+1 for right-child of parent
# ringsize: zero for stars, nonzero world-unit radius for (some) CM nodes
datavar 0 id
datavar 1 mass
datavar 2 nclump
datavar 3 toplevelnode
datavar 4 treeaddr # (0=single, 1=root)
datavar 5 ringsize
kira primbin16.out
eval lum mass 0 0.01
eval psize 100
## eval cment 1 1 .7 .3
## eval color nclump exact
eval cmap nclump.cmap
eval color nclump exact 8
# Turn center-of-mass nodes off,
# draw ring markers for multiple stars,
# choose marker radius from instantaneous separation * 1.5
eval kiractl nodes off
eval kiractl rings on
eval kiractl ringsize sep
eval kiractl ringscale 1.5
## Could track a particle, with:
## eval kiractl track 12
eval every