-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
134 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,34 @@ | ||
#ifndef SRC_HYDRO_SOURCE_TMUNU_H_ | ||
#define SRC_HYDRO_SOURCE_TMUNU_H_ | ||
// hydro_source_Tmunu.h | ||
|
||
#include "data.h" | ||
#include "hydro_source_base.h" | ||
#include "eos.h" | ||
#include "cell.h" | ||
#ifndef HYDRO_SOURCE_TMUNU_H | ||
#define HYDRO_SOURCE_TMUNU_H | ||
|
||
#include "hydro_source_base.h" // Include the base class header | ||
#include "data_struct.h" | ||
#include <vector> | ||
#include <array> | ||
#include <memory> | ||
#include <iostream> | ||
#include <cstdlib> // for exit function | ||
|
||
class HydroSourceTmunu : public HydroSourceBase { | ||
private: | ||
class HydroSourceTmunu : public HydroSourceBase { // Inherit from HydroSourceBase | ||
public: | ||
// Constructor | ||
HydroSourceTmunu(InitData &DATA_in); | ||
|
||
// Override the virtual function from HydroSourceBase | ||
void get_hydro_energy_source( | ||
const double tau, const double x, const double y, const double eta_s, | ||
const std::array<double, 4>& u_mu, std::array<double, 4>& j_mu) const override; | ||
|
||
private: | ||
// Add your private members and functions here | ||
InitData &DATA; | ||
|
||
std::vector<std::vector<std::vector<double>>> energy_density_; | ||
std::vector<std::vector<std::vector<std::array<double, 4>>>> velocity_; | ||
std::vector<std::vector<std::vector<std::array<double, 10>>>> shear_tensor_; | ||
// Data containers | ||
std::vector<std::vector<double>> energy_density_; | ||
std::vector<std::vector<std::array<double, 4>>> velocity_; | ||
std::vector<std::vector<std::array<double, 10>>> shear_tensor_; | ||
|
||
// Function to read the IP-Glasma event file and initialize data | ||
void readIPGevent(); | ||
|
||
public: | ||
HydroSourceTmunu() = delete; | ||
HydroSourceTmunu(InitData &DATA_in); | ||
//~HydroSourceTmunu() = default; | ||
void get_hydro_energy_source(const double tau, const double x, const double y, const double eta_s, | ||
const std::array<double, 4>& u_mu, std::array<double, 4>& j_mu) const; | ||
}; | ||
#endif | ||
|
||
#endif // HYDRO_SOURCE_TMUNU_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters