diff --git a/singularity-opac/photons/gray_opacity_photons.hpp b/singularity-opac/photons/gray_opacity_photons.hpp index a22a0f7..d0fa891 100644 --- a/singularity-opac/photons/gray_opacity_photons.hpp +++ b/singularity-opac/photons/gray_opacity_photons.hpp @@ -49,8 +49,7 @@ class GrayOpacity { PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficient(const Real rho, const Real temp, const Real nu, Real *lambda = nullptr) const { - return dist_.AbsorptionCoefficientFromKirkhoff(*this, rho, temp, nu, - lambda); + return rho * kappa_; } template @@ -67,8 +66,7 @@ class GrayOpacity { Real AngleAveragedAbsorptionCoefficient(const Real rho, const Real temp, const Real nu, Real *lambda = nullptr) const { - return dist_.AngleAveragedAbsorptionCoefficientFromKirkhoff( - *this, rho, temp, nu, lambda); + return AbsorptionCoefficient(rho, temp, nu, lambda); } template diff --git a/singularity-opac/photons/powerlaw_opacity_photons.hpp b/singularity-opac/photons/powerlaw_opacity_photons.hpp index c971eea..4a55177 100644 --- a/singularity-opac/photons/powerlaw_opacity_photons.hpp +++ b/singularity-opac/photons/powerlaw_opacity_photons.hpp @@ -52,8 +52,7 @@ class PowerLawOpacity { PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficient(const Real rho, const Real temp, const Real nu, Real *lambda = nullptr) const { - return dist_.AbsorptionCoefficientFromKirkhoff(*this, rho, temp, nu, - lambda); + return rho * (kappa0_ * std::pow(rho, rho_exp_) * std::pow(temp, temp_exp_)); } template @@ -70,8 +69,7 @@ class PowerLawOpacity { Real AngleAveragedAbsorptionCoefficient(const Real rho, const Real temp, const Real nu, Real *lambda = nullptr) const { - return dist_.AngleAveragedAbsorptionCoefficientFromKirkhoff( - *this, rho, temp, nu, lambda); + return AbsorptionCoefficient(rho, temp, nu, lambda); } template