Changeset 3343 in Sophya


Ignore:
Timestamp:
Oct 8, 2007, 6:17:46 PM (18 years ago)
Author:
cmv
Message:

IMPORTANT: corrcetion bug Mstar article Zwaan h752 , cmv 08/10/2007

Location:
trunk/Cosmo/SimLSS
Files:
4 edited

Legend:

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

    r3341 r3343  
    6969 double h75 = h100 / 0.75;
    7070 double nstar = 0.006*pow(h75,3.);  //
    71  double mstar = pow(10.,9.8/(h75*h75));  // MSol
     71 double mstar = pow(10.,9.8);  // MSol
    7272 double alpha = -1.37;
    7373 cout<<"nstar= "<<nstar<<"  mstar="<<mstar<<"  alpha="<<alpha<<endl;
     
    299299 cout<<"mstar*sch(mstar) = "<<sch(mstar)<<" Msol/Mpc^3/Msol"<<endl;
    300300 int npt = 10000;
    301  double lnx1=log10(1e-6), lnx2=log10(1e+14), dlnx=(lnx2-lnx1)/npt;
     301 double lnx1=log10(1e+6), lnx2=log10(1e+14), dlnx=(lnx2-lnx1)/npt;
    302302 double masshimpc3 = IntegrateFuncLog(sch,lnx1,lnx2,0.001,dlnx,10.*dlnx,6);
    303303 cout<<"Mass density: "<<masshimpc3<<" Msol/Mpc^3"<<endl;
     
    308308     <<"Total mass in survey = "<<masshitot<<" Msol"<<endl;
    309309 if(mhiref<=0.)  mhiref = masshipix;
     310
     311 sch.SetOutValue(0);
     312 cout<<"\nsch(mstar) = "<<sch(mstar)<<" /Mpc^3/Msol"<<endl;
     313 cout<<"Galaxy number density:"<<endl;
     314 for(double x=lnx1; x<10.5; x+=1.) {
     315   double n = IntegrateFuncLog(sch,x,lnx2,0.001,dlnx,10.*dlnx,6);
     316   cout<<"  m>"<<x<<" Msol: "<<n<<" /Mpc^3, "<<n*dvol<<" /pixel, "
     317       <<n*vol<<" in survey"<<endl;
     318 }
     319 sch.SetOutValue(1);
     320
    310321
    311322 // --- Survey values
     
    368379 double tsig = facpolar * tsig_2polar;
    369380 double ssig = facpolar * ssig_2polar;
    370  cout<<"\nSignal("<<mhiref<<" Msol): P="<<psig<<" W"<<endl;
    371  cout<<"     flux density = "<<ssig<<" Jy  (for Dnu="<<dnuhiz<<" GHz)"<<endl;
    372  cout<<"     Antenna temperature: tsig="<<tsig<<" K"<<endl;
     381 cout<<"\nSignal("<<mhiref<<" Msol):"<<endl
     382     <<"     P="<<psig<<" W"<<endl
     383     <<"     flux density = "<<ssig*1.e6<<" mu_Jy  (for Dnu="<<dnuhiz<<" GHz)"<<endl
     384     <<"     Antenna temperature: tsig="<<tsig<<" K"<<endl;
    373385
    374386 // Elargissement doppler de la raie a 21cm: dNu = vrot/C * Nu(21cm) / (1+z)
     
    390402 cout<<"\nSynchrotron: T="<<Tsynch408<<" K ("<<nuhaslam<<" GHz), "
    391403     <<tsynch<<" K ("<<nuhiz<<" GHz)"<<endl
    392      <<"             P="<<psynch<<" W for pixel"<<endl;
    393  cout<<"             flux density = "<<ssynch<<" Jy for pixel solid angle"<<endl;
     404     <<"             P="<<psynch<<" W for pixel"<<endl
     405     <<"             flux density = "<<ssynch<<" Jy for pixel solid angle"<<endl;
    394406
    395407 // CMB
     
    400412 double pcmb = facpolar * pcmb_2polar;
    401413 double scmb = facpolar * scmb_2polar;
    402  cout<<"\nCMB: T="<<tcmb<<" K -> P="<<pcmb<<" W for pixel"<<endl;
    403  cout<<"                       flux density = "<<scmb<<" Jy for pixel solid angle"<<endl;
     414 cout<<"\nCMB: T="<<tcmb<<" K"<<endl
     415     <<"     P="<<pcmb<<" W for pixel"<<endl
     416     <<"     flux density = "<<scmb<<" Jy for pixel solid angle"<<endl;
    404417
    405418 // AGN
  • trunk/Cosmo/SimLSS/cmvobserv3d.cc

    r3331 r3343  
    8686 double h75 = h100 / 0.75;
    8787 double nstar = 0.006*pow(h75,3.);
    88  double mstar = pow(10.,9.8/(h75*h75));  // MSol
     88 double mstar = pow(10.,9.8);  // MSol
    8989 double alpha = -1.37;
    9090
  • trunk/Cosmo/SimLSS/cmvschdist.cc

    r3322 r3343  
    4848 double h75 = 0.71 / 0.75;
    4949 double nstar = 0.006*pow(h75,3.);  // 
    50  double mstar = pow(10.,9.8/(h75*h75));  // MSol
     50 double mstar = pow(10.,9.8);  // MSol
    5151 double alpha = -1.37;
    5252 cout<<"h75= "<<h75<<" nstar= "<<nstar<<"  mstar="<<mstar<<"  alpha="<<alpha<<endl;
  • trunk/Cosmo/SimLSS/cmvtstsch.cc

    r3320 r3343  
    3737 double h75 = 0.71 / 0.75;
    3838 double nstar = 0.006*pow(h75,3.);  // 
    39  double mstar = pow(10.,9.8/(h75*h75));  // MSol
     39 double mstar = pow(10.,9.8);  // MSol
    4040 double alpha = -1.37;
    4141 cout<<"h75= "<<h75<<" nstar= "<<nstar<<"  mstar="<<mstar<<"  alpha="<<alpha<<endl;
Note: See TracChangeset for help on using the changeset viewer.