Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Glasma.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Glasma.cc
1
/*******************************************************************************
2
* Copyright (c) The JETSCAPE Collaboration, 2018
3
*
4
* Modular, task-based framework for simulating all aspects of heavy-ion collisions
5
*
6
* For the list of contributors see AUTHORS.
7
*
8
* Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
9
*
10
* or via email to bugs.jetscape@gmail.com
11
*
12
* Distributed under the GNU General Public License 3.0 (GPLv3 or later).
13
* See COPYING for details.
14
******************************************************************************/
15
16
#include <stdio.h>
17
#include <sys/stat.h>
18
19
#include <string>
20
#include <fstream>
21
22
#include "
JetScapeLogger.h
"
23
#include "
JetScapeConstants.h
"
24
#include "
Glasma.h
"
25
26
using
Jetscape::hbarC
;
27
28
// Register the module with the base class
29
RegisterJetScapeModule<Glasma>
Glasma::reg
(
"Glasma"
);
30
31
Glasma::Glasma
() {
32
preequilibrium_status_
=
NOT_STARTED
;
33
SetId
(
"Glasma"
);
34
}
35
36
void
Glasma::EvolvePreequilibrium
() {
37
VERBOSE
(2) <<
"Initialize density profiles in Glasma ..."
;
38
std::string
IPGlasmaFileName =
"epsilon-u-Hydro-t0.4-0.dat"
;
39
VERBOSE
(2) <<
"Read in IPGlasma Tmunu ..."
;
40
const
double
norm
= 0.235;
41
std::ifstream IPGFile(IPGlasmaFileName.c_str());
42
if
(!IPGFile.good()) {
43
Jetscape::JSWARN
<<
"Can not open "
<< IPGlasmaFileName;
44
exit(1);
45
}
46
std::string
tempString;
47
std::getline(IPGFile, tempString);
48
double
dummy
;
49
IPGFile >>
dummy
;
50
while
(!IPGFile.eof()) {
51
double
e_local;
52
double
u
[4];
53
double
pi
[10];
54
IPGFile >> dummy >>
dummy
;
55
IPGFile >> e_local >> u[0] >> u[1] >> u[2] >> u[3];
56
e_
.push_back(norm*e_local*
hbarC
);
57
P_
.push_back(norm*e_local*hbarC/3.);
58
utau_
.push_back(u[0]);
59
ux_
.push_back(u[1]);
60
uy_
.push_back(u[2]);
61
ueta_
.push_back(u[3]);
62
for
(
int
i
= 0;
i
< 10;
i
++) {
63
IPGFile >> pi[
i
];
64
pi[
i
] *= norm*
hbarC
;
65
}
66
pi00_
.push_back(pi[0]);
67
pi01_
.push_back(pi[1]);
68
pi02_
.push_back(pi[2]);
69
pi03_
.push_back(pi[3]);
70
pi11_
.push_back(pi[4]);
71
pi12_
.push_back(pi[5]);
72
pi13_
.push_back(pi[6]);
73
pi22_
.push_back(pi[7]);
74
pi23_
.push_back(pi[8]);
75
pi33_
.push_back(pi[9]);
76
bulk_Pi_
.push_back(0.);
77
IPGFile >>
dummy
;
78
}
79
preequilibrium_status_
=
DONE
;
80
IPGFile.close();
81
}
JETSCAPE
blob
main
src
preequilibrium
Glasma.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:25
using
1.8.2 with
sPHENIX GitHub integration