26 double e, nb, nq,
vx = 0.,
vy = 0.,
vz = 0.;
29 double avv_num = 0., avv_den = 0.;
32 for (
int ix = 0; ix < f->
getNX(); ix++)
33 for (
int iy = 0; iy < f->
getNY(); iy++)
34 for (
int iz = 0; iz < f->
getNZ(); iz++) {
36 double x = f->
getX(ix);
37 double y = f->
getY(iy);
40 double eta1 = fabs(eta) < 1.3 ? 0.0 : fabs(eta) - 1.3;
42 exp(-eta1 * eta1 / 2.1 / 2.1) * (fabs(eta) < 5.3 ? 1.0 : 0.0);
49 avv_num += sqrt(vx * vx +
vy *
vy) *
e;
53 double _p = eos->
p(e, nb, nq, 0.);
54 const double gamma2 = 1.0 / (1.0 - vx * vx - vy * vy -
vz *
vz);
56 ((e + _p) * gamma2 * (cosh(eta) +
vz * sinh(eta)) - _p * cosh(eta));
61 cout <<
"average initial flow = " << avv_num / avv_den << endl;
62 cout <<
"total energy = " << Etotal *f->
getDx() * f->
getDy() * f->
getDz() *