pybird.common module

class pybird.common.Common(Nl=2, kmin=0.001, kmax=0.25, km=1.0, kr=1.0, nd=0.0003, eft_basis='eftoflss', halohalo=True, with_cf=False, with_time=True, accboost=1.0, optiresum=False, orderresum=16, with_uvmatch=False, with_irmatch=False, exact_time=False, quintessence=False, with_tidal_alignments=False, nonequaltime=False, keep_loop_pieces_independent=False, with_emu=False)[source]

Bases: object

A class to share data and parameters among different PyBird components.

The Common class initializes and stores various parameters needed for the EFT of Large Scale Structure calculations, managing arrays, multipole configurations, basis choices, and computational settings used across different modules.

Nl

The maximum multipole to calculate (default 2).

Type:

int

kmin

Minimum k value in h/Mpc for power spectrum calculations.

Type:

float

kmax

Maximum k value in h/Mpc for power spectrum calculations.

Type:

float

k

Array of k values used in calculations.

Type:

ndarray

Nk

Number of k points.

Type:

int

s

Array of separation values in Mpc/h for correlation functions.

Type:

ndarray

Ns

Number of s points.

Type:

int

eft_basis

Basis for EFT parameters (‘eftoflss’, ‘westcoast’, ‘eastcoast’).

Type:

str

halohalo

Whether to compute halo-halo correlations (vs. halo-matter).

Type:

bool

nd

Mean number density of tracers.

Type:

float

km

Inverse tracer spatial extension scale in h/Mpc.

Type:

float

kr

Inverse velocity product renormalization scale in h/Mpc.

Type:

float

N11

Number of linear terms.

Type:

int

Nct

Number of counterterms.

Type:

int

N22

Number of 22-loop terms.

Type:

int

N13

Number of 13-loop terms.

Type:

int

Nloop

Total number of loop terms (usually combines N22 and N13).

Type:

int

Nnnlo

Number of NNLO counterterms.

Type:

int

Nst

Number of stochastic terms.

Type:

int

with_time

Whether to use time-dependent calculations.

Type:

bool

with_cf

Whether to compute correlation functions.

Type:

bool

with_irmatch

Whether to apply IR matching.

Type:

bool

with_uvmatch

Whether to apply UV matching.

Type:

bool

exact_time

Whether to use exact time dependence (vs. EdS approximation).

Type:

bool

quintessence

Whether to include clustering quintessence.

Type:

bool

with_tidal_alignments

Whether to include tidal alignment terms.

Type:

bool

nonequaltime

Whether to calculate non-equal-time correlations.

Type:

bool

keep_loop_pieces_independent

Whether to keep loop pieces (P22, P13) separate.

Type:

bool

with_emu

Whether to use emulator for faster calculations.

Type:

bool

optiresum

Optimization setting for IR resummation.

Type:

bool

NIR

Number of IR resummation terms.

Type:

int

Na

Number of IR alpha parameters.

Type:

int

Nn

Total number of resummation parameters (NIR * Na * 2).

Type:

int

l11

Coefficients for linear terms per multipole.

Type:

ndarray

lct

Coefficients for counterterms per multipole.

Type:

ndarray

l22

Coefficients for 22-loop terms per multipole.

Type:

ndarray

l13

Coefficients for 13-loop terms per multipole.

Type:

ndarray

lnnlo

Coefficients for NNLO counterterms per multipole.

Type:

ndarray