Skip to content

Doubleking-1/pycbc-waveform-SEOBNRE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycbc-waveform-SEOBNRE

Usage:

  1. Compile the source c code to generate the SEOBNRE library

    gcc -fPIC -shared src/main-interface.c src/SEOBNREforPythonMain.c -L/opt/local/lib -lgsl -lgslcblas -lm -o libSEOBNRE.so

    , then put the library in your environment variable LD_LIBRARY_PATH.

  2. Install the python code

    rm -rf build
    python setup.py install --prefix=YOUR_PATH

    , write the python path into your environment variable PYTHONPATH

  3. A example to call SEOBNRE through pycbc:

    import SEOBNRE
    from pycbc.waveform import get_td_waveform
    import numpy as np
    import lal
    import lalsimulation as lalsim
    import pylab
    
    kwargs = {'mass1':10,
              'mass2':10,
              'spin1z':0.1,
              'spin2z':0.1,
              'distance':400,
              'delta_t':1./4096,
              'eccentricity':0,
              'coa_phase':0,
              'f_lower':20,
              'long_asc_nodes':0}
    hp, hc = get_td_waveform(approximant='SEOBNRE',
                                     **kwargs)
    
    pylab.plot(hp.sample_times, hp, label='hplus')
    pylab.plot(hc.sample_times, hc, label='hcross')
    pylab.legend()
    pylab.show()

    A comparison with other SEOBNRv(1,2,3,4) waveforms can be found in test/prod1_wfoffset_SEOBcomp.html (Note that SEOBNRE waveforms are different with others up to a coalescence phase offset).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 50.0%
  • C 23.8%
  • HTML 23.5%
  • C++ 2.4%
  • Other 0.3%