Skip to content

Commit 1024579

Browse files
authored
Merge pull request #28 from MUSIC-fluid/afrid_fix
Modifying Energy and Baryon density functions to get the correct normalization
2 parents d4f5def + a6ea254 commit 1024579

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/hydro_source_TATB.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ void HydroSourceTATB::get_hydro_energy_source(
264264
eta_profile_plateau(eta_s, eta0, DATA_.eta_fall_off);
265265
*/
266266
double M =
267-
TA * TA + TB * TB + 2 * TA * TB * Util::m_N * cosh2Ybeam_; // [1/fm^4]
268-
267+
Util::m_N
268+
* std::sqrt(TA * TA + TB * TB + 2.0 * TA * TB * std::cosh(2.0 * ybeam_))
269+
/ (Util::hbarc);
269270
/*
270271
double E_norm =
271272
tau_source
@@ -276,13 +277,14 @@ void HydroSourceTATB::get_hydro_energy_source(
276277
// double E_norm = tau_source*energy_eta_profile_normalisation_numerical(
277278
// y_CM, eta0, DATA_.eta_fall_off);
278279
// double epsilon = M_inv * eta_envelop / E_norm / dtau; // [1/fm^5]
279-
double tilted_epsilon = pow(TA, f_plus) * pow(TB, f_minus);
280+
double tilted_epsilon = eta_profile_plateau(eta_s, eta0_, sigma_eta_)
281+
* pow(TA, f_plus) * pow(TB, f_minus);
280282
double shifted_epsilon =
281283
eta_profile_plateau(eta_s - (y_CM - y_L), eta0_, sigma_eta_);
282-
double tilted_norm = tau_source
283-
* energy_eta_profile_normalisation_tilted(
284-
TA, TB, eta0_, eta_m_, sigma_eta_, y_CM, M, y_L);
285-
double shifted_norm = tau_source * M / C_eta_;
284+
double tilted_norm = energy_eta_profile_normalisation_tilted(
285+
TA, TB, eta0_, eta_m_, sigma_eta_, y_CM, M, y_L)
286+
/ tau_source;
287+
double shifted_norm = M / C_eta_ / tau_source;
286288

287289
double epsilon = (beta_ * tilted_epsilon * tilted_norm
288290
+ (1. - beta_) * shifted_epsilon * shifted_norm)
@@ -323,6 +325,7 @@ double HydroSourceTATB::get_hydro_rhob_source(
323325
*/
324326
res = norm_B * (1 - omega) * (TA * eta_rhob_plus + TB * eta_rhob_minus)
325327
+ norm_B_prime * omega * TA * TB * (eta_rhob_plus + eta_rhob_minus);
328+
res /= gridDtau_;
326329
return (res);
327330
}
328331
/*
@@ -343,7 +346,7 @@ double HydroSourceTATB::eta_rhob_left_factor(const double eta) const {
343346
*/
344347

345348
double HydroSourceTATB::eta_rhob_left_factor(const double eta) const {
346-
double eta_0_nB = -std::abs(DATA_.eta_rhob_0);
349+
double eta_0_nB = std::abs(DATA_.eta_rhob_0);
347350
double sigma_B_plus = DATA_.eta_rhob_width_1;
348351
double sigma_B_minus = DATA_.eta_rhob_width_2;
349352

0 commit comments

Comments
 (0)