CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
DNCDMSector Class Referenceabstract

#include <dncdm_sector.h>

+ Inheritance diagram for DNCDMSector:

Public Member Functions

double GetOmega0 () const override
 
- Public Member Functions inherited from CompositeSpecies
std::unique_ptr< BaseSpecies::PerturbLayout > CreatePerturbLayout () const override
 
void ApplyInitialConditions (const BaseSpecies::PerturbLayout &base, double *y, const PerturbIcContext &ctx) override
 
StressEnergyContribution StressEnergy (const BaseSpecies::PerturbLayout &base, const perturb_vector *pv, const double *y, const double *pvecback, const perturb_workspace *ppw) const override
 
void PerturbDerivs (const BaseSpecies::PerturbLayout &base, double tau, const double *y, double *dy, const perturb_parameters_and_workspace &ppaw) const override
 
void PerturbDerivsDiagonal (const BaseSpecies::PerturbLayout &base, double tau, const double *y, double *diag, const perturb_parameters_and_workspace &ppaw) const override
 
void FillSources (const BaseSpecies::PerturbLayout &base, const double *y, const double *dy, PerturbSourceContext &ctx) const override
 
void WriteOutputColumns (PerturbColumnWriter &writer, const PerturbationsModule &mod, file_format fmt, TransferColumnSection section=TransferColumnSection::all) const override
 
void PrintVariables (PerturbColumnWriter &writer, const BaseSpecies::PerturbLayout *base, double tau, const double *y, const PerturbationsModule &mod, const perturb_workspace *ppw) const override
 
void PerturbSynchronousToNewtonian (const BaseSpecies::PerturbLayout &base, double *y, const PerturbIcContext &ctx) override
 
void CopyPerturbationsAcrossSwitch (const BaseSpecies::PerturbLayout &old_base, const BaseSpecies::PerturbLayout &new_base, const double *old_y, double *new_y, const PerturbSwitchContext &ctx) const override
 
void RegisterBackgroundIndices (int &index_bg) override
 
void RegisterIntegrationIndices (int &index_bi) override
 
void RegisterTransferSourceIndices (int &index_tp, const SourceRequestContext &ctx) override
 
void AppendBudgetLines (const double *pvecback_today, double rho_crit, std::vector< BudgetLine > &out) const
 
bool SupportsExplicitPerturbationEvolver () const override
 
int MaxMultipole (const precision *ppr, bool tensors) const override
 
bool PrefersExponentialPerturbationEvolver () const override
 
bool SupportsExponentialPerturbationEvolver () const override
 
double GetRadiationOmega0 () const override
 
double DarkRadiationRhoToday (const double *pvecback_integration) const override
 
double NeutrinoOmega0 () const override
 
double NeffContribution (double z) const override
 
void PrintNeffInfo () const override
 
void PrintMassInfo () const override
 
void PrintBackgroundDetails (const double *pvecback_today, double rho_crit_today) const override
 
double TensorMasslessRelativisticRho (const double *pvecback) const override
 
double DeviationFromRadiation (const double *pvecback) const override
 
void WarnIfNonlinearUnreliable (double m_ev_threshold) const override
 
std::vector< double > FreeStreamingWavenumbers () const override
 
std::optional< double > ChildOmega0 (const std::string &name) const override
 
double BackgroundAIni (double a_proposed, double tol) const override
 
void SetBackgroundModule (const BackgroundModule *bgm) override
 
void SetThermodynamicsModule (const ThermodynamicsModule *thm) override
 
void SetPerturbs (const perturbs *ppt) override
 
void SetBackgroundInitialConditions (const BackgroundICContext &ctx) override
 
void ComputeBackground (double a, const double *pvecback_B, double *pvecback) override
 
void BackgroundDerivs (double tau, const double *y, double *dy, const double *pvecback) override
 
void BackgroundDerivsDiagonal (double tau, const double *y, double *diag, const double *pvecback) override
 
void FinalizeBackground (double a, double H, const double *pvecback_B, double *pvecback) override
 
double Rho (const double *pvecback) const override
 
double P (const double *pvecback) const override
 
double PPrime (double a, double H, const double *pvecback_B, const double *pvecback) const override
 
double FreestreamingRho (const double *pvecback) const override
 
bool ClustersAsMatter () const override
 
bool IsColdMatterSpecies () const override
 
bool HasWarmMatter () const override
 
double NonClusteringOmega0 () const override
 
double ColdMatterRho (const double *pvecback) const override
 
