Jet
(name='test', electron_distribution='lp', beaming_expr='delta', jet_workplace=None, verbose=None, clean_work_dir=True, **keywords)[source]¶Bases: jetset.base_model.Model
This class allows to build a jet
model providing the interface to the
BlazarSED code, giving full access to the physical parameters and
providing the methods to run the code.
A Jet
object will store the
the physical parameters in the ModelParameterArray
class,
that is a collection of JetParameter
objects.
Examples
Methods Summary
add_EC_component (EC_components) |
|
add_par_from_dic (model_dic) |
add the JetParameter object to the ModelParameterArray |
add_spectral_component (name) |
|
debug_SSC () |
|
debug_synch () |
|
del_EC_component (EC_components) |
|
del_par_from_dic (model_dic) |
|
del_spectral_component (name[, verbose]) |
|
eval ([init, fill_SED, nu, get_model, …]) |
Runs the BlazarSED code for the current JetModel instance. |
get_DL_cm () |
|
get_IC_mode () |
|
get_IC_nu_size () |
|
get_SED_peak ([peak_name, freq_range, log_log]) |
|
get_SED_points ([log_log, name]) |
|
get_SSC_mode () |
|
get_beaming ([theta, bulk_factor, beaming]) |
|
get_electron_distribution_name () |
|
get_flag () |
|
get_gamma_grid_size () |
|
get_par_by_name (par_name) |
get parameter by type |
get_par_by_type (par_type) |
get parameter by type |
get_path () |
|
get_seed_nu_size () |
|
get_spectral_component_by_name (name[, verbose]) |
|
get_spectral_component_names_list () |
|
get_sync_mode () |
|
get_verbosity () |
|
init_BlazarSED () |
|
list_spectral_components () |
|
load_model (file_name) |
|
plot_model ([plot_obj, clean, autoscale, …]) |
|
save_model (file_name) |
|
set_B_eq (nuFnu_obs, nu_obs[, B_min, B_max, …]) |
returns equipartiont B |
set_IC_mode (val) |
|
set_IC_nu_size (val) |
|
set_N_from_nuFnu (nuFnu_obs, nu_obs) |
sets the normalization of N to match the observed flux nu0F_nu0 at a given frequency nu_0 |
set_N_from_nuLnu (L_0, nu_0) |
sets the normalization of N to match the rest frame luminosity L_0, at a given frequency nu_0 |
set_SSC_mode (val) |
|
set_electron_distribution (name) |
|
set_emitting_region (beaming_expr) |
|
set_flag (flag) |
|
set_gamma_grid_size (val) |
|
set_par (par_name, val) |
shortcut to ModelParametersArray.set method |
set_path (path[, clean_work_dir]) |
|
set_seed_nu_size (val) |
|
set_sync_mode (val) |
|
set_verbosity (val) |
|
show_model () |
|
show_pars () |
shortcut to ModelParametersArray.show_pars method |
show_spectral_components () |
Methods Documentation
add_par_from_dic
(model_dic)[source]¶add the JetParameter
object to the ModelParameterArray
usign the dictionaries built by the build_emitting_region_dic()
and build_electron_distribution_dic()
eval
(init=True, fill_SED=True, nu=None, get_model=False, loglog=False, plot=None, label=None, phys_output=False)[source]¶Runs the BlazarSED code for the current JetModel instance.
Parameters: | init – (boolean), “defualt=True” initializes the BlazarSED code for the current Jet instance parameters values. |
---|
set_B_eq
(nuFnu_obs, nu_obs, B_min=1e-09, B_max=1.0, N_pts=20, plot=False)[source]¶returns equipartiont B
set_N_from_nuFnu
(nuFnu_obs, nu_obs)[source]¶sets the normalization of N to match the observed flux nu0F_nu0 at a given frequency nu_0
set_N_from_nuLnu
(L_0, nu_0)[source]¶sets the normalization of N to match the rest frame luminosity L_0, at a given frequency nu_0
set_par
(par_name, val)[source]¶shortcut to ModelParametersArray.set
method
set a parameter value
Parameters: |
|
---|