InternalAbsorption#
- class jetset.internal_absorption.InternalAbsorption(jet, nu_min=None, seed_photons_name='BLR', N_soft=50, N_hard=50, N_R_H=20, N_theta=20, use_R_H_profile_extrapolation=False)[source]#
Bases:
objectCompute internal gamma-gamma absorption from jet seed photon fields.
Notes
Evaluates optical depth
tau(nu)using BLR or DT photon distributions, caches previous evaluations for reuse, and provides attenuation factors for integration into jet spectral component calculations.Methods Summary
eval([get_tau, skip_check, lin_nu, peak])Evaluate model output.
eval_tau_photons(nu_src, R_H[, skip_check, ...])Evaluate tau photons.
get_n(seed_photons_name, N_soft, R_H[, ...])Return n.
sigma(s)Sigma.
Methods Documentation
- eval(get_tau=False, skip_check=True, lin_nu=None, peak=False)[source]#
Evaluate model output.
- Parameters:
get_tau (bool, optional) – If
True, return optical depth instead of attenuation.skip_check (bool, optional) – If
True, skip check.lin_nu (object, optional) – Linear-frequency array in Hz.
peak (bool, optional) – If
True, use peak-optimized seed-photon sampling.
- Returns:
Computed value.
- Return type:
object
- eval_tau_photons(nu_src, R_H, skip_check=True, peak=False, use_R_H_profile_extrapolation=False)[source]#
Evaluate tau photons.
- Parameters:
nu_src (object) – Source-frame frequency array in Hz.
R_H (object) – Distance from black hole in cm.
skip_check (bool, optional) – If
True, skip check.peak (bool, optional) – If
True, use peak-optimized seed-photon sampling.use_R_H_profile_extrapolation (bool, optional) – If
True, enable r h profile extrapolation.
- Returns:
Computed value.
- Return type:
object
- get_n(seed_photons_name, N_soft, R_H, peak=False, rescale=True)[source]#
Return n.
- Parameters:
seed_photons_name (object) – Seed-photon field identifier (for example
BLRorDT).N_soft (object) – Number of soft-photon energy samples.
R_H (object) – Distance from black hole in cm.
peak (bool, optional) – If
True, use peak-optimized seed-photon sampling.rescale (bool, optional) – If
True, apply normalization rescaling.
- Returns:
Requested value.
- Return type:
object