Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trancoeff.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file trancoeff.cpp
1 #include "trancoeff.h"
2 #include "eos.h"
3 #include "inc.h"
4 
5 TransportCoeff::TransportCoeff(double _etaS, double _zetaS, EoS *_eos)
6 {
7  etaS = _etaS ;
8  zetaS = _zetaS ;
9  eos = _eos ;
10 }
11 
12 void TransportCoeff::getEta(double e, double T, double &_etaS, double &_zetaS)
13 {
14  _etaS = etaS ;
15  _zetaS=zetaS*(1./3.-eos->cs2(e))/(exp((0.16-T)/0.001)+1.) ;
16 }
17 
18 
19 void TransportCoeff::getTau(double T, double &_taupi, double &_tauPi)
20 {
21  if(T>0.) _taupi=std::max(3.0/5.068*etaS/T,0.003) ; else _taupi=0.1 ;
22  //if(T>0.) _tauPi=std::max(3.0/5.068*(1./4./C_PI)/T,0.005) ; else _tauPi=0.1 ;
23  _tauPi = 0.1 ; // for I-S analytical solution
24 }