SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Functions | Variables
renderdensity.cpp File Reference

Tool: Create a visual representation of an arbitrary density model. More...

#include "configfile.h"
#include "icgenerator.h"
#include "iosnapshot.h"
#include "managepotential.h"
#include "potential.h"
#include "utils.h"
Include dependency graph for renderdensity.cpp:

Functions

int main (int argc, char *argv[])
 

Variables

char const * description
 default values of command-line parameters More...
 

Detailed Description

Tool: Create a visual representation of an arbitrary density model.

Author
EV
Date
2011-2014

Construct an Nbody snapshot with particles distributed according to the density profile, constructed either from parameters passed as command-line arguments, or as an INI file with all required parameters, or as a text file with potential coefficients (*.coef_bse, *.coef_bsec, *.coef_spl, *.coef_cyl or *.mass for BSE, BSECompact, Spline, CylSpline and Spherical, correspondingly). Particles are given zero velocity and thus the snapshot is not an equilibrium model.

Variable Documentation

char const* description
Initial value:
=
"renderdensity: create an nbody snapshot with rendering of a given density profile with a set of particles at rest.\n"
"The density is specified either as command-line arguments, or as an input file.\n"
" In the first case the following arguments are possible:\n"
"density=??? name of the density model\n"
"mass=1 total mass\n"
"q=1 axis ratio y/x\n"
"p=1 axis ratio z/x\n"
"scalerad=1 scale radius of the model (another spelling is rscale)\n"
"scalerad2=1 second scale radius (if applicable)\n"
"gamma=1 power-law index of the density cusp\n"
"sersicindex=4 shape parameter of the Sersic profile\n"
" In the second case, only one argument is necessary:\n"
"file=??? input text-file with potential parameters (*.ini), coefficients (*.coef_*), or spherical mass profile (*.mass)\n"
" Output the rendered density profile into the file specified by the following parameters:\n"
"out=??? output snapshot\n"
"nbody=??? number of points in snapshot\n"
"outformat=Text output format (Text/Nemo/Gadget)\n"
"VERSION=2.5 Jan 2015 EV"

default values of command-line parameters