4 #include <gsl/gsl_spline.h> 12 extern void printModels(std::vector<mutils::CommandLine::Option> &opts,
33 Dust(
const std::string &model =
"OH5",
double rho = 100.0)
45 Dust(
double lamb0,
double kappa0,
double beta)
51 void setModel(
const std::string &model,
double rho = 100.0);
57 void setModel(
double lamb0,
double kappa0,
double beta);
61 double kappa(
double nu)
const;
64 const std::string &
name() const noexcept {
return name_; }
67 double rho() const noexcept {
return rho_; }
Dust(const std::string &model="OH5", double rho=100.0)
Default constructor.
Dust(double lamb0, double kappa0, double beta)
Fixed power-law constructor.
const std::string & name() const noexcept
Current model name.
void setModel(const std::string &model, double rho=100.0)
Set dust properties model (table-based).
Fixed power-law opacity parameters.
Declares the CommandLine class.
std::string name_
Current model name.
void printModels(std::vector< mu::CommandLine::Option > &opts, char name)
Add available dust model names to options summary.
double kappa(double nu) const
Gas/dust extinction opacity (cm^2/g).
The MathUtils miscellaneous utilities library.
double rho_
Current model gas-to-dust ratio.
gsl_spline * spline_
Table interpolator.
Opacity opacity_
Fixed power law.
double rho() const noexcept
Current model gas-to-dust ratio.