src/cdi_analytic/Analytic_EoS.cc
Analytic_EoS::sf_double Analytic_EoS::getElectronThermalConductivity(const sf_double &T,
                                                                     const sf_double &rho) const {
  Require(T.size() == rho.size());

  // define the return electron thermal conductivity field
  sf_double thermal_conductivity(T.size(), 0.0);

  // loop through T/rho field and solve for the thermal conductivity
  for (size_t i = 0; i < T.size(); i++) {
    Check(T[i] >= 0.0);
    Check(rho[i] >= 0.0);

    thermal_conductivity[i] = analytic_model->calculate_elec_thermal_conductivity(T[i], rho[i]);

    Check(thermal_conductivity[i] >= 0.0);
  }

  return thermal_conductivity;
}
//------------------------------------------------------------------------------------------------//
/*!
 *
 * \brief Return a field of electron thermal conductivities given fields of
 * temperature and density.
 *
 * Given temperature and density fields, return an electron thermal
 * conductivity field.  The electron thermal conductivity field is the same
 * size as the input temperature and density fields. The electron thermal
 * conductivity is defined by the analytic model given to the constructor
 * (Analytic_EoS()).
 *
 * \param T material temperature field in keV
 * \param rho density field in g/cm^3
 * \return electron heat capacity field in /s/cm
 */
\brief Return a field of electron thermal conductivities given fields of
temperature and density.

Given temperature and density fields, return an electron thermal
conductivity field.  The electron thermal conductivity field is the same
size as the input temperature and density fields. The electron thermal
conductivity is defined by the analytic model given to the constructor
(Analytic_EoS()).

\param T material temperature field in keV
\param rho density field in g/cm^3
\return electron heat capacity field in /s/cm
\ brief Return a field of electron thermal conductivities given fields of temperature and density . Given temperature and density fields return an electron thermal conductivity field . The electron thermal conductivity field is the same size as the input temperature and density fields . The electron thermal conductivity is defined by the analytic model given to the constructor ( Analytic_EoS () ) . \ param T material temperature field in keV \ param rho density field in g / cm^3 \ return electron heat capacity field in / s / cm
Analytic_EoS::sf_double Analytic_EoS::getElectronThermalConductivity(const sf_double &T,
                                                                     const sf_double &rho) const {
  Require(T.size() == rho.size());
  sf_double thermal_conductivity(T.size(), 0.0);
  for (size_t i = 0; i < T.size(); i++) {
    Check(T[i] >= 0.0);
    Check(rho[i] >= 0.0);
    thermal_conductivity[i] = analytic_model->calculate_elec_thermal_conductivity(T[i], rho[i]);
    Check(thermal_conductivity[i] >= 0.0);
  }
  return thermal_conductivity;
}
Analytic_EoS :: sf_double Analytic_EoS :: getElectronThermalConductivity ( const sf_double & T , const sf_double & rho ) const { Require ( T . size ( ) == rho . size ( ) ) ; sf_double thermal_conductivity ( T . size ( ) , 0.0 ) ; for ( size_t i = 0 ; i < T . size ( ) ; i ++ ) { Check ( T [ i ] >= 0.0 ) ; Check ( rho [ i ] >= 0.0 ) ; thermal_conductivity [ i ] = analytic_model -> calculate_elec_thermal_conductivity ( T [ i ] , rho [ i ] ) ; Check ( thermal_conductivity [ i ] >= 0.0 ) ; } return thermal_conductivity ; }
\brief Return a field of electron thermal conductivities given fields of
 temperature and density.
\ brief Return a field of electron thermal conductivities given fields of temperature and density .
// define the return electron thermal conductivity field // loop through T/rho field and solve for the thermal conductivity