SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
smilepot Struct Reference

defines a wrapper class that is used in constructing NEMO potential and acceleration objects from a SMILE potential that is specified by parameters in an ini file, or by a potential coefficients file. More...

Public Member Functions

bool NeedMass () const
 
bool NeedVels () const
 
template<int NDIM, typename scalar >
void set_time (double, int, const scalar *, const scalar *, const scalar *) const
 
 smilepot (const double *, int, const char *file)
 
template<int NDIM, typename scalar >
void acc (const scalar *, const scalar *pos, const scalar *, scalar &poten, scalar *accel) const
 

Static Public Member Functions

static const char * name ()
 

Public Attributes

const smilePotential * pot
 

Detailed Description

defines a wrapper class that is used in constructing NEMO potential and acceleration objects from a SMILE potential that is specified by parameters in an ini file, or by a potential coefficients file.

The usage is as follows: in gyrfalcON, for instance, one adds accname=smilepot accfile=params.ini to the command line arguments, and provides all necessary parameters in the papams.ini text file (see readme.pdf for explanation of the options). Alternatively, a previously created file with coefficients of a potential expansion can be given as accfile=mypotential.coef_***, where *** stands for the type of potential: bse, 'bsec,spl,cyl`.


The documentation for this struct was generated from the following file: