Table of Contents

Name

snapfold - fold a thin disk N-body snapshot file into a cone along Z axis

Synopsis

snapfold in=snap-file out=snap-file [parameter=value] ...

Description

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.

Parameters

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

Examples

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

See Also

snaprotate(1NEMO) , snapspin(1NEMO) , snapshot(5NEMO)

Author

Peter Teuben

History


20-nov-2017    V0.1 a quick hack to make a cone    PJT


Table of Contents