Skip to content

Commit

Permalink
Fix bug in LES coefficient calculation. (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf authored Sep 20, 2024
1 parent 400b84f commit 9c33a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/LES.H
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ pc_dynamic_smagorinsky_coeffs(

// "resolved turbulent stresses" and others
for (int dir = 0; dir < AMREX_SPACEDIM * AMREX_SPACEDIM; dir++) {
M[dir] = betaij[dir] * alphaij(i, j, k, dir);
M[dir] = betaij[dir] - alphaij(i, j, k, dir);
}

L[i00] = Kij(i, j, k, 0) - q(i, j, k, QRHO) * q(i, j, k, QU) * q(i, j, k, QU);
Expand Down

0 comments on commit 9c33a6f

Please sign in to comment.