Changeset 3317 in Sophya for trunk/Cosmo/SimLSS/cmvchkwhu.cc
- Timestamp:
- Aug 28, 2007, 11:40:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvchkwhu.cc
r3315 r3317 1 1 // Check cmv / Wayne Hu coding of the transfert functions 2 // ATTENTION: ne pas appeler hu_power.c ici car il ecrase les initialisations de hu_tf_fit.c 2 3 #include "sopnamsp.h" 3 4 #include "machdefs.h" … … 13 14 #include "pkspectrum.h" 14 15 #include "hu_tf_fit.h" 15 #include "hu_power.h"16 16 17 17 int main(int narg,char *arg[]) … … 19 19 double k1 = 1e-6, k2 = 10.; int_4 npt = 10000; 20 20 double h100 = 0.71, Om0 = 0.267804, Ob0 = 0.0444356, tcmb = T_CMB_Par; 21 // Modele MDM (hu_power.c) Eisenstein & Hu Apj 511 p5-15, 1999 (ou astro-ph/9710252)22 double Ohdm = 0.0, Ol0 = 0.7, redshift=0.;23 int degen_hdm = 0;24 21 25 22 cout<<"k1="<<k1<<" k2="<<k2<<" npt="<<npt<<endl; … … 45 42 TransfertEisenstein Tnob(h100,Om0,0.,tcmb,true,1); 46 43 47 cout<<endl<<"TFmdm_set_cosm"<<endl;48 int rcmdm = TFmdm_set_cosm(Om0,Ob0,Ohdm,degen_hdm,Ol0,h100,redshift);49 cout<<" rc="<<rcmdm<<endl;50 51 44 cout<<endl<<"Compare kpeak"<<endl; 52 45 double kpeak = Tfull.KPeak(); … … 54 47 cout<<"kpeak = "<<kpeak<<" "<<kpeakhu<<" Mpc^-1 -> diff "<<kpeak-kpeakhu<<endl; 55 48 56 const int n = 1 2;49 const int n = 11; 57 50 char *vname[n] = {"k","tf","tfnw","tfnb","tfc","tfb" 58 ,"hutf","hutfnw","hutfnb","hutfc","hutfb" 59 ,"hutfmdm"}; 51 ,"hutf","hutfnw","hutfnb","hutfc","hutfb"}; 60 52 NTuple nt(n,vname); 61 53 double xnt[n]; … … 76 68 double hutfnw = TFnowiggles(Om0,fbaryon,h100,tcmb,k/h100); 77 69 double hutfnb = TFzerobaryon(Om0,h100,tcmb,k/h100); 78 double hutfmdm = TFmdm_onek_mpc(k);79 70 80 71 … … 88 79 xnt[1]=tf; xnt[2]=tfnw; xnt[3]=tfnb; xnt[4]=tfc; xnt[5]=tfb; 89 80 xnt[6]=hutf; xnt[7]=hutfnw; xnt[8]=hutfnb; xnt[9]=hutfc; xnt[10]=hutfb; 90 xnt[11] = hutfmdm;91 81 nt.Fill(xnt); 92 82 } … … 149 139 n/plot nt.tfnw%$k ! ! "nsta connectpoints red same" 150 140 n/plot nt.tfnb%$k ! ! "nsta connectpoints blue same" 151 n/plot nt.hutfmdm%$k ! ! "nsta connectpoints green same"152 141 153 142 zone … … 155 144 n/plot nt.hutf/hutfnw%$k hutfnw>0. ! "nsta connectpoints same blue" 156 145 addline -1000 1 1000 1 "red" 146 147 zone 148 n/plot nt.tf/tfnb%$k tfnb>0. ! "nsta connectpoints" 149 n/plot nt.hutf/hutfnb%$k hutfnb>0. ! "nsta connectpoints same blue" 150 addline -1000 1 1000 1 "red" 157 151 */
Note:
See TracChangeset
for help on using the changeset viewer.