Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
DepthTable Class Reference

#include <depth_table.h>

Public Member Functions

long int nvals () const
 
double tabval (double r0, double depth) const
 
void clear ()
 

Public Attributes

bool lgDepth
 
vector< double > dist
 
vector< double > val
 

Member Function Documentation

◆ clear()

void DepthTable::clear ( )
inline

References dist, lgDepth, and val.

Referenced by Parser::readLaw().

◆ nvals()

long int DepthTable::nvals ( ) const
inline

number of values in above table

References ASSERT, dist, and val.

Referenced by Parser::readLaw(), and tabval().

◆ tabval()

double DepthTable::tabval ( double r0,
double depth ) const

tabval, adapted from dense_tabden interpolate on table of points for density with dlaw table command, by K Volk

Parameters
r0current radius in cm
depthcurrent depth in cm

References cdEXIT, DEBUG_ENTRY, dist, EXIT_FAILURE, exp10(), fprintf(), get_ptr(), ioQQQ, lgDepth, linint(), nvals(), and val.

Here is the call graph for this function:

Member Data Documentation

◆ dist

vector<double> DepthTable::dist

dist is log radius in cm, val is log value

Referenced by clear(), nvals(), Parser::readLaw(), and tabval().

◆ lgDepth

bool DepthTable::lgDepth

Referenced by clear(), Parser::readLaw(), and tabval().

◆ val

vector<double> DepthTable::val

Referenced by clear(), nvals(), Parser::readLaw(), and tabval().


The documentation for this class was generated from the following files: