Ren hirayama/spectral function sampling - #66
Conversation
bb9a17a to
b9ba0a2
Compare
|
Renan maybe we wait with this until Lucas does the changes I was talking about? Because I do not know if it would be a simple rebase etc. Function signatures should change. Please take a look at my comments in the channel. |
|
Sure, i intend to wait for the reviews anyway |
|
@RenHirayama Please also update the CHANGELOG with these changes. |
|
Renan is this now on top (~rebased or something similar) of the branch "Analytical_deltaN_bulk" ? |
|
Another thing: do you intend to publish those results somehow? If you do, the best way to preserve the knowleedge would be to document the formulas along with their derivations in a publication. Otherwise, the understanding what you've implemented will likely be lost in time, also for potential users. |
not yet, I will wait for the merge to avoid possible annoying conflicts
It will enter the dilepton calculations in the hybrid, and I think it should be (at least partially) in the paper. Nonetheless I already have the PDF there, we just need to figure out as a group where to put such things. |
b9ba0a2 to
bf57979
Compare
|
What is missing currently is including the spectral function integration to the bulk corrections in gen.cpp. @LucasConstantin and I agreed that the most straightforward way to do this is creating a second table when bulk corrections are active. |
|
Hi Renan - I went through your changes (as usual, I am not looking into the contents of the tests/ ). |
you're right, when getting the code from the old branch I forgot it. I am at the airport right now so I don't want to start changing the code, but line 365 of gen.cpp (I think, from looking in github) should be enough. Sampling from the unbounded spectral function then constructing the 4-momentum suffices because of the rejection algorithm, from what we discussed back in May/June. I don't know how much it would change by constructing a more realistic EoS but I don't think we will pursue it (will think more) |
|
Once you are settled and start your work, we should discuss this. I am not trying to guess anything now, it won't make sense. So let me know once you will be ready for a discussion about it. |
This implements the modes to sample from a spectral function, based on what I derived here: CooperFrye_w_SF.pdf
The partial densities need to be integrated over mass, using the spectral function as a weight. Since calculating this "live" would be costly, I chose to tabulate it instead. The available new modes are accessible with the key
spectral_function, which can have the valuespole-mass,breit-wigner, andfull-vacuum. The first one is the default, maintaining the original behavior, the second one uses a relativistic BW with constant width, and the last uses the full SMASH spectral functions that are based on the Manley formalism.The tests have a relative tolerance of 1%, which I find acceptable. Also included is a test that only prints the individual densities, which might be handy. For$T=140 \mathrm{MeV}$ , it results in (isospin symmetric since there is no $\mu_Q$ )
I was a bit surprised with the Breit-Wigner density being much larger, but it makes sense when we consider that the spectral function is non-zero at the mass threshold:
Since I branched off @LucasConstantin's viscous corrections branch, I will either wait for his merge to develop or merge directly to his branch, whatever is less messy.