SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
sample points from a spherical mass model More...
#include <icgenerator.h>
Public Member Functions | |
CICGeneratorDensitySpherical (const CMassModel *_model, int _quiet) | |
virtual void | createInitialConditions (size_t numPoints, CPointMassSet< float > *points) |
Create a desired number of points and add them to the point mass set. More... | |
Private Attributes | |
const CMassModel * | model |
int | quiet |
controls the regularity of sampling of radius: 0 - random sampling; 2 - quiet: place points at successive radii enclosing equal amount of mass; 1 - intermediate: place points randomly inside successive intervals enclosing equal amount of mass. More... | |
Additional Inherited Members | |
Public Types inherited from smile::CBasicICGenerator | |
enum | ICTYPE { IC_E_STATIONARY, IC_E_PRINCIPALPLANE, IC_E_YALPHA, IC_E_RANDOM, IC_DENS_SAMPLER, IC_DENS_ELLIPSOIDAL, IC_VEL_EDDINGTON, IC_VEL_JEANSSPH, IC_VEL_JEANSAXI } |
list all possible types of descendant classes More... | |
sample points from a spherical mass model
|
virtual |
Create a desired number of points and add them to the point mass set.
[in] | numPoints | is the requested number of points; the actual output may slightly differ |
[in,out] | points | is the pointer to the array that will contain the points. For the IC velocity generators, this array should already contain positions of particles, and only the velocities will be initialized. |
Implements smile::CBasicICGenerator.
|
private |
controls the regularity of sampling of radius: 0 - random sampling; 2 - quiet: place points at successive radii enclosing equal amount of mass; 1 - intermediate: place points randomly inside successive intervals enclosing equal amount of mass.