py21cmfast.wrapper.inputs.CosmoTables¶
- class py21cmfast.wrapper.inputs.CosmoTables¶
Class for storing interpolation tables of cosmological functions (e.g. transfer functions, growth factor).
- Variables:
transfer_density (Table1D | None) – Interpolation table for the density transfer function. In InputParameters, becomes non-trivial only if MatterOptions.POWER_SPECTRUM is set to “CLASS”.
transfer_vcb (Table1D | None) – Interpolation table for the velocity transfer function. In InputParameters, becomes non-trivial only if MatterOptions.POWER_SPECTRUM is set to “CLASS” and MatterOptions.V_CB_MODEL = “FLUCTS”.
USE_SIGMA_8 (bool | None) – Flag to indicate whether to use CosmoParams.SIGMA_8 or CosmoParams.A_s for the normalization of the power spectrum.
ps_norm (float | None) – Normalization factor for the power spectrum. If USE_SIGMA_8 is True, this is set to CosmoParams.SIGMA_8, otherwise it is set to CosmoParams.A_s.
V_CB_AVG (float | None) – Mean value of the amplitude of the relative velocity between baryons and cold dark matter at kinematic decoupling, in km/s. In InputParameters, becomes non-trivial only if MatterOptions.V_CB_MODEL is set to “AVG-AUTO”.
- clone(**kwargs)¶
Make a fresh copy of the instance with arbitrary parameters updated.
- classmethod new(x: dict | Self | None = None, **kwargs)¶
Create a new instance of the struct.
- Parameters:
x (dict | CosmoTables | None) – Initial values for the struct. If x is a dictionary, it should map field names to their corresponding values. If x is an instance of this class, its attributes will be used as initial values. If x is None, the struct will be initialised with default values.
- Other Parameters:
All other parameters should be passed as if directly to the class constructor
(i.e. as parameter names).
- Parameters:
x (dict | Self | None)
- USE_SIGMA_8: bool | None¶
- V_CB_AVG: float | None¶
- ps_norm: float | None¶