double ColdMatterOmega0 () const override
 
void FinalizeMatterClassification () override
 
- Public Member Functions inherited from BaseSpecies
virtual std::optional< double > GetParam (const std::string &) const
 
virtual bool IsFreestreaming () const
 
bool IsPresent () const
 
int bg_rho_index () const
 
virtual void WriteBackgroundColumnTitles (BackgroundColumnWriter &) const
 
virtual void WriteBackgroundData (const double *, BackgroundColumnWriter &) const
 
virtual void ProcessBackgroundTable (const double *, int, int, const double *)
 
virtual void PerturbVectorDerivs (const PerturbLayout &, double, const double *, double *, const perturb_parameters_and_workspace &) const
 
virtual void PerturbTensorDerivs (const PerturbLayout &, double, const double *, double *, const perturb_parameters_and_workspace &) const
 
virtual void ApplyTensorInitialConditions (const PerturbLayout &, double *, double, const double *) const
 
virtual void WriteTensorOutputColumnTitles (std::string &) const
 
virtual void ContributeTensorGwSource (const PerturbLayout &, double, const double *, perturb_workspace *) const
 
virtual int ApproximationCount () const
 
virtual int ApproximationRegimeAt (int, double, const double *) const
 
int ApproximationRegime (const perturb_workspace *ppw, int which=0) const
 
int ApproximationRegimeBefore (const PerturbSwitchContext &ctx, int which=0) const
 
virtual bool SupportsNewtonianGauge () const
 
virtual bool SupportsIsocurvatureInitialConditions () const
 
virtual double RhoPrimeOverRho (const double *pvecback, double a_prime_over_a) const
 
virtual void MarkUsedInSources (const PerturbLayout &, const perturb_workspace *, int *) const
 
virtual double BackgroundDensityOverH0Sq (double a, double H0) const
 
bool ClustersAsMatterCached () const
 
virtual bool HasNcdm () const
 
virtual double SourceSamplingRate (const double *) const
 

Protected Member Functions

virtual double DaughtersInitialRadiationOmega0 (double H0) const =0
 
virtual bool HasInverseDecays () const =0
 
- Protected Member Functions inherited from CompositeSpecies
virtual void AddCouplingDerivs (double tau, const double *y, double *dy, const perturb_parameters_and_workspace &ppaw) const
 
- Protected Member Functions inherited from BaseSpecies
void ApplyFluidLikeNewtonianShift (double *y, int idx_delta, int idx_theta, const double *pvecback, const PerturbIcContext &ctx) const
 

Additional Inherited Members

- Public Types inherited from BaseSpecies
enum class  EnergyType
 

Detailed Description

What the three ncdm_decay_dr representations (integrated, psd, proxy) share: a decaying NCDM parent and its decay radiation, and the flatness budget that has to reserve their density today before the background can say what it is.

Three modes, one per normalisation key:

combined (Omega_dncdmdr) shoot deg until the sector holds the requested density; initial (Omega_ini, Neff_ini) deg follows from the initial abundance, and deg (deg, or nothing) the reserve is a fixed point: reserve = Omega_sector(today).

The fixed point's unknown is the internal key <name>.Omega_dncdmdr_reserve, written only by the shooter. It feeds Omega_Lambda alone, and Omega_Lambda feeds the sector only through H(a) late on, so the map contracts strongly and its seed decides only how many backgrounds it costs, never the answer. docs/superpowers/specs/2026-09-29-shooting-reuse-and-dncdm-budget-design.md (C)

Member Function Documentation

◆ GetOmega0()

double DNCDMSector::GetOmega0 ( ) const
overridevirtual

The reserve once the shooter has written it, the requested density in combined mode. Only a discovery build, before any shooting, falls back to the children's sum.

Reimplemented from CompositeSpecies.

◆ DaughtersInitialRadiationOmega0()

virtual double DNCDMSector::DaughtersInitialRadiationOmega0 ( double  H0) const
protectedpure virtual

The daughters' initial populations as free radiation today, a^4 rho / H0^2. 0 when they start empty.

Implemented in DNCDMInvSpecies, DNCDMProxySpecies, and DNCDM_DR_Species.

◆ HasInverseDecays()

virtual bool DNCDMSector::HasInverseDecays ( ) const
protectedpure virtual

Whether inverse decays hold the parent at chemical equilibrium (the high-Gamma seed).

Implemented in DNCDM_DR_Species, DNCDMInvSpecies, and DNCDMProxySpecies.


The documentation for this class was generated from the following files: