Skip to content

Commit

Permalink
make multiple turbinflows additive rather than replacing each other
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Apr 12, 2024
1 parent 0dad956 commit 73f9f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Utility/TurbInflow/turbinflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ TurbInflow::fill_turb_plane(
ydata[ii] =
cy[0] * zdata[ii][0] + cy[1] * zdata[ii][1] + cy[2] * zdata[ii][2];
}
vd(i, j, k, n) = cx[0] * ydata[0] + cx[1] * ydata[1] + cx[2] * ydata[2];
vd(i, j, k, n) *= velScale;
vd(i, j, k, n) +=
velScale * (cx[0] * ydata[0] + cx[1] * ydata[1] + cx[2] * ydata[2]);
}
}
});
Expand Down

0 comments on commit 73f9f12

Please sign in to comment.