Skip to content

Commit

Permalink
Add option to toggle KE numerical diffusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lattanzi committed Oct 24, 2024
1 parent 4a8b2ff commit 596871b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SourceTerms/ERF_make_sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ void make_sources (int level,
TurbChoice tc = solverChoice.turbChoice[level];
const bool l_use_KE = ( (tc.les_type == LESType::Deardorff) ||
(tc.pbl_type == PBLType::MYNN25) );
const bool l_diff_KE = tc.diffuse_KE_3D;

const Box& domain = geom.Domain();

Expand Down Expand Up @@ -338,7 +339,7 @@ void make_sources (int level,
NumericalDiffusion(bx, start_comp, num_comp, dt, solverChoice.NumDiffCoeff,
cell_data, cell_src, mf_u, mf_v, false, false);

if (l_use_KE) {
if (l_use_KE && l_diff_KE) {
int sc = RhoKE_comp;
int nc = 1;
NumericalDiffusion(bx, sc, nc, dt, solverChoice.NumDiffCoeff,
Expand Down

0 comments on commit 596871b

Please sign in to comment.