![]() |
SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
Tool: Create spherical mass models from a text table, Nbody snapshot, or analytic density profile. More...
#include <vector>#include <iostream>#include <fstream>#include "configfile.h"#include "icgenerator.h"#include "iosnapshot.h"#include "managepotential.h"#include "massmodel.h"#include "potential.h"#include "utils.h"
Functions | |
| int | main (int argc, char *argv[]) |
| main program begins here | |
Variables | |
| const char * | description |
| usage description More... | |
Tool: Create spherical mass models from a text table, Nbody snapshot, or analytic density profile.
This program uses spherical mass models for two different purposes and created from several possible sources: either from a supplied table with r, m(r) values specifying enclosed mass as a function of radius, or an N-body snapshot, in which case it first fits a penalized spline to compute M(r) from the snapshot, or an analytic density profile, or potential expansion coefficients given in a text file.
The spherical model, in turn, may be used to compute a number of parameters as spline-interpolated functions of radius (potential, radial/circular period, distribution function via Eddington inversion formula, diffusion coefficients, etc.), or to generate an N-body snapshot, in which particles are distributed according to the given density profile and isotropically in velocities.
In short, this is a generalization of tools such as halogen or spherICs for creating a spherical isotropic model with a given arbitrary density profile, and at the same time a useful tool to study dynamical properties of a given system (or, rather, its spherically-symmetric isotropic counterpart).
| const char* description |
usage description
1.8.8