Skip to content

Commit

Permalink
sqrt missing in normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
mari2895 committed Mar 7, 2024
1 parent cae28b4 commit 6474920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phoebus_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ void UserWorkBeforeOutput(MeshBlock *pmb, ParameterInput *pin) {
const Real z = coords.Xc<3>(k, j, i);
const Real sigma = analysis->Param<Real>("sigma");
const Real pi = 3.14;
const Real s0 = s * std::exp(-z * z / sigma / sigma) / pi / sigma; // sigma > 0
const Real s0 =
s * std::exp(-z * z / sigma / sigma) / std::sqrt(pi) / sigma; // sigma > 0

const Real vp[3] = {v(0, p::velocity(0), k, j, i), v(0, p::velocity(1), k, j, i),
v(0, p::velocity(2), k, j, i)};
Expand Down

0 comments on commit 6474920

Please sign in to comment.