#include <grandcan_thermalizer.h>
The ThermLatticeNode class is intended to compute thermodynamical quantities in a cell given a set of particles.
It accumulates the upper row of the energy-momentum tensor \( T^{\mu 0}\), net baryon density nb and net strangeness densities in the computational frame. From these quantities it allows to compute the local rest frame quantites: temperature T, chemical potentials mub and mus, the velocity of the local rest frame with respect to the computational frame.
An example of the intended use is:
ThermLatticeNode node; for (const ParticleData &particle: some_particles_list) { const double some_smearing_factor = ...; node.add_particle(particle, some_smearing_factor); } HadronGasEos eos = HadronGasEos(false); node.compute_rest_frame_quantities(eos);
Note that before calling the compute_rest_frame_quantities T, mu, p and e are set to zero.
Definition at line 48 of file grandcan_thermalizer.h.
Public Member Functions | |
ThermLatticeNode () | |
Default constructor of thermal quantities on the lattice returning thermodynamic quantities in computational frame. More... | |
void | add_particle (const ParticleData &p, double factor) |
Add particle contribution to Tmu0, nb and ns May look like unused at first glance, but it is actually used by update_lattice, where the node type of the lattice is templated. More... | |
void | add_particle_for_derivatives (const ParticleData &, double, ThreeVector) |
dummy function for update_lattice More... | |
void | compute_rest_frame_quantities (HadronGasEos &eos) |
Temperature, chemical potentials and rest frame velocity are calculated given the hadron gas equation of state object. More... | |
void | set_rest_frame_quantities (double T0, double mub0, double mus0, const ThreeVector v0) |
Set all the rest frame quantities to some values, this is useful for testing. More... | |
FourVector | Tmu0 () const |
Get Four-momentum flow of the cell. More... | |
double | nb () const |
Get net baryon density of the cell in the computational frame. More... | |
double | ns () const |
Get net strangeness density of the cell in the computational frame. More... | |
double | e () const |
Get energy density in the rest frame. More... | |
double | p () const |
Get pressure in the rest frame. More... | |
ThreeVector | v () const |
Get 3-velocity of the rest frame. More... | |
double | T () const |
Get the temperature. More... | |
double | mub () const |
Get the net baryon chemical potential. More... | |
double | mus () const |
Get the net strangeness chemical potential. More... | |
Private Attributes | |
FourVector | Tmu0_ |
Four-momentum flow of the cell. More... | |
double | nb_ |
Net baryon density of the cell in the computational frame. More... | |
double | ns_ |
Net strangeness density of the cell in the computational frame. More... | |
double | e_ |
Energy density in the rest frame. More... | |
double | p_ |
Pressure in the rest frame. More... | |
ThreeVector | v_ |
Velocity of the rest frame. More... | |
double | T_ |
Temperature. More... | |
double | mub_ |
Net baryon chemical potential. More... | |
double | mus_ |
Net strangeness chemical potential. More... | |
smash::ThermLatticeNode::ThermLatticeNode | ( | ) |
Default constructor of thermal quantities on the lattice returning thermodynamic quantities in computational frame.
Definition at line 23 of file grandcan_thermalizer.cc.
void smash::ThermLatticeNode::add_particle | ( | const ParticleData & | p, |
double | factor | ||
) |
Add particle contribution to Tmu0, nb and ns May look like unused at first glance, but it is actually used by update_lattice, where the node type of the lattice is templated.
Definition at line 34 of file grandcan_thermalizer.cc.
|
inline |
dummy function for update_lattice
Definition at line 67 of file grandcan_thermalizer.h.
void smash::ThermLatticeNode::compute_rest_frame_quantities | ( | HadronGasEos & | eos | ) |
Temperature, chemical potentials and rest frame velocity are calculated given the hadron gas equation of state object.
[in] | eos |
Definition at line 40 of file grandcan_thermalizer.cc.
void smash::ThermLatticeNode::set_rest_frame_quantities | ( | double | T0, |
double | mub0, | ||
double | mus0, | ||
const ThreeVector | v0 | ||
) |
Set all the rest frame quantities to some values, this is useful for testing.
[out] | T0 | Rest frame temperature |
[out] | mub0 | Rest frame net baryon chemical potential |
[out] | mus0 | Rest frame net strangeness chemical potential |
[out] | v0 | Velocity of the rest frame |
Definition at line 77 of file grandcan_thermalizer.cc.
|
inline |
Get Four-momentum flow of the cell.
Definition at line 92 of file grandcan_thermalizer.h.
|
inline |
Get net baryon density of the cell in the computational frame.
Definition at line 94 of file grandcan_thermalizer.h.
|
inline |
Get net strangeness density of the cell in the computational frame.
Definition at line 96 of file grandcan_thermalizer.h.
|
inline |
Get energy density in the rest frame.
Definition at line 98 of file grandcan_thermalizer.h.
|
inline |
Get pressure in the rest frame.
Definition at line 100 of file grandcan_thermalizer.h.
|
inline |
Get 3-velocity of the rest frame.
Definition at line 102 of file grandcan_thermalizer.h.
|
inline |
Get the temperature.
Definition at line 104 of file grandcan_thermalizer.h.
|
inline |
Get the net baryon chemical potential.
Definition at line 106 of file grandcan_thermalizer.h.
|
inline |
Get the net strangeness chemical potential.
Definition at line 108 of file grandcan_thermalizer.h.
|
private |
Four-momentum flow of the cell.
Definition at line 112 of file grandcan_thermalizer.h.
|
private |
Net baryon density of the cell in the computational frame.
Definition at line 114 of file grandcan_thermalizer.h.
|
private |
Net strangeness density of the cell in the computational frame.
Definition at line 116 of file grandcan_thermalizer.h.
|
private |
Energy density in the rest frame.
Definition at line 118 of file grandcan_thermalizer.h.
|
private |
Pressure in the rest frame.
Definition at line 120 of file grandcan_thermalizer.h.
|
private |
Velocity of the rest frame.
Definition at line 122 of file grandcan_thermalizer.h.
|
private |
Temperature.
Definition at line 124 of file grandcan_thermalizer.h.
|
private |
Net baryon chemical potential.
Definition at line 126 of file grandcan_thermalizer.h.
|
private |
Net strangeness chemical potential.
Definition at line 128 of file grandcan_thermalizer.h.