Changeset 3805 in Sophya for trunk/Cosmo/SimLSS/cmvtransf.cc
- Timestamp:
- Jul 24, 2010, 12:01:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvtransf.cc
r3802 r3805 17 17 cout 18 18 <<"cmvtransf [options]"<<endl 19 <<" -k k1,k2,npt: k range in Mpc^-1"<<endl19 <<" -k npt,k1,k2 : k range in Mpc^-1"<<endl 20 20 <<" -U h100,Om0,Ob0,tcmb : cosmology"<<endl 21 <<" -F filename : read also C MBFastfile"<<endl21 <<" -F filename : read also CAMB file"<<endl 22 22 <<endl; 23 23 } … … 27 27 double k1 = 1e-6, k2 = 10.; int_4 npt = 100; 28 28 double h100 = 0.71, Om0 = 0.267804, Ob0 = 0.0444356, tcmb = T_CMB_Par; 29 string fcmbf ast= "";29 string fcmbfile = ""; 30 30 31 31 char c; … … 39 39 break; 40 40 case 'F' : 41 fcmbf ast= optarg;41 fcmbfile = optarg; 42 42 break; 43 43 case 'h' : … … 52 52 cout<<"k1="<<k1<<" k2="<<k2<<" npt="<<npt<<endl; 53 53 cout<<"h100="<<h100<<" Om0="<<Om0<<" Ob0="<<Ob0<<" Tcmb="<<tcmb<<endl; 54 cout<<"fcmbf ast="<<fcmbfast<<endl;54 cout<<"fcmbfile="<<fcmbfile<<endl; 55 55 56 56 cout<<"TransfertEisenstein with baryon"<<endl; … … 69 69 TransfertEisenstein tfnob(h100,Om0-Ob0,Ob0,tcmb,true); // No baryons 70 70 71 TransfertTabulate tf cmbfast;72 bool cmbf astOK = false;73 if(fcmbf ast.size()>0) {74 cout<<endl<<"TransfertTabulate for C MBfast"<<endl;75 tf cmbfast.ReadCMBFast(fcmbfast,h100,Om0-Ob0,Ob0);76 tf cmbfast.SetInterpTyp(1);77 if(tf cmbfast.NPoints()>0) cmbfastOK = true;71 TransfertTabulate tf_cmbfile; 72 bool cmbfileOK = false; 73 if(fcmbfile.size()>0) { 74 cout<<endl<<"TransfertTabulate for CAMB"<<endl; 75 tf_cmbfile.ReadCAMB(fcmbfile,h100); 76 tf_cmbfile.SetInterpTyp(1); 77 if(tf_cmbfile.NPoints()>0) cmbfileOK = true; 78 78 } 79 79 … … 92 92 xnt[3] = tfnosc2(k); 93 93 xnt[4] = tfnob(k); 94 if(cmbf astOK) xnt[5] = tfcmbfast(k);94 if(cmbfileOK) xnt[5] = tf_cmbfile(k); 95 95 nt.Fill(xnt); 96 96 } … … 107 107 openppf cmvtransf.ppf 108 108 109 set k k 110 set k log10(k) 109 # Eisenstein 110 n/plot nt.t%k t>0&&k>0 ! "nsta connectpoints logx logy" 111 n/plot nt.tnob%k tnob>0&&k>0 ! "nsta red same connectpoints logx logy" 112 n/plot nt.tnosc2%k tnosc2>0&&k>0 ! "nsta blue same connectpoints logx logy" 113 n/plot nt.tnosc1%k tnosc1>0&&k>0 ! "nsta green same connectpoints logx logy" 111 114 112 # Eisenstein 113 n/plot nt.t%$k ! ! "nsta connectpoints" 114 n/plot nt.tnob%$k ! ! "nsta red same connectpoints" 115 n/plot nt.tnosc2%$k ! ! "nsta blue same connectpoints" 116 n/plot nt.tnosc1%$k ! ! "nsta green same connectpoints" 115 n/plot nt.t/tnob%k tnob>0 ! "nsta red connectpoints" 116 n/plot nt.t/tnosc2%k tnosc2>0 ! "nsta blue same connectpoints" 117 n/plot nt.t/tnosc1%k tnosc1>0 ! "nsta green same connectpoints" 117 118 118 n/plot nt.t/tnob%$k tnob>0 ! "nsta red connectpoints" 119 n/plot nt.t /tnosc2%$k tnosc2>0 ! "nsta blue same connectpoints"120 n/plot nt.t /tnosc1%$k tnosc1>0 ! "nsta green same connectpoints"119 # CAMB 120 n/plot nt.t%k t>0&&k>0 ! "nsta connectpoints logx logy" 121 n/plot nt.tcmbf%k tcmbf>0&&k>0 ! "nsta red same connectpoints logx logy" 121 122 122 # CMBFast 123 n/plot nt.t%$k ! ! "nsta connectpoints" 124 n/plot nt.tcmbf%$k ! ! "nsta red same connectpoints" 123 n/plot nt.(tcmbf-t)%k tcmbf>0. ! "nsta connectpoints" 124 n/plot nt.(tcmbf-t)/tcmbf%k tcmbf>0. ! "nsta connectpoints" 125 125 126 n/plot nt. (tcmbf-t)%$k tcmbf>0. ! "nsta connectpoints"127 n/plot nt. (tcmbf-t)/tcmbf%$k tcmbf>0. ! "nsta connectpoints"126 n/plot nt.t/tnosc2%k tnosc2>0&&t>0&&k>0 ! "nsta connectpoints logx logy" 127 n/plot nt.tcmbf/tnosc2%k tnosc2>0&&tcmbf>0&&k>0 ! "nsta connectpoints same red logx logy" 128 128 */
Note:
See TracChangeset
for help on using the changeset viewer.