Skip to content

Commit

Permalink
Add Zhu dust+molecule+atom table opacity variant and example file.
Browse files Browse the repository at this point in the history
+ Add ZhuTableOpacity photon class with Rosseland-Planck databox.
+ Assume log-log rho-T for DataBox interpolation.
+ Add ZhuTable variant to opac_photons.hpp.
+ Add unit test for ZhuTable variant.

Notes:
- See: Zhaohuan Zhu et al (2021).
- The next step is to convert the Zhu ASCII into HDF5 format(s).
  • Loading branch information
RyanWollaeger committed Oct 29, 2024
1 parent e429a53 commit 4836c90
Show file tree
Hide file tree
Showing 5 changed files with 10,183 additions and 1 deletion.
4 changes: 3 additions & 1 deletion singularity-opac/photons/opac_photons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define SINGULARITY_OPAC_PHOTONS_OPAC_PHOTONS_

#include <singularity-opac/photons/epbremsstrahlung_opacity_photons.hpp>
#include <singularity-opac/photons/zhu_grey_table_opacity_photons.hpp>
#include <singularity-opac/photons/gray_opacity_photons.hpp>
#include <singularity-opac/photons/non_cgs_photons.hpp>
#include <singularity-opac/photons/photon_variant.hpp>
Expand All @@ -33,9 +34,10 @@ using Gray = GrayOpacity<PhysicalConstantsCGS>;
using PowerLawScaleFree = PowerLawOpacity<PhysicalConstantsUnity>;
using PowerLaw = PowerLawOpacity<PhysicalConstantsCGS>;
using EPBremss = EPBremsstrahlungOpacity<PhysicalConstantsCGS>;
using ZhuTable = ZhuTableOpacity<PhysicalConstantsCGS>;

using Opacity = impl::Variant<ScaleFree, Gray, PowerLawScaleFree, PowerLaw,
EPBremss, NonCGSUnits<Gray>,
EPBremss, ZhuTable, NonCGSUnits<Gray>,
NonCGSUnits<PowerLaw>, NonCGSUnits<EPBremss>>;

} // namespace photons
Expand Down
Loading

0 comments on commit 4836c90

Please sign in to comment.