Skip to content

Commit 98e854c

Browse files
author
Hyeoksu Lee
committed
modify examples/3D_turb_mixing
1 parent d4f9faf commit 98e854c

File tree

122 files changed

+82
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+82
-61
lines changed

examples/3D_turb_mixing/case.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131

3232
# Time advancement
3333
cfl = 0.5
34-
T = 200.0
34+
T = 150.0
3535
dt = cfl * dx / (u0 / M0 + 1)
3636
Ntfinal = int(T / dt)
3737
Ntstart = 0
38-
Nfiles = 40
38+
Nfiles = 30
3939
t_save = int(math.ceil((Ntfinal - 0) / float(Nfiles)))
4040
Nt = t_save * Nfiles
4141
t_step_start = Ntstart
@@ -74,7 +74,7 @@
7474
"weno_order": 5,
7575
"weno_eps": 1.0e-40,
7676
"weno_Re_flux": "F",
77-
"mapped_weno": "T",
77+
"wenoz": "T",
7878
"riemann_solver": 2,
7979
"wave_speeds": 1,
8080
"avg_state": 2,

examples/3D_turb_mixing/turbulence_stat/average_tke_over_self_similar.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
close all; clear all;
22

3+
34
% Setup
5+
disp("Start average_tke_over_self_similar ..."); tic;
46
set_user_inputs(); load variables/user_inputs.mat;
57

68
ybeg = -5; yend = 5; ny = 101;
@@ -12,7 +14,7 @@
1214
D_averaged = zeros(ny,1);
1315

1416
% Compute averaged TKE budget
15-
for q = 1:navg
17+
for q = 1:Nfiles
1618
load("results/tke_budget_data/tstep_"+string(timesteps(q))+".mat");
1719

1820
% Normalization
@@ -40,6 +42,7 @@
4042
% Plot
4143
plot_tke_budget(T_averaged, P_averaged, D_averaged, y, mth);
4244

45+
disp("End of program"); toc;
4346

4447
%% FUNCTIONS
4548
% Compute the wall-normal derivative of a discretized function, fun(y)
198 KB
1.67 KB
709 Bytes
2.51 KB
195 KB
1.79 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)