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
Copy file name to clipboardExpand all lines: docs/_sources/examples.rst.txt
+38-33Lines changed: 38 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,7 +230,40 @@ Those profiles are optional and will be set to zero function if not provided.
230
230
Setting usere-defined structured jet in the Python level is OK for light curve and spectrum calculation. However, it is not recommended for MCMC parameter fitting.
231
231
The reason is that setting user-defined profiles in the Python level leads to a large overhead due to the Python-C++ inter-process communication.
232
232
Users are recommended to set up the user-defined jet structure in the C++ level for MCMC parameter fitting for better performance.
233
-
233
+
234
+
Reverse Shock
235
+
^^^^^^^^^^^^^
236
+
237
+
.. code-block:: python
238
+
239
+
from VegasAfterglow import Radiation
240
+
241
+
# Create a radiation model with self-Compton radiation
(IC_cooling = False, KN = False, SSC = True): The IC radiation is calculated based on synchrotron spectrum without IC cooling.
280
-
(IC_cooling = True, KN = False, SSC = True): The IC radiation is calculated based on synchrotron spectrum with IC cooling without Klein-Nishina correction.
281
-
(IC_cooling = True, KN = True, SSC = True): The IC radiation is calculated based on synchrotron spectrum with IC cooling and Klein-Nishina correction.
282
-
283
-
Reverse Shock
284
-
^^^^^^^^^^^^^
285
-
286
-
.. code-block:: python
287
-
from VegasAfterglow import Radiation
288
-
289
-
# Create a radiation model with self-Compton radiation
(IC_cooling = True, KN = False, SSC = True): The IC radiation is calculated based on synchrotron spectrum with IC cooling without Klein-Nishina correction.
310
316
311
-
.. note::
312
-
You may increase the resolution of the grid to improve the accuracy of the reverse shock synchrotron radiation.
313
-
317
+
(IC_cooling = True, KN = True, SSC = True): The IC radiation is calculated based on synchrotron spectrum with IC cooling and Klein-Nishina correction.
0 commit comments