32 SetId(
"Freestream-Milne");
42 JSINFO <<
"Initialize freestream-milne ...";
46 {
"Preequilibrium",
"FreestreamMilne",
"freestream_input_file"});
49 fsmilne_ptr =
new FREESTREAMMILNE();
50 struct parameters *params = fsmilne_ptr->configure(input_file.c_str());
52 double tau0 = GetXMLElementDouble(
53 {
"Preequilibrium",
"tau0"});
54 double taus = GetXMLElementDouble(
55 {
"Preequilibrium",
"taus"});
58 params->DTAU = taus -
tau0;
63 JSINFO <<
"Initialize energy density profile in freestream-milne ...";
65 std::vector<double> entropy_density =
66 ini->GetEntropyDensityDistribution();
67 std::vector<float> entropy_density_float(entropy_density.begin(),
68 entropy_density.end());
69 fsmilne_ptr->initialize_from_vector(entropy_density_float);
70 preequilibrium_status_ =
INIT;
71 if (preequilibrium_status_ ==
INIT) {
72 JSINFO <<
"running freestream-milne ...";
74 fsmilne_ptr->run_freestream_milne();
75 preequilibrium_status_ =
DONE;
78 fsmilne_ptr->output_to_vectors(e_, P_, utau_, ux_, uy_, ueta_, pi00_, pi01_,
79 pi02_, pi03_, pi11_, pi12_, pi13_, pi22_,
80 pi23_, pi33_, bulk_Pi_);