Changeset 3351 in Sophya for trunk/Cosmo/SimLSS/cmvdefsurv.cc


Ignore:
Timestamp:
Oct 12, 2007, 7:45:12 PM (18 years ago)
Author:
cmv
Message:

suite des modifs importantes , cmv 12/10/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvdefsurv.cc

    r3350 r3351  
    4141      <<"   \'M\' : en distance (pour X-Y-Z) : resolution et largeur Mpc"<<endl
    4242      <<"----------------"<<endl
    43       <<" -K k,pk,dk : k(Mpc^-1) dk(Mpc^-1) pk(a z=0 en Mpc^-3) pour estimer la variance cosmique"<<endl
     43      <<" -K k,dk,pk : k(Mpc^-1) dk(Mpc^-1) pk(a z=0 en Mpc^-3) pour estimer la variance cosmique"<<endl
    4444      <<"----------------"<<endl
    4545      <<" -O surf,tobs : surface effective (m^2) et temps d\'observation (s)"<<endl
     
    146146    break;
    147147  case 'K' :
    148     sscanf(optarg,"%lf,%lf,%lf",&kcosm,&pkcosm,&dkcosm);
     148    sscanf(optarg,"%lf,%lf,%lf",&kcosm,&dkcosm,&pkcosm);
    149149    break;
    150150  case 'h' :
     
    252252     <<"  dy = "<<dy<<" Mpc,  tylarg = "<<tylarg<<" Mpc com, ny = "<<ny<<" pix"<<endl;
    253253 cout<<"---- Npix total = "<<Npix<<" -> "<<Npix*sizeof(double)/1.e6<<" Mo"<<endl;
     254 cout<<"     Volume pixel = "<<dx*dy*dz<<" Mpc^3"<<endl;
     255 cout<<"     Volume total = "<<Npix*dx*dy*dz<<" Mpc^3"<<endl;
    254256
    255257 // --- Cosmolographie Transverse
     
    308310 // --- Variance cosmique
    309311 //                      cosmique                    poisson
    310  // (sigma/P)^2 = 2*(2Pi)^3 / (4Pi dk Vsurvey) * [(1+n*P)/(n*P)]^2
     312 // (sigma/P)^2 = 2*(2Pi)^3 / (4Pi k^2 dk Vsurvey) * [(1+n*P)/(n*P)]^2
    311313 // nombre de mode = 1/2 * Vsurvey/(2Pi)^3 * 4Pi*k^2*dk
    312314 if(kcosm>0. && pkcosm>0.) {
     
    322324   dk.push_back(dk_x); dk.push_back(dk_y); dk.push_back(dk_z);
    323325   for(int i=0;i<(int)dk.size();i++) { // la variance cosmique pure
    324      double vcosm = sqrt( 2.*pow(2.*M_PI,3.)/(4.*M_PI*dk[i]*vol) );
     326     double vcosm = sqrt( 2.*pow(2.*M_PI,3.)/(4.*M_PI*pow(kcosm,2.)*dk[i]*vol) );
    325327     double nmode = 0.5*vol/pow(2.*M_PI,3.) * 4.*M_PI*pow(kcosm,2.)*dk[i];
    326328     cout<<"  pour dk = "<<dk[i]<<" Mpc^-1:  sigma/P = "<<vcosm
Note: See TracChangeset for help on using the changeset viewer.