.. _program_listing_file_src_specsyn_SpecsynBlackbody.hpp: Program Listing for File SpecsynBlackbody.hpp ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/specsyn/SpecsynBlackbody.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef SPECSYNBLACKBODY_HPP #define SPECSYNBLACKBODY_HPP #include "../io/SimControls.hpp" #include "../utils/Constants.hpp" #include "Specsyn.hpp" #include #include namespace specsyn { class SpecsynBlackbody : public Specsyn { // Physical constants, in cgs units, used by this class static constexpr double planckH = utils::h; static constexpr double speedOfLight = utils::c; static constexpr double rydberg = utils::Ryd; static constexpr double boltzmannK = utils::kB; // Default number of points in the wavelength grid, used when // the caller doesn't request a grid of their own -- see the // constructor static constexpr std::size_t nWlDefault = 1000; public: explicit SpecsynBlackbody(double wlMin, double wlMax, std::size_t nWl, const io::SimControls& controls); [[nodiscard]] auto spec(const StarData& props, double feh) const -> std::vector override; }; } // namespace specsyn #endif // SPECSYNBLACKBODY_HPP