#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, mus and muq, 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, ns and nq 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, double muq0, 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 | nq () const |
Get net charge 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... | |
double | muq () const |
Get the net charge 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 | nq_ |
Net charge 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... | |
double | muq_ |
Net charge chemical potential. More... | |
smash::ThermLatticeNode::ThermLatticeNode | ( | ) |
Default constructor of thermal quantities on the lattice returning thermodynamic quantities in computational frame.
Definition at line 22 of file grandcan_thermalizer.cc.
void smash::ThermLatticeNode::add_particle | ( | const ParticleData & | p, |
double | factor | ||
) |
Add particle contribution to Tmu0, nb, ns and nq 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 35 of file grandcan_thermalizer.cc.
|
inline |
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 42 of file grandcan_thermalizer.cc.
void smash::ThermLatticeNode::set_rest_frame_quantities | ( | double | T0, |
double | mub0, | ||
double | mus0, | ||
double | muq0, | ||
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] | muq0 | Rest frame net charge chemical potential |
[out] | v0 | Velocity of the rest frame |
Definition at line 82 of file grandcan_thermalizer.cc.
|
inline |
|
inline |
Get net baryon density of the cell in the computational frame.
Definition at line 96 of file grandcan_thermalizer.h.
|
inline |
Get net strangeness density of the cell in the computational frame.
Definition at line 98 of file grandcan_thermalizer.h.
|
inline |
Get net charge density of the cell in the computational frame.
Definition at line 100 of file grandcan_thermalizer.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Four-momentum flow of the cell.
Definition at line 118 of file grandcan_thermalizer.h.
|
private |
Net baryon density of the cell in the computational frame.
Definition at line 120 of file grandcan_thermalizer.h.
|
private |
Net strangeness density of the cell in the computational frame.
Definition at line 122 of file grandcan_thermalizer.h.
|
private |
Net charge density of the cell in the computational frame.
Definition at line 124 of file grandcan_thermalizer.h.
|
private |
Energy density in the rest frame.
Definition at line 126 of file grandcan_thermalizer.h.
|
private |
Pressure in the rest frame.
Definition at line 128 of file grandcan_thermalizer.h.
|
private |
Velocity of the rest frame.
Definition at line 130 of file grandcan_thermalizer.h.
|
private |
Temperature.
Definition at line 132 of file grandcan_thermalizer.h.
|
private |
Net baryon chemical potential.
Definition at line 134 of file grandcan_thermalizer.h.
|
private |
Net strangeness chemical potential.
Definition at line 136 of file grandcan_thermalizer.h.
|
private |
Net charge chemical potential.
Definition at line 138 of file grandcan_thermalizer.h.