Skip to content

Commit 4b3444e

Browse files
author
Hyeoksu Lee
committed
minor update
1 parent ab667f1 commit 4b3444e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/3D_turb_mixing/turbulence_stat/run_turbulence.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function f_compute_Reynolds_stress(rho, vel_fluc, y_norm_vth, timestep)
305305
S23 = squeeze(0.5*(dvel_ds(2,3,:,:,:) + dvel_ds(3,2,:,:,:)));
306306
S33 = squeeze(dvel_ds(3,3,:,:,:));
307307

308-
SS = S11.^2 + S12.^2 + S13.^2 + S12.^2 + S22.^2 + S23.^2 + S13.^2 + S23.^2 + S33.^2;
308+
SS = S11.^2 + 2*S12.^2 + 2*S13.^2 + S22.^2 + 2*S23.^2 + S33.^2;
309309
end
310310

311311
% Compute TKE budget

0 commit comments

Comments
 (0)