Changeset 3344 in Sophya for trunk/Cosmo/SimLSS
- Timestamp:
- Oct 9, 2007, 10:43:47 AM (18 years ago)
- Location:
- trunk/Cosmo/SimLSS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvdefsurv.cc
r3343 r3344 299 299 cout<<"mstar*sch(mstar) = "<<sch(mstar)<<" Msol/Mpc^3/Msol"<<endl; 300 300 int npt = 10000; 301 double lnx1=log10(1 e+6), lnx2=log10(1e+14), dlnx=(lnx2-lnx1)/npt;301 double lnx1=log10(1.e+6), lnx2=log10(1.e+13), dlnx=(lnx2-lnx1)/npt; 302 302 double masshimpc3 = IntegrateFuncLog(sch,lnx1,lnx2,0.001,dlnx,10.*dlnx,6); 303 303 cout<<"Mass density: "<<masshimpc3<<" Msol/Mpc^3"<<endl; … … 312 312 cout<<"\nsch(mstar) = "<<sch(mstar)<<" /Mpc^3/Msol"<<endl; 313 313 cout<<"Galaxy number density:"<<endl; 314 for(double x=lnx1; x< 10.5; x+=1.) {314 for(double x=lnx1; x<lnx2-0.5; x+=1.) { 315 315 double n = IntegrateFuncLog(sch,x,lnx2,0.001,dlnx,10.*dlnx,6); 316 316 cout<<" m>"<<x<<" Msol: "<<n<<" /Mpc^3, "<<n*dvol<<" /pixel, " -
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3343 r3344 89 89 double alpha = -1.37; 90 90 91 double schmin=1 e8, schmax=1e13;91 double schmin=1.e7, schmax=1.e13; 92 92 int schnpt = -100; 93 93 bool use_schmassdist = false; -
trunk/Cosmo/SimLSS/cmvschdist.cc
r3343 r3344 6 6 // ex: on a un pixel qui a N galaxies, quelle est la distribution 7 7 // statistique de masse dans un tel pixel ? 8 // > cmvschdist -a -v -m 1e+ 8,1e+13 -n -100 -r 200 -N 1000008 // > cmvschdist -a -v -m 1e+7,1e+13 -n -100 -r 200 -N 100000 9 9 // compare with: 10 // > cmvschdist -a -v -m 1e+ 8,1e+13 -n -100 -r 200 -N 100000 -010 // > cmvschdist -a -v -m 1e+7,1e+13 -n -100 -r 200 -N 100000 -0 11 11 // Fabriquer un fichier pour la prod 12 // > cmvschdist -a -m 1e+ 8,1e+13 -n -100 -r 2000 -N 5000000 -W schdist_2000.ppf12 // > cmvschdist -a -m 1e+7,1e+13 -n -100 -r 2000 -N 5000000 -W schdist_2000.ppf 13 13 #include <iostream> 14 14 #include <stdlib.h> … … 52 52 cout<<"h75= "<<h75<<" nstar= "<<nstar<<" mstar="<<mstar<<" alpha="<<alpha<<endl; 53 53 54 double xmin=1 e8, xmax=1e13;54 double xmin=1.e7, xmax=1.e13; 55 55 int npt = -100; 56 56 int ngmax = 200, ngmin = 1;
Note:
See TracChangeset
for help on using the changeset viewer.