Skip to content

Commit

Permalink
Add vort_mag to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrete committed Nov 22, 2023
1 parent 71004d5 commit 07a8ee9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/outputs/per_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ void UserOutput::WriteOutputFile(Mesh *pm, ParameterInput *pin, SimTime *tm,
stats.emplace_back(Stats("vel_mag_mw", "prim", {IV1, IV2, IV3}, Weight::Mass));
stats.emplace_back(Stats("rho", "prim", IDN));
stats.emplace_back(Stats("pressure", "prim", IPR));
if (pin->GetOrAddBoolean("problem/turbulence", "calc_vorticity_mag", false)) {
stats.emplace_back(Stats("vort_mag", "vorticity_mag", 0));
stats.emplace_back(Stats("vort_mag_mw", "vorticity_mag", 0), Weight::Mass);
}

const std::vector<std::string> stat_types = {
"min", "max", "absmin", "absmax", "mean",
Expand Down

0 comments on commit 07a8ee9

Please sign in to comment.