You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`specific_flux()`: Calculates flux on a time-frequency grid (NxM output from N times and M frequencies)
333
334
-`specific_flux_series()`: Calculates flux at paired time-frequency points (N output from N time-frequency pairs), requires ascending order time arrays
334
335
-`specific_flux_series_with_expo()`: Same as above but with exposure time averaging for realistic observational scenarios
335
336
337
+
**Return value structure:**
338
+
All flux calculation methods return a `FluxDict` object with:
339
+
-`.total`: Combined flux from all components
340
+
-`.fwd`: Forward shock flux (has `.sync` and `.ssc` attributes)
341
+
-`.rvs`: Reverse shock flux (has `.sync` and `.ssc` attributes)
You will get a list of keys representing the internal quantities, such as `t_src`, `t_comv_fwd`, `t_obs_fwd`, etc.
383
-
384
-
-`phi`: 1D numpy array of azimuthal angles in `radians`.
385
-
-`theta`: 1D numpy array of polar angles in `radians`.
386
-
-`t_src`: 3D numpy array of source frame times on coordinate (phi_i, theta_j, t_k) grid in `seconds`.
387
-
-`t_comv_fwd`: 3D numpy array of comoving times for the forward shock in `seconds`.
388
-
-`t_obs_fwd`: 3D numpy array of observer times for the forward shock in `seconds`.
389
-
-`Gamma_fwd`: 3D numpy array of downstream Lorentz factors for the forward shock.
390
-
-`Gamma_th_fwd`: 3D numpy array of thermal Lorentz factors for the forward shock.
391
-
-`r_fwd`: 3D numpy array of lab frame radii in `cm`.
392
-
-`B_fwd`: 3D numpy array of downstream comoving magnetic field strengths for the forward shock in `Gauss`.
393
-
-`theta_fwd`: 3D numpy array of polar angles for the forward shock in `radians`.
394
-
-`N_p_fwd`: 3D numpy array of downstream shocked proton number per solid angle for the forward shock.
395
-
-`N_e_fwd`: 3D numpy array of downstream synchrotron electron number per solid angle for the forward shock.
396
-
-`gamma_a_fwd`: 3D numpy array of comoving frame self-absorption Lorentz factors for the forward shock.
397
-
-`gamma_m_fwd`: 3D numpy array of comoving frame injection Lorentz factors for the forward shock.
398
-
-`gamma_c_fwd`: 3D numpy array of comoving frame cooling Lorentz factors for the forward shock.
399
-
-`gamma_M_fwd`: 3D numpy array of comoving frame maximum Lorentz factors for the forward shock.
400
-
-`nu_a_fwd`: 3D numpy array of comoving frame self-absorption frequencies for the forward shock in `Hz`.
401
-
-`nu_m_fwd`: 3D numpy array of comoving frame injection frequencies for the forward shock in `Hz`.
402
-
-`nu_c_fwd`: 3D numpy array of comoving frame cooling frequencies for the forward shock in `Hz`.
403
-
-`nu_M_fwd`: 3D numpy array of comoving frame maximum frequencies for the forward shock in `Hz`.
404
-
-`I_nu_max_fwd`: 3D numpy array of comoving frame synchrotron maximum specific intensities for the forward shock in `erg/cm²/s/Hz`.
405
-
-`Doppler_fwd`: 3D numpy array of Doppler factors for the forward shock.
390
+
You will get a `SimulationDetails` object with the following structure:
391
+
392
+
**Main grid coordinates:**
393
+
-`details.phi`: 1D numpy array of azimuthal angles in `radians`
394
+
-`details.theta`: 1D numpy array of polar angles in `radians`
395
+
-`details.t_src`: 3D numpy array of source frame times on coordinate (phi_i, theta_j, t_k) grid in `seconds`
396
+
397
+
**Forward shock details (accessed via `details.fwd`):**
398
+
-`details.fwd.t_comv`: 3D numpy array of comoving times for the forward shock in `seconds`
399
+
-`details.fwd.t_obs`: 3D numpy array of observer times for the forward shock in `seconds`
400
+
-`details.fwd.Gamma`: 3D numpy array of downstream Lorentz factors for the forward shock
401
+
-`details.fwd.Gamma_th`: 3D numpy array of thermal Lorentz factors for the forward shock
402
+
-`details.fwd.r`: 3D numpy array of lab frame radii in `cm`
403
+
-`details.fwd.B_comv`: 3D numpy array of downstream comoving magnetic field strengths for the forward shock in `Gauss`
404
+
-`details.fwd.theta`: 3D numpy array of polar angles for the forward shock in `radians`
405
+
-`details.fwd.N_p`: 3D numpy array of downstream shocked proton number per solid angle for the forward shock
406
+
-`details.fwd.N_e`: 3D numpy array of downstream synchrotron electron number per solid angle for the forward shock
407
+
-`details.fwd.gamma_a`: 3D numpy array of comoving frame self-absorption Lorentz factors for the forward shock
408
+
-`details.fwd.gamma_m`: 3D numpy array of comoving frame injection Lorentz factors for the forward shock
409
+
-`details.fwd.gamma_c`: 3D numpy array of comoving frame cooling Lorentz factors for the forward shock
410
+
-`details.fwd.gamma_M`: 3D numpy array of comoving frame maximum Lorentz factors for the forward shock
411
+
-`details.fwd.nu_a`: 3D numpy array of comoving frame self-absorption frequencies for the forward shock in `Hz`
412
+
-`details.fwd.nu_m`: 3D numpy array of comoving frame injection frequencies for the forward shock in `Hz`
413
+
-`details.fwd.nu_c`: 3D numpy array of comoving frame cooling frequencies for the forward shock in `Hz`
414
+
-`details.fwd.nu_M`: 3D numpy array of comoving frame maximum frequencies for the forward shock in `Hz`
415
+
-`details.fwd.I_nu_max`: 3D numpy array of comoving frame synchrotron maximum specific intensities for the forward shock in `erg/cm²/s/Hz`
416
+
-`details.fwd.Doppler`: 3D numpy array of Doppler factors for the forward shock
417
+
418
+
**Reverse shock details (accessed via `details.rvs`, if reverse shock is enabled):**
419
+
- Similar attributes as forward shock but for the reverse shock component
406
420
407
421
</details>
408
422
@@ -416,23 +430,28 @@ To analyze the temporal evolution of physical parameters across different refere
416
430
This code creates a comprehensive multi-panel figure displaying the temporal evolution of fundamental shock parameters (Lorentz factor, magnetic field, particle numbers, radius, and peak synchrotron power) across all three reference frames:
This visualization focuses specifically on the characteristic electron energies (self-absorption, injection, and cooling) across all three reference frames:
0 commit comments