Table of Contents
snapfold - fold a thin disk N-body snapshot file into a cone along Z
axis
snapfold in=snap-file out=snap-file [parameter=value] ...
snapfold
folds the positions and velocities of an N-body snapshot file representing
a thin disk. The disk can be folded up to a cone around the +Z axis, or
down to a cone around the -Z axis. Fold angle (theta=) must thus be between
-90 and +90.
The following parameters are recognized; they may
be given in any order.
- in=snap-file
- Input data is read from snap-file, which
must be in snapshot format.
- out=snap-file
- Output data is written to snap-file.
- theta=x-angle
- Fold Angle (in degrees). Default: 0.0
- fill=t|f
- Fill the cone?
Otherwise it will be a thin wall. Default: false
Here is an example
creating a tilted cone with outflow
set nbody = 10000
set vscale = 0
set outflow = 1.0
set cone = 30
set inc = 30
where ...
mkdisk - 10000 mass=1 |\
snapscale - - vscale=$vscale |\
snapspin - - omega=$outflow outflow=t|\
snapfold - - theta=90-$cone |\
snaprotate - - $inc y |\
snapgrid - $out.vel moment=-1
snaprotate(1NEMO)
, snapspin(1NEMO)
, snapshot(5NEMO)
Peter
Teuben
20-nov-2017 V0.1 a quick hack to make a cone PJT
22-mar-2018 V0.3 add fill= PJT
Table of Contents