Lorene initial data for binary neutron stars

Lorene data represents quasistationary binary neutron stars configurations, obtained by

The exportation of this data, computed by means of LORENE on a multi-domain spectral grid, onto a Cartesian grid (e.g. for CACTUS), is performed by means of the C++ class Bin_NS. The class Bin_NS comes along with LORENE distribution. This class is very simple, with all data members being public. A typical example of use is the following one

 *	    // Define the Cartesian grid by means of the arrays xg, yg, zg:
 *	    for (int i=0; i<nb_points; i++) {
 *           xg[i] = ...
 *           yg[i] = ...
 *           zg[i] = ...
 *	    }
 *
 *	    // Read the file containing the spectral data and evaluate
 *	    //  all the fields on the Cartesian grid :
 *
 *	    Bin_NS binary_system(nb_points, xg, yg, zg, datafile) ;
 *
 *	    // Extract what you need :
 *
 *	    double* gamma_xx = binary_system.g_xx ; // metric coefficient g_xx
 *
 *	    double* shift_x = binary_system.beta_x ; // x comp. of shift vector
 *
 *	    ...
 *
 *	    // Save everything in an ASCII file :
 *
 *	    ofstream file_ini("ini.d") ;
 *	    binary_system.save_form(file_ini) ;
 *	    file_ini.close() ;
 *
 *  

o Bin_NS
Binary neutron star configuration on a Cartesian grid.

Index alphabétique Hierarchy of classes



This page was generated with the help of DOC++.