CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

CAMB: Forcing code to use same Neutrino Boltzmann Equations for all Tau
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Benjamin Horowitz



Joined: 28 Oct 2016
Posts: 3
Affiliation: UC Berkeley

PostPosted: October 28 2016  Reply with quote

I'm having a hard time getting some Boltzmann equations that worked in CLASS working in CAMB. My equations should be valid for all tau and shouldn't be subject to the "switches" that are found in the equations.f90. However, whenever I try to deactive switches the behavior becomes very unpredictable (I assume due to the ways ayprime is indexed).

Is there a nice way to just use the equation from lines 2263−2302 from equations.f90 for the entire evolution without having it switch back and forth from various approximations?
Back to top
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 1272
Affiliation: University of Sussex

PostPosted: October 28 2016  Reply with quote

You can set massive_nu_approx=0. However it will still do switches between relativistic regime; to turn off that you'd have to do something like edit the GetNumEqns ( you want nq equal to nqmax I think, but may need further changes).
Back to top
View user's profile [ Hidden ] Visit poster's website
Benjamin Horowitz



Joined: 28 Oct 2016
Posts: 3
Affiliation: UC Berkeley

PostPosted: October 29 2016  Reply with quote

Great, got it to work!

For all those coming across this in the future; it seems like forcing EV%nq(nu_i)=nqmax, EV%nu_nonrelativistic(nu_i) = .true. , and manually overriding the "Massless neutrino equations of motion"-part of the derivs subroutine had the correct effect.
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.