Changeset 3770 in Sophya for trunk/Cosmo/SimLSS/genefluct3d.h


Ignore:
Timestamp:
May 7, 2010, 7:32:40 PM (15 years ago)
Author:
cmv
Message:

relecture des redshift-distorsion + calcul des spectres, cmv 07/05/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/genefluct3d.h

    r3768 r3770  
    2222#define WITH_FFTW_THREAD
    2323
    24 //NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE ("g++ -DGEN3D_FLOAT ...")
     24//NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE ("g++ -c -DGEN3D_FLOAT ...")
    2525#if defined(GEN3D_FLOAT)
    2626#define GEN3D_TYPE r_4
     
    8585
    8686  // Return |K_i| module relative to pixel indices
    87   inline r_8 Kx(long i) {long ii=(i>Nx_/2)? Nx_-i :i; return ii*Dkx_;}
    88   inline r_8 Ky(long j) {long jj=(j>Ny_/2)? Ny_-j :j; return jj*Dky_;}
     87  inline r_8 AbsKx(long i) {long ii=(i>Nx_/2)? Nx_-i :i; return ii*Dkx_;}
     88  inline r_8 AbsKy(long j) {long jj=(j>Ny_/2)? Ny_-j :j; return jj*Dky_;}
     89  inline r_8 AbsKz(long l) {return l*Dkz_;}
     90  inline r_8 Kx(long i) {long ii=(i>Nx_/2)? i-Nx_ :i; return ii*Dkx_;}
     91  inline r_8 Ky(long j) {long jj=(j>Ny_/2)? j-Ny_ :j; return jj*Dky_;}
    8992  inline r_8 Kz(long l) {return l*Dkz_;}
    9093
     
    109112  double DrefPk(void)
    110113    {return (growth_!=NULL && compute_pk_redsh_ref_>=0.) ? (*growth_)(compute_pk_redsh_ref_): -999.;}
     114  double Href(void) {return h_ref_;}
    111115
    112116  void ComputeFourier0(PkSpectrumZ& pk_at_z);
    113117  void ComputeFourier(PkSpectrumZ& pk_at_z);
    114118  void FilterByPixel(void);
    115   void ToVelTrans(void);
     119  void ToVelLoS(void);
    116120
    117121  void ComputeReal(void);
     
    202206  double redsh_ref_,kredsh_ref_,dred_ref_;
    203207  double compute_pk_redsh_ref_;
    204   double h_ref, loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_;
     208  double h_ref_, loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_;
    205209  double growth_ref_, dsdz_growth_ref_;
    206210  double nu_ref_, dnu_ref_ ;
Note: See TracChangeset for help on using the changeset viewer.