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/tutorial_abd.rst
+158-5Lines changed: 158 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,8 +294,12 @@ that are easier to understand/analyze. Effectively, mapping to this frame amount
294
294
in the center-of-mass frame, with no instananeous memory, and its angular velocity in the z-direction. For example,
295
295
for a remnant black hole, this corresponds to making the coordinates match those of the usual Kerr metric and is
296
296
therefore incredibly useful (and necessary) for fitting QNMs to NR waveforms.
297
+
There is another choice of frame which we call the Post-Newtonian BMS frame (or
298
+
PNBMS frame). In this frame, the waveform will agree with the Post-Newtonian
299
+
description of the system at early times.
297
300
298
-
The function ``scri.asymptotic_bondi_data.map_to_superrest_frame`` maps to this exact frame.
301
+
The function :meth:`scri.asymptotic_bondi_data.map_to_superrest_frame.map_to_superrest_frame` can map
302
+
to one of these frames.
299
303
In particular, it takes as input:
300
304
301
305
* ``t_0``, the time at which to map to the superrest frame;
@@ -333,7 +337,7 @@ It also can perform a number of other important post-processing steps, such as:
333
337
334
338
We recommend including all of these post-processing steps when processing SpECTRE CCE output.
335
339
336
-
To obtain the strain :math:`h` from the ``abd`` object, one can use the function ``scri.asymptotic_bondi_data.map_to_superrest_frame.MT_to_WM`` via ``h = MT_to_WM(2.0*abd.sigma.bar)``.
340
+
To obtain the strain :math:`h` from the ``abd`` object, one can use the function :meth:`scri.asymptotic_bondi_data.map_to_superrest_frame.MT_to_WM` via ``h = MT_to_WM(2.0*abd.sigma.bar)``.
337
341
This is because the strain :math:`h` is related to the shear :math:`\sigma` via :math:`h=2\overline{\sigma}`.
338
342
339
343
Example usage of this function could be:
@@ -357,10 +361,16 @@ Example usage of this function could be:
357
361
For more on the :meth:`scri.WaveformModes` class, i.e., what :math:`h` is in the above code, see https://github.com/moble/scri/blob/main/docs/tutorial_waveformmodes.rst.
358
362
359
363
The CCE output is sometimes very densely sampled in time, which causes the BMS
360
-
transformation to the superrest frame to take a long time (more than 10
364
+
transformation to the superrest frame or PNBMS frame to take a long time (more than 10
361
365
minutes). An effective way around this is to down sample the CCE data, compute
362
-
the BMS transformation to the superrest frame with the down sampled data, and
363
-
then apply to the full data. This can be done with the following two functions
366
+
the BMS transformation to the appropriate frame with the down sampled data, and
367
+
then apply to the full data.
368
+
369
+
--------------------------
370
+
Fixing the superrest frame
371
+
--------------------------
372
+
The superrest frame of the CCE waveforms can be fixed using the following two
373
+
functions.
364
374
365
375
.. code-block:: python
366
376
@@ -387,6 +397,149 @@ then apply to the full data. This can be done with the following two functions
387
397
frame_rotation=BMS.frame_rotation.components,
388
398
boost_velocity=BMS.boost_velocity,)
389
399
400
+
------------------------------------------
401
+
Fixing the PNBMS frame using PN CoM charge
402
+
------------------------------------------
403
+
404
+
The PNBMS frame fixing of CCE waveforms requires ``target_PsiM_input`` (the PN
405
+
Moreschi supermomentum), and ``target_strain_input`` (the PN strain). These
406
+
post-Newtonian waveform modes can be generated using the `PostNewtonian.jl
407
+
<https://github.com/moble/PostNewtonian.jl>`_ module. We can generate these
408
+
waveform modes and provide them as input arguments to the
409
+
``map_to_superrest_frame`` function for fixing the PNBMS frame. The generation
410
+
of these waveform modes and fixing the frame can be performed using the
411
+
following functions.
412
+
413
+
.. code-block:: python
414
+
415
+
from sxs.julia import PNWaveform
416
+
import numpy as np
417
+
import sxs
418
+
import scri
419
+
from scri.pn.boosted_comcharge importPN_charges, analytical_CoM_func
0 commit comments