Changeset 3782 in Sophya for trunk/Cosmo


Ignore:
Timestamp:
Jun 7, 2010, 5:57:28 PM (15 years ago)
Author:
cmv
Message:

ajout des spectre NoOsc dans cmvginit3d, cmv 7/6/2010

Location:
trunk/Cosmo/SimLSS
Files:
2 edited

Legend:

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

    r3781 r3782  
    2424void usage(void)
    2525{
    26  cout<<"cmvobserv3d [...options...]"<<endl
     26 cout<<"cmvginit3d [...options...]"<<endl
    2727     <<" -a : auto init random seed (needed for multiple simul)"<<endl
    2828     <<" -G typevol: compute Pk(z=0) and apply growth factor in real space"<<endl
     
    4444     <<"                   temporary save cube in temp_file.ppf"<<endl
    4545     <<" -n nent : fill control ntuple with nent entries (def: do not fill)"<<endl
    46      <<" -O a,b : tell what you want to write (with the -W and -P options)"<<endl
     46     <<" -O a,b : tell what you want to write"<<endl
    4747     <<"      a : write generated fourier cube (_k0)"<<endl
    4848     <<"      b : write real space cube dRho/Rho at z (_r0)"<<endl
    4949     <<"      a,b= 0 no write, 1 ppf write, 2 fits write, 3 ppf+fits write"<<endl
    5050     <<" -S : write cube slices in PPF format"<<endl
    51      <<" -o root_name_out : root string for output file name (def: cmvobserv3d)"<<endl
     51     <<" -o out_base_name : base string for output file name (def: cmvginit3d)"<<endl
    5252     <<" -V : compute variance from real space (for check, default: no)"<<endl
    5353     <<" -T nth : nombre de threads (si compil multi-thread, default: 0)"<<endl
     
    221221
    222222 TransfertEisenstein tf(h100,om0-ob0,ob0,T_CMB_Par,false);
    223  //tf.SetNoOscEnv(2);
     223 TransfertEisenstein tfnos(h100,om0-ob0,ob0,T_CMB_Par,false);
     224   tfnos.SetNoOscEnv(2);
    224225
    225226 GrowthFactor growth(om0,ol0);
     
    229230
    230231 PkSpectrum0 pk0(pkini,tf);
     232 PkSpectrum0 pk0nos(pkini,tfnos);
    231233
    232234 PkSpectrumZ pkz(pk0,growth,zref);
     235 PkSpectrumZ pkznos(pk0nos,growth,zref);
    233236
    234237 //-----------------------------------------------------------------
    235238 pkz.SetZ(0.);
     239 pkznos.SetZ(0.);
    236240 cout<<endl<<"\n--- Compute variance for top-hat R="<<R<<" at z="<<pkz.GetZ()<<endl;
    237241 VarianceSpectrum varpk_th(pkz,R,VarianceSpectrum::TOPHAT);
     
    251255 double normpkz = sigmaR*sigmaR/sr2;
    252256 pkz.SetScale(normpkz);
     257 pkznos.SetScale(normpkz);
    253258 cout<<"Spectrum normalisation = "<<pkz.GetScale()<<endl;
    254259 {
     
    256261 FuncToHisto(pkz,hpkz0,true);
    257262 posobs.PutObject(hpkz0,"hpkz0");
     263 Histo hpkz0nos(hpkz0);
     264 FuncToHisto(pkznos,hpkz0nos,true);
     265 posobs.PutObject(hpkz0nos,"hpkz0nos");
    258266 }
    259267
    260268 pkz.SetZ(zref);
     269 pkznos.SetZ(zref);
    261270 {
    262271 Histo hpkz(lkmin,lkmax,npt); hpkz.ReCenterBin();
    263272 FuncToHisto(pkz,hpkz,true);
    264273 posobs.PutObject(hpkz,"hpkz");
     274 Histo hpkznos(hpkz);
     275 FuncToHisto(pkznos,hpkznos,true);
     276 posobs.PutObject(hpkznos,"hpkznos");
    265277 }
    266278
  • trunk/Cosmo/SimLSS/cmvrvloscor.cc

    r3781 r3782  
    1818#include "geneutils.h"
    1919#include "genefluct3d.h"
    20 // cmvrvloscorf -n 1,30 -K 75 -S ginit3d_6_0p0_100_r.fits ginit3d_6_0p0_100_rv.fits
     20// set simul = 6_0p0_780
     21// cmvrvloscorf -K 75 -S ginit3d_${simul}_r.fits ginit3d_${simul}_rv.fits
     22// cmvrvloscorf -n 1,30 -K 75 -S ginit3d_${simul}_r.fits ginit3d_${simul}_rv.fits
    2123
    2224void usage(void);
     
    309311n/plot hpkrec.val%x x>0 ! "nsta cpts logx"
    310312
    311 # recosntructed 2D power spectrum
     313# reconstructed 2D power spectrum
    312314imag hpkrec2
    313315addoval 0 0 0.05 0.05 "green" false
Note: See TracChangeset for help on using the changeset viewer.