Skip to content

Commit db0ac8f

Browse files
committed
use a different class name from the one in MUSIC
1 parent 31c9022 commit db0ac8f

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

src/FSSW.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class FSSW {
9898
double **deltaf_bulk_coeff_14mom_c1_tb_;
9999
double **deltaf_bulk_coeff_14mom_c2_tb_;
100100

101-
EOS_4D eos_4d_;
101+
EOS_4D_foriSS eos_4d_;
102102

103103
// table parameter for bulk deltaf coefficient CE for NEOS BQS
104104
int deltaf_coeff_NEOSBQS_table_length_e_;

src/eos_4D_foriSS.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
using std::stringstream;
1111
using std::string;
1212

13-
EOS_4D::EOS_4D() {}
13+
EOS_4D_foriSS::EOS_4D_foriSS() {}
1414

1515

16-
EOS_4D::~EOS_4D() {}
16+
EOS_4D_foriSS::~EOS_4D_foriSS() {}
1717

1818

19-
void EOS_4D::get_eos_max_values() {
19+
void EOS_4D_foriSS::get_eos_max_values() {
2020
T_tilde_max = Ttilde0 + (N_T - 1)*dTtilde;
2121
mub_tilde_max = mubtilde0 + (N_mub - 1)*dmubtilde;
2222
muq_tilde_max = muqtilde0 + (N_muq - 1)*dmuqtilde;
2323
mus_tilde_max = mustilde0 + (N_mus - 1)*dmustilde;
2424
}
2525

2626

27-
void EOS_4D::read_header_binary(std::string filepath, int header_size) {
27+
void EOS_4D_foriSS::read_header_binary(std::string filepath, int header_size) {
2828
std::ifstream ifs(filepath, std::ios::in | std::ios::binary);
2929
if (!ifs.is_open()) {
3030
messenger << "Can not open EOS files: "<< filepath;
@@ -42,7 +42,7 @@ void EOS_4D::read_header_binary(std::string filepath, int header_size) {
4242
}
4343

4444

45-
void EOS_4D::read_eos_binary(std::string filepath,
45+
void EOS_4D_foriSS::read_eos_binary(std::string filepath,
4646
std::vector<float> &out, int header_size) {
4747
std::ifstream eos_binary_file(filepath, std::ios::in | std::ios::binary);
4848

@@ -65,7 +65,7 @@ void EOS_4D::read_eos_binary(std::string filepath,
6565
}
6666

6767

68-
void EOS_4D::read_dfCoeffs_binary(std::string filepath, const int dfType) {
68+
void EOS_4D_foriSS::read_dfCoeffs_binary(std::string filepath, const int dfType) {
6969
dfCoeffs_.clear();
7070
std::ifstream df_binary_file(filepath, std::ios::in | std::ios::binary);
7171

@@ -91,12 +91,12 @@ void EOS_4D::read_dfCoeffs_binary(std::string filepath, const int dfType) {
9191
}
9292

9393

94-
int EOS_4D::index(int i_T, int i_mub, int i_muq, int i_mus) const {
94+
int EOS_4D_foriSS::index(int i_T, int i_mub, int i_muq, int i_mus) const {
9595
int idx = ((i_T*N_mus + i_mus)*N_muq + i_muq)*N_mub + i_mub;
9696
return(idx);
9797
}
9898

99-
void EOS_4D::FourDLInterp(const std::vector<float> &data,
99+
void EOS_4D_foriSS::FourDLInterp(const std::vector<float> &data,
100100
const std::array<float, 4> &TildeVar,
101101
std::array<float, 5> &ResArr,
102102
bool compute_derivatives) const {
@@ -299,7 +299,7 @@ void EOS_4D::FourDLInterp(const std::vector<float> &data,
299299
}
300300

301301

302-
void EOS_4D::get_tilde_variables(
302+
void EOS_4D_foriSS::get_tilde_variables(
303303
double e, double rhob, double rhoq, double rhos,
304304
std::array<float, 4> &TildeVar) const {
305305
// Input e, n in GeV/fm3 and 1/fm3
@@ -324,7 +324,7 @@ void EOS_4D::get_tilde_variables(
324324
}
325325

326326

327-
void EOS_4D::initialize_eos() {
327+
void EOS_4D_foriSS::initialize_eos() {
328328
messenger.info("Read in 4D EOS");
329329

330330
std::stringstream spath;
@@ -350,7 +350,7 @@ void EOS_4D::initialize_eos() {
350350
}
351351

352352

353-
void EOS_4D::initialize_dfCoeffs(const int dfType) {
353+
void EOS_4D_foriSS::initialize_dfCoeffs(const int dfType) {
354354
messenger.info("Read in deltaf Coeffs for EoS 4D");
355355
std::string EOSPath = "./iSS_tables/EOS_tables/HRG4D/";
356356
// Header info
@@ -369,7 +369,7 @@ void EOS_4D::initialize_dfCoeffs(const int dfType) {
369369

370370
//! This function returns the local temperature in [1/fm]
371371
//! input local energy density eps [1/fm^4] and rhob [1/fm^3]
372-
double EOS_4D::get_temperature(double e, double rhob,
372+
double EOS_4D_foriSS::get_temperature(double e, double rhob,
373373
double rhoq, double rhos) const {
374374
std::array<float, 4> TildeVar{};
375375
get_tilde_variables(e, rhob, rhoq, rhos, TildeVar);
@@ -381,7 +381,7 @@ double EOS_4D::get_temperature(double e, double rhob,
381381

382382
//! This function returns the local pressure in [1/fm^4]
383383
//! the input local energy density [1/fm^4], rhob [1/fm^3]
384-
double EOS_4D::get_pressure(double e, double rhob,
384+
double EOS_4D_foriSS::get_pressure(double e, double rhob,
385385
double rhoq, double rhos) const {
386386
std::array<float, 4> TildeVar{};
387387
get_tilde_variables(e, rhob, rhoq, rhos, TildeVar);
@@ -391,7 +391,7 @@ double EOS_4D::get_pressure(double e, double rhob,
391391
}
392392

393393

394-
void EOS_4D::getThermalVariables(const double epsilon, const double rhob,
394+
void EOS_4D_foriSS::getThermalVariables(const double epsilon, const double rhob,
395395
const double rhoq, const double rhos,
396396
std::vector<float> &thermalVec) const {
397397
thermalVec.resize(5);
@@ -403,7 +403,7 @@ void EOS_4D::getThermalVariables(const double epsilon, const double rhob,
403403
}
404404

405405

406-
void EOS_4D::getDeltafCoeffs(const double epsilon, const double rhob,
406+
void EOS_4D_foriSS::getDeltafCoeffs(const double epsilon, const double rhob,
407407
const double rhoq, const double rhos,
408408
std::vector<double> &deltafVec) const {
409409
deltafVec.resize(dfCoeffs_.size());
@@ -419,7 +419,7 @@ void EOS_4D::getDeltafCoeffs(const double epsilon, const double rhob,
419419

420420
//! This function returns the local baryon chemical potential mu_B in [1/fm]
421421
//! input local energy density eps [1/fm^4] and rhob [1/fm^3]
422-
double EOS_4D::get_muB(double e, double rhob, double rhoq, double rhos) const {
422+
double EOS_4D_foriSS::get_muB(double e, double rhob, double rhoq, double rhos) const {
423423
std::array<float, 4> TildeVar{};
424424
get_tilde_variables(e, rhob, rhoq, rhos, TildeVar);
425425
std::array<float, 5> ResArr{};
@@ -430,7 +430,7 @@ double EOS_4D::get_muB(double e, double rhob, double rhoq, double rhos) const {
430430

431431
//! This function returns the local baryon chemical potential mu_B in [1/fm]
432432
//! input local energy density eps [1/fm^4] and rhob [1/fm^3]
433-
double EOS_4D::get_muS(double e, double rhob, double rhoq, double rhos) const {
433+
double EOS_4D_foriSS::get_muS(double e, double rhob, double rhoq, double rhos) const {
434434
std::array<float, 4> TildeVar{};
435435
get_tilde_variables(e, rhob, rhoq, rhos, TildeVar);
436436
std::array<float, 5> ResArr{};
@@ -441,7 +441,7 @@ double EOS_4D::get_muS(double e, double rhob, double rhoq, double rhos) const {
441441

442442
//! This function returns the local baryon chemical potential mu_B in [1/fm]
443443
//! input local energy density eps [1/fm^4] and rhob [1/fm^3]
444-
double EOS_4D::get_muQ(double e, double rhob, double rhoq, double rhos) const {
444+
double EOS_4D_foriSS::get_muQ(double e, double rhob, double rhoq, double rhos) const {
445445
std::array<float, 4> TildeVar{};
446446
get_tilde_variables(e, rhob, rhoq, rhos, TildeVar);
447447
std::array<float, 5> ResArr{};

src/eos_4D_foriSS.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Copyright 2018 @ Chun Shen
22

3-
#ifndef SRC_EOS_4D_H_
4-
#define SRC_EOS_4D_H_
3+
#ifndef SRC_EOS_4D_foriSS_H_
4+
#define SRC_EOS_4D_foriSS_H_
55

66
#include <cmath>
77
#include <array>
88
#include <vector>
99

1010
#include "pretty_ostream.h"
1111

12-
class EOS_4D {
12+
class EOS_4D_foriSS {
1313
private:
1414
// variables for header infos.
1515
float mubtilde0, muqtilde0, mustilde0, Ttilde0;
@@ -59,8 +59,8 @@ class EOS_4D {
5959
pretty_ostream messenger;
6060

6161
public:
62-
EOS_4D();
63-
~EOS_4D();
62+
EOS_4D_foriSS();
63+
~EOS_4D_foriSS();
6464

6565
void initialize_eos();
6666
void initialize_dfCoeffs(const int dfType=0);
@@ -79,4 +79,4 @@ class EOS_4D {
7979
std::vector<double> &deltafVec) const;
8080
};
8181

82-
#endif // SRC_EOS_4D_H_
82+
#endif // SRC_EOS_4D_foriSS_H_

src/readindata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class read_FOdata {
2626
bool quantum_statistics_;
2727
bool regulateEOS_;
2828

29-
EOS_4D eos_4d_;
29+
EOS_4D_foriSS eos_4d_;
3030

3131
// flag to determine whether the EoS is partial chemical equilibrium or not
3232
int flag_PCE_;

0 commit comments

Comments
 (0)