src/cdi_analytic/Analytic_Gray_Opacity.cc
double Analytic_Gray_Opacity::getOpacity(double temperature, double density) const {
  Require(temperature >= 0.0);
  Require(density >= 0.0);

  // define return opacity
  double opacity = analytic_model->calculate_opacity(temperature, density);

  Ensure(opacity >= 0.0);
  return opacity;
}
//------------------------------------------------------------------------------------------------//
// OPACITY INTERFACE FUNCTIONS
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Return a scalar opacity given a scalar temperature and density.
 *
 * Given a scalar temperature and density, return an opacity for the reaction
 * type specified by the constructor.  The analytic opacity model is
 * specified in the constructor (Analytic_Gray_Opacity()).
 *
 * \param temperature material temperature in keV
 * \param density material density in g/cm^3
 * \return opacity (coefficient) in cm^2/g
 *
 */
OPACITY INTERFACE FUNCTIONS
\brief Return a scalar opacity given a scalar temperature and density.

Given a scalar temperature and density, return an opacity for the reaction
type specified by the constructor.  The analytic opacity model is
specified in the constructor (Analytic_Gray_Opacity()).

\param temperature material temperature in keV
\param density material density in g/cm^3
\return opacity (coefficient) in cm^2/g
OPACITY INTERFACE FUNCTIONS \ brief Return a scalar opacity given a scalar temperature and density . Given a scalar temperature and density return an opacity for the reaction type specified by the constructor . The analytic opacity model is specified in the constructor ( Analytic_Gray_Opacity () ) . \ param temperature material temperature in keV \ param density material density in g / cm^3 \ return opacity ( coefficient ) in cm^2 / g
double Analytic_Gray_Opacity::getOpacity(double temperature, double density) const {
  Require(temperature >= 0.0);
  Require(density >= 0.0);
  double opacity = analytic_model->calculate_opacity(temperature, density);
  Ensure(opacity >= 0.0);
  return opacity;
}
double Analytic_Gray_Opacity :: getOpacity ( double temperature , double density ) const { Require ( temperature >= 0.0 ) ; Require ( density >= 0.0 ) ; double opacity = analytic_model -> calculate_opacity ( temperature , density ) ; Ensure ( opacity >= 0.0 ) ; return opacity ; }
OPACITY INTERFACE FUNCTIONS
 \brief Return a scalar opacity given a scalar temperature and density.
OPACITY INTERFACE FUNCTIONS \ brief Return a scalar opacity given a scalar temperature and density .
// define return opacity