Changeset 4047 in Sophya
- Timestamp:
- Jan 12, 2012, 10:37:47 PM (14 years ago)
- Location:
- trunk/Cosmo/SimLSS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/Makefile
r3803 r4047 11 11 12 12 MYEXTINC = ${EXTLIBDIR}/${MACH}/include 13 MYLIB = $(SOPHYAEXTSLBLIST) -L$(LIB) -lcmvgenfluc -lcmvsimbao-lfftw3_threads -lfftw3 -lm14 MYLIB4 = $(SOPHYAEXTSLBLIST) -L$(LIB) -lcmvgenfluc4 -lcmvsimbao-lfftw3f_threads -lfftw3f -lm13 MYLIB = -L$(LIB) -lcmvgenfluc -lcmvsimbao $(SOPHYAEXTSLBLIST) -lfftw3_threads -lfftw3 -lm 14 MYLIB4 = -L$(LIB) -lcmvgenfluc4 -lcmvsimbao $(SOPHYAEXTSLBLIST) -lfftw3f_threads -lfftw3f -lm 15 15 16 16 #-------------------------------------------------------------------------- … … 83 83 rm -f $(LIBG) $(LIBGOBJ) 84 84 rm -f $(LIBG4) $(LIBGOBJ4) 85 rm -rf $(OBJ)/CmvBAO_cxxrep/86 85 rm -f $(PROGSTEST) $(PROGSTESTOBJ) 87 86 rm -f $(SPROGS) $(SPROGSOBJ) -
trunk/Cosmo/SimLSS/constcosmo.h
r3193 r4047 19 19 static const double ProtonMass_Cst = 1.67262171e-24; // 1 "proton mass" in "g" 20 20 static const double Deg2Rad_Cst = (M_PI/180.); // 1 deg into rad 21 // 4 PI sr = 180/Pi * 2 * 360 = 360^2/Pi -> deg^2 * 4*(Pi/360)^2 = sr 22 static const double Deg2toSr_Cst = M_PI*M_PI/32400.; // 1 deg^2 into steradian: 4*(Pi/360)^2 21 23 22 24 static const double T_CMB_Par = 2.725; // temperature du CMB en "K" -
trunk/Cosmo/SimLSS/cosmocalc.cc
r3970 r4047 235 235 printf("Otot=%g Ocurv=%g\n",Otot(z),Ocurv(z)); 236 236 if(z <= 0.) return; 237 printf("Distance comoving: los=%g Mpc , transv=%g Mpc\n",Dloscom(z),Dtrcom(z));237 printf("Distance comoving: los=%g Mpc (dlos/dz=%g), transv=%g Mpc\n",Dloscom(z),DloscomDz(z),Dtrcom(z)); 238 238 printf("Distance: angular=%g Mpc, lum=%g Mpc\n",Dang(z),Dlum(z)); 239 239 printf("Volume comoving element: %g Mpc^3/sr/dz=1\n",dVol(z)); … … 292 292 { 293 293 return _Dhubble * NInteg(z); 294 } 295 296 double CosmoCalc::DloscomDz(double z) 297 // d(Dloscom)/dz : derivee de la distance LOS comobile par rapport a z 298 { 299 return SpeedOfLight_Cst / H(z); 294 300 } 295 301 -
trunk/Cosmo/SimLSS/cosmocalc.h
r3952 r4047 53 53 double Dtrcom(double z); 54 54 double Dloscom(double z); 55 double DloscomDz(double z); 55 56 double Dang(double z); 56 57 double Dlum(double z); -
trunk/Cosmo/SimLSS/genefluct3d.cc
r4008 r4047 1 //#include "sopnamsp.h" 1 2 #include "machdefs.h" 2 3 #include <iostream>
Note:
See TracChangeset
for help on using the changeset viewer.