CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
PerturbScalarContext Struct Reference

#include <perturb_source_context.h>

Data Fields

double delta_g = 0.
 
double delta_b = 0.
 
int b_idx_theta = -1
 
int idr_nature = 0
 
double R = 0.
 
double cb2 = 0.
 
int gauge = 0
 

Detailed Description

Pre-computed scalar perturbation quantities, populated by PerturbationsModule::perturb_derivs_member() before calling species. Stored in perturb_workspace so every species can access shared state.

Field Documentation

◆ delta_g

double PerturbScalarContext::delta_g = 0.

photon delta/theta (RSA-corrected)

◆ delta_b

double PerturbScalarContext::delta_b = 0.

baryon delta/theta

◆ b_idx_theta

int PerturbScalarContext::b_idx_theta = -1

baryon theta index in the perturb_vector y/dy arrays (used by photons TCA)

◆ idr_nature

int PerturbScalarContext::idr_nature = 0

nature of idr (free-streaming or fluid)

◆ R

double PerturbScalarContext::R = 0.

4/3 * rho_g / rho_b, photon-baryon momentum ratio

◆ cb2

double PerturbScalarContext::cb2 = 0.

baryon sound speed squared

◆ gauge

int PerturbScalarContext::gauge = 0

gauge: 0 = newtonian, 1 = synchronous (mirrors possible_gauges enum)


The documentation for this struct was generated from the following file: