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, use_sigma_gamma_gamma_fast=False)[source]#
Bases:
objectCompute internal gamma-gamma absorption from jet seed photon fields.
Notes
Evaluates optical depth
tau(nu)using BLR, DT, or Corona photon distributions through the C backend and provides attenuation factors for integration into jet spectral component calculations.Methods Summary
eval([get_tau, lin_nu, peak])Evaluate model output.
eval_tau_photons(nu_src, R_H[, peak, ...])Evaluate tau photons.
set_use_sigma_gamma_gamma_fast(use_fast)Methods Documentation
- eval(get_tau=False, lin_nu=None, peak=False)[source]#
Evaluate model output.
- Parameters:
get_tau (bool, optional) – If
True, return optical depth instead of attenuation.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, 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.
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.
Notes
Internal absorption is evaluated via
eval_internal_abs_tau_isolatedonly.- Returns:
Computed value.
- Return type:
object