1 #include "../coordinates/coordinates.hpp"
2 #include "../reconstruct/interpolation.hpp"
3 #include "../thermodynamics/thermodynamics.hpp"
12 for (
int n = 1; n <= NVAPOR; ++n) {
13 varname +=
"q" + std::to_string(n) +
"_bar,";
17 for (
int n = 0; n < 3; ++n) {
19 varname +=
"vel" + std::to_string(n + 1) +
"_bar,";
36 for (
int n = 0; n < IPR; ++n)
37 for (
int k = pmb->ks; k <= pmb->ke; ++k)
38 for (
int j = pmb->js; j <= pmb->je; ++
j)
39 for (
int i = pmb->is; i <= pmb->ie; ++i)
40 data(n, k,
j, i) += w(n, k,
j, i);
43 for (
int k = pmb->ks; k <= pmb->ke; ++k)
44 for (
int j = pmb->js; j <= pmb->je; ++
j)
45 for (
int i = pmb->is; i <= pmb->ie; ++i)
46 data(IPR, k,
j, i) += pmb->pthermo->GetTemp(w.at(k,
j, i));
56 for (
int n = 0; n < NHYDRO; ++n)
57 for (
int k = pmb->ks; k <= pmb->ke; ++k)
58 for (
int j = pmb->js; j <= pmb->je; ++
j)
59 for (
int i = pmb->is; i <= pmb->ie; ++i)
data(n, k,
j, i) /=
ncycle;
61 for (
int n = 0; n < IPR; ++n)
62 for (
int k = pmb->ks; k <= pmb->ke; ++k)
63 for (
int j = pmb->js; j <= pmb->je; ++
j)
64 for (
int i = pmb->is; i <= pmb->ie; ++i)
65 data(n, k,
j, i) = w(n, k,
j, i);
67 for (
int k = pmb->ks; k <= pmb->ke; ++k)
68 for (
int j = pmb->js; j <= pmb->je; ++
j)
69 for (
int i = pmb->is; i <= pmb->ie; ++i)
70 data(IPR, k,
j, i) = pmb->pthermo->GetTemp(w.at(k,
j, i));
void Finalize(AthenaArray< Real > const &w)
HydroMean(MeshBlock *pmb)
void Progress(AthenaArray< Real > const &w)