Play with CAMB/CosmoMC

Slides:



Advertisements
Similar presentations
Observational constraints on primordial perturbations Antony Lewis CITA, Toronto
Advertisements

Cosmological Parameters and the WMAP data Antony Lewis CfA, Harvard / CITA, Toronto Standard assumptions – what are the parameters?
Observational constraints and cosmological parameters
Primordial perturbations and precision cosmology from the Cosmic Microwave Background Antony Lewis CITA, University of Toronto
Data Assimilation Training Course, Reading, 5-14 May 2010 Hands-on derivation of tangent linear and adjoint codes Angela Benedetti with contributions from:
SCIP Optimization Suite
Testing CPT with CMB 李明哲 University of Bielefeld 2008 年 4 月 28 日.
P ROBING SIGNATURES OF MODIFIED GRAVITY MODELS OF DARK ENERGY Shinji Tsujikawa (Tokyo University of Science)
Yashar Akrami Modern Cosmology: Early Universe, CMB and LSS/ Benasque/ August 17, 2012 Postdoctoral Fellow Institute of Theoretical Astrophysics University.
CMB but also Dark Energy Carlo Baccigalupi, Francesca Perrotta.
Parameterizing Dark Energy Z. Huang, R. J. Bond, L. Kofman Canadian Institute of Theoretical Astrophysics.
Non-linear matter power spectrum to 1% accuracy between dynamical dark energy models Matt Francis University of Sydney Geraint Lewis (University of Sydney)
Quintessence and the Accelerating Universe
Álvaro de la Cruz-Dombriz Theoretical Physics Department Complutense University of Madrid in collaboration with Antonio L. Maroto & Antonio Dobado Different.
Spherical Collapse in Chameleon Models Rogerio Rosenfeld Rogerio Rosenfeld Instituto de Física Teórica Instituto de Física Teórica UNESP UNESP 2nd Bethe.
Lecture 2: Observational constraints on dark energy Shinji Tsujikawa (Tokyo University of Science)
Dark Energy Perturbations 李明哲 南京大学物理学院 中国科技大学交叉学科理论研究中心 合肥.
Physics 133: Extragalactic Astronomy ad Cosmology Lecture 6; January
Voids of dark energy Irit Maor Case Western Reserve University With Sourish Dutta PRD 75, gr-qc/ Irit Maor Case Western Reserve University With.
ME451 Kinematics and Dynamics of Machine Systems Newton-Raphson Method October 04, 2013 Radu Serban University of Wisconsin-Madison.
Asymptotic Techniques
Non-Gaussianities of Single Field Inflation with Non-minimal Coupling Taotao Qiu Based on paper: arXiv: [Hep-th] (collaborated with.
Lecture No.01 Data Structures Dr. Sohail Aslam
Effective field theory approach to modified gravity with applications to inflation and dark energy Shinji Tsujikawa Hot Topics in General Relativity And.
Self – accelerating universe from nonlinear massive gravity Chunshan Lin Kavli
Chaplygin gas in decelerating DGP gravity Matts Roos University of Helsinki Department of Physics and and Department of Astronomy 43rd Rencontres de Moriond,
Large distance modification of gravity and dark energy
Dark Energy and Modified Gravity IGC Penn State May 2008 Roy Maartens ICG Portsmouth R Caldwell.
Modified (dark) gravity Roy Maartens, Portsmouth or Dark Gravity?
BRANEWORLD COSMOLOGICAL PERTURBATIONS
Jochen Weller Benasque August, 2006 Constraining Inverse Curvature Gravity with Supernovae O. Mena, J. Santiago and JW PRL, 96, , 2006.
Kazuya Koyama University of Portsmouth Non-linear structure formation in modified gravity models.
The Theory/Observation connection lecture 1 the standard model Will Percival The University of Portsmouth.
Lecture 22 MA471 Fall Advection Equation Recall the 2D advection equation: We will use a Runge-Kutta time integrator and spectral representation.
Academic Training Lectures Rocky Kolb Fermilab, University of Chicago, & CERN Cosmology and the origin of structure Rocky I : The universe observed Rocky.
Quintom Cosmology Tao-Tao Qiu & Yi-Fu Cai, IHEP (邱涛涛、蔡一夫, 中科院高能所) ( “ 精灵 ” 宇宙学)
Roberto Dale 1,3 & Diego Sáez 2,4 1 Departament d’estadística, matemàtiques i informàtica, Universitat Miguel Hernández, 03202, Elx, Alacant, Espanya 2.
Matlab Basics Tutorial. Vectors Let's start off by creating something simple, like a vector. Enter each element of the vector (separated by a space) between.
MAE 555 Non-equilibrium Gas Dynamics Guest lecturer Harvey S. H. Lam November 16, 2010 On Computational Singular Perturbation.
1 1 Eric Linder University of California, Berkeley Lawrence Berkeley National Lab Interpreting Dark Energy JDEM constraints.
Documentation: What we might do in an ideal world Ian McCrea.
The Theory/Observation connection lecture 2 perturbations Will Percival The University of Portsmouth.
Adam Amara, Thomas Kitching, Anais Rassat, Alexandre Refregier.
Michael Doran Institute for Theoretical Physics Universität Heidelberg Time Evolution of Dark Energy (if any …)
General Relativity Physics Honours 2008 A/Prof. Geraint F. Lewis Rm 560, A29 Lecture Notes 10.
 Acceleration of Universe  Background level  Evolution of expansion: H(a), w(a)  degeneracy: DE & MG  Perturbation level  Evolution of inhomogeneity:
The dark side of the Universe: dark energy and dark matter Harutyun Khachatryan Center for Cosmology and Astrophysics.
ERE 2008September 15-19, Spanish Relativity Meeting 2008, Salamanca, September (2008) Avoiding the DARK ENERGY coincidence problem with a COSMIC.
Jochen Weller XLI Recontres de Moriond March, 18-25, 2006 Constraining Inverse Curvature Gravity with Supernovae O. Mena, J. Santiago and JW PRL, 96, ,
Three theoretical issues in physical cosmology I. Nonlinear clustering II. Dark matter III. Dark energy J. Hwang (KNU), H. Noh (KASI)
GRAVITON BACKREACTION & COSMOLOGICAL CONSTANT
1 1 Dark Energy with SNAP and other Next Generation Probes Eric Linder Berkeley Lab.
Determining cosmological parameters with the latest observational data Hong Li TPCSF/IHEP
MEASUREING BIAS FROM UNBIASED OBSERVABLE SEOKCHEON LEE (KIAS) The 50 th Workshop on Gravitation and Numerical INJE Univ.
@ 2012 Miniworkshop for String theory and Cosmology Dec. 01st Seokcheon Lee (KIAS)
Kazuya Koyama University of Portsmouth Non-linear structure formation in modified gravity models with Gong-bo Zhao (Portsmouth), Baojiu Li (Durham)
Spherical Collapse and the Mass Function – Chameleon Dark Energy Stephen Appleby, APCTP-TUS dark energy workshop 5 th June, 2014 M. Kopp, S.A.A, I. Achitouv,
Parameterized post-Friedmann framework for interacting dark energy
INDUCED COSMOLOGY ON A CODIMENSION-2 BRANE IN A CONICAL BULK
Observational Constraints on the Running Vacuum Model
Long distance modifications of gravity in four dimensions.
Recent status of dark energy and beyond
Searching for modified growth patterns with tomographic surveys
Observational Constraints on Viable f(R) Gravity Models
Stealth Acceleration and Modified Gravity
Shintaro Nakamura (Tokyo University of Science)
Probing the Dark Sector
Ignacy Sawicki CEICO, Institute of Physics, Prague
Pedro G. Ferreira University of Oxford
Determining cosmological parameters with current observational data
Presentation transcript:

Play with CAMB/CosmoMC April 11, 2017 Play with CAMB/CosmoMC Gong-Bo Zhao ICG, Portsmouth May, 2010 ICG PhD lectures

Why CAMB/CosmoMC? Very efficient April 11, 2017 Why CAMB/CosmoMC? Very efficient Well-structured (modulised) -- easy to tweak and hack Well-supported – cosmocoffee.info Popular – mainstream numeric tool in cosmology ICG PhD lectures May, 2010 ICG PhD lectures

This 4.5-hr course is to … Show you how to run CAMB/CosmoMC April 11, 2017 This 4.5-hr course is to … Show you how to run CAMB/CosmoMC Link CAMB equations to Ma&Bertschinger ‘96 Show several useful examples of hacking CAMB -- dynamical dark energy, modified gravity Guide you how to modify CAMB/CosmoMC for your own research purpose Show you useful numerical tricks extensively used in CAMB ICG PhD lectures May, 2010 ICG PhD lectures

Theory (see Kazuya, Rob and Cyril’s lectures) April 11, 2017 This course is not on … Theory (see Kazuya, Rob and Cyril’s lectures) Fortran programming (See Numerical Recipe) ICG PhD lectures May, 2010 ICG PhD lectures

April 11, 2017 Warming-ups Download, compile and run CAMB camb.info make clean; make all ./camb params.ini Change model parameters in params.ini and make CMB, P(k) plots change cosmo. params add neutrinos do CMB lensing do vector and tensor modes compare with Wayne Hu’s plots at http://background.uchicago.edu/~whu/metaanim.html ICG PhD lectures May, 2010 ICG PhD lectures

Look into the code… Analyze the code using “understand for fortran” http://www.scitools.com/download/ (choose the free 15-day trial version)

Structure of CAMB Messy? Not really!! ICG PhD lectures May, 2010

Structure of CAMB preparation core output results ICG PhD lectures May, 2010

Structure of CAMB_GetResults ICG PhD lectures May, 2010

Structure of CMBmain ICG PhD lectures May, 2010

Structure of CMBmain ICG PhD lectures May, 2010

CAMB language A,B,C ICG PhD lectures May, 2010

CAMB vs. M+B ’96 astro-ph/9506072 Constraint equations (algebraic) Differential equations to evolve in CAMB Constraint equations (algebraic) 

Hacking 1: Dynamical DE Task: Default CAMB only works for constant w. Modify it to implement the CPL parametrisa-tion, i.e. w(a)=w0+wa(1-a) and calculate the luminosity distance, CMB and P(k) for a model of {-1.5, +(-)0.4}. Compare your spectra with that of the LCDM model. ICG PhD lectures May, 2010

Start the game! Spot the dark energy stuff in CAMB We need w(a), dw/da, Int {[1+w(a)]dlna} Files to hack: equations.f90, inidriver.F90 Subroutine/functions to hack: dtauda, fderivs, output Change the background and the DE perturbation equations!! ICG PhD lectures May, 2010

Background evolution For constant w (default CAMB) grhoa2=grhoa2+grhov*a2**2 For functional w (hacked) grhoa2=grhoa2+grhov*Funcofw(a,..)*a2 ICG PhD lectures May, 2010

function Funcofw(a,deriv) implicit none real(dl) a, Funcofw, a0 real(dl) w0, wa integer deriv if (a .lt. 1.d-8) then a0 = 1.d-8 else a0 = a end if if (deriv==0) then Funcofw = w0+wa*(1.d0-a0) else if (deriv ==1) then Funcofw = -wa*a0 else if (deriv ==2) then Funcofw = a0**(2.d0 - 3.d0*(1.d0+w0+wa))*exp(3.d0*wa*(a0-1.d0)) end function Funcofw ICG PhD lectures May, 2010

Output m open(unit=50,file=‘dL_SN.dat’) do i=1, 1000 In inidriver.F90 open(unit=50,file=‘dL_SN.dat’) do i=1, 1000 zz(i)=1.7d0+dble(i-1)/dble(1000-1) write(50,'(100e15.6)') zz(i), 5*log10((1+zz(i)) & **2*AngularDiameterDistance(zz(i)))+25 end do close(50) ICG PhD lectures May, 2010

DE perturbation equations ayprime(EV%w_ix)= -3*adotoa*(cs2_lam-Funcofw(a,0))*(clxq+3*adotoa*& (1+Funcofw(a,0))*vq/k) -(1+Funcofw(a,0))*k*vq -& (1+Funcofw(a,0))*k*z -3*adotoa*adotoa*Funcofw(a,1)*vq/k ayprime(EV%w_ix+1) = -adotoa*(1-3*cs2_lam)*vq + k*cs2_lam*clxq/(1+Funcofw(a,0)) ICG PhD lectures May, 2010

ICG PhD lectures May, 2010

Output Dark Energy perturbation dDE(h), vDE(h) at k=10-3 Mpc-1 Note that in CAMB language dDE = y(EV%w_ix) vDE = y(EV%w_ix+1) Uncomment the stuff in cmbmain.f90, EV%q=1.d-3; EV%q2=EV%q**2 tol1=tol/exp(AccuracyBoost-1) do j=1,6000 tauend = taustart * exp(j/6000._dl*log(CP%tau0/taustart)) call GaugeInterface_EvolveScal(EV,tau,y,tauend,tol1,ind,c,w) write (*,’(4E15.5)') tauend,1/y(1)-1, y(EV%w_ix) ,y(EV%w_ix+1) end do stop ICG PhD lectures May, 2010

Weller and Lewis, 2003

Singularity?! Output CMB Cl’s for the model w0=-1.5, wa=+1.0 to see what happens. This singularity stems from the fact that w crosses -1. Technically, it’s due to the term of dw/dz/(1+w). No-Go Theorem: The w for single fluid (scalar field) cannot cross -1 in GR! For proof, see Appendix of astro- ph/0703202. Solution: astro-ph/0507482 (quintom scenario), or arXiv:0808.3125 (PPF implementation) ICG PhD lectures May, 2010

ICG PhD lectures May, 2010

ICG PhD lectures May, 2010

Generalize our hacked code to make it work for an arbitrary w(z). One further step? Generalize our hacked code to make it work for an arbitrary w(z). Leave it to you guys to play with it for fun!!

Hacking 2: TO BE OR NOT TO BE Hacking 2: TO BE OR NOT TO BE ?? -- MODIFY CAMB TO WORK IN MODIFIED GRAVITY Task Default CAMB only works in GR. Modify it to implement MG. Reproduce the plots on my website. http://userweb.port.ac.uk/~zhaog/MGCAMB.html ICG PhD lectures May, 2010

Universe is Accelerating Dark Matter Atoms Scalar-tensor gravity (e.g. Chameleon, f(R)…) DGP, Degravitation … Indistinguishable at the background level Need to study the structure growth to break the degeneracy UK COSMOS, 11/18/2009

Modified Gravity Linear perturbation in FRW universe General Relativity UK COSMOS, 11/18/2009

What to do technically? Given m(a,k) and g(a,k), we need to solve k2F = -m(a,k) 4pG a2rD F/Y = g(a,k) in the synchronous gauge, which is used in CAMB. Note that ICG PhD lectures May, 2010

Finally, we have (for details, see Appendix of 0809.3791), So we have Finally, we have (for details, see Appendix of 0809.3791), ICG PhD lectures May, 2010

In MG, we need to evolve d and a, and get h from constraint equations. Note that in default CAMB, d (overdensity for different species) and h (metric perturbation in synchronous gauge) are actually evolved, and other Einstein equations are used as constraint equations (see this slide). In MG, we need to evolve d and a, and get h from constraint equations. To add one more variable to evolve in CAMB, we need to define it, set initial condition for it, and change fderivs and output properly. See how to modify the code in the lecture. ICG PhD lectures May, 2010

ICG PhD lectures May, 2010

ICG PhD lectures May, 2010

Fit your own parameters using CosmoMC CosmoMC fits your model parameters to data by exploring the parameter space in a smart way (Metropolis-Hastings algorithm). It calls CAMB to calculate the theoretical spectra of a model, and compare to data. ICG PhD lectures May, 2010

How to add your own parameter to CosmoMC? Tell CosmoMC your parameters’ names in CMB_Cls_simple.f90 Define them in cmbtype.f90 Map them in params_CMB.f90 Change the # of parameters in settings.f90 Done!! See the example in the lecture!! ICG PhD lectures May, 2010

Astro-ph/0511625 ICG PhD lectures May, 2010

Useful references Camb.info; cosmologist.info/cosmomc/ Cosmocoffee.info M+B: astro-ph/9506072 Jussi’s ICG lectures: www.icg.port.ac.uk/~valiviij/ Numerical Recipe: www.nr.com Plotting software: OriginPro, Matlab, IDL, gnuplot ICG PhD lectures May, 2010

Have fun!! ICG PhD lectures May, 2010