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


Ignore:
Timestamp:
May 3, 2010, 4:08:34 PM (15 years ago)
Author:
cmv
Message:
  • refonte du code pour creer uniquement des conditions initiales
  • introduction du tirage des vitesse LOS pour les redshift-distortion

cmv 03/05/2010

File:
1 edited

Legend:

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

    r3662 r3768  
    1818#include "cosmocalc.h"
    1919#include "pkspectrum.h"
     20#include "schechter.h"
    2021
    2122#define WITH_FFTW_THREAD
    2223
    23 //NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE #define GEN3D_FLOAT
    24 
     24//NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE ("g++ -DGEN3D_FLOAT ...")
    2525#if defined(GEN3D_FLOAT)
    2626#define GEN3D_TYPE r_4
     
    7777  vector<long> GetNpix(void) {return N_;}
    7878  int_8 NPix(void) {return NRtot_;}
    79   long GetNx(void) {return Nx_;}
    80   long GetNy(void) {return Ny_;}
    81   long GetNz(void) {return Nz_;}
     79  long Nx(void) {return Nx_;}
     80  long Ny(void) {return Ny_;}
     81  long Nz(void) {return Nz_;}
     82  double Dx(void) {return Dx_;}
     83  double Dy(void) {return Dy_;}
     84  double Dz(void) {return Dz_;}
    8285
    8386  // Return |K_i| module relative to pixel indices
     
    101104  double GetKTincMax(void) {return max(Dk_[0],Dk_[1]);}
    102105
    103   void ComputeFourier0(GenericFunc& pk_at_z);
    104   void ComputeFourier(GenericFunc& pk_at_z);
     106  double Zref(void) {return redsh_ref_;}
     107  double ZrefPk(void) {return compute_pk_redsh_ref_;}
     108  double Dref(void) {return growth_ref_;}
     109  double DrefPk(void)
     110    {return (growth_!=NULL && compute_pk_redsh_ref_>=0.) ? (*growth_)(compute_pk_redsh_ref_): -999.;}
     111
     112  void ComputeFourier0(PkSpectrumZ& pk_at_z);
     113  void ComputeFourier(PkSpectrumZ& pk_at_z);
    105114  void FilterByPixel(void);
     115  void ToVelTrans(void);
    106116
    107117  void ComputeReal(void);
    108118  void ApplyGrowthFactor(int type_evol=1);
     119  void ApplyDerGrowthFactor(int type_evol=1);
    109120
    110121  void ReComputeFourier(void);
     
    188199  CosmoCalc *cosmo_;
    189200  GrowthFactor *growth_;
     201  double good_dzinc_;
    190202  double redsh_ref_,kredsh_ref_,dred_ref_;
    191   double loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_;
     203  double compute_pk_redsh_ref_;
     204  double h_ref, loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_;
     205  double growth_ref_, dsdz_growth_ref_;
    192206  double nu_ref_, dnu_ref_ ;
    193207  double xobs_[3];
     208
    194209  double loscom_min_, loscom_max_;
    195210  vector<double> zred_, loscom_;
     
    197212  vector<double> loscom2zred_;
    198213
     214  double zredmin_dpsd_, zredmax_dpsd_;
     215  vector<double> dpsdfrzred_;
     216
    199217};
    200218
Note: See TracChangeset for help on using the changeset viewer.