Skip to content

Commit 3d71957

Browse files
committed
additional clean up in the files
1 parent 8fbffb4 commit 3d71957

File tree

6 files changed

+35
-66
lines changed

6 files changed

+35
-66
lines changed

src/forward_solver/f_call_params.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,6 @@
395395
end
396396

397397
% Keller-Miksis equation
398-
% if linkv==1 || neoHook==1 || Yeoh==1
399-
% JdotA = 4/Re8;
400-
% elseif sls==1 || nhzen==1 || fdkv==1 || zzzen==1 || fdmax==1 % ZZ - Not exactly true for FDKV, but I also don't think this matters ...
401-
% JdotA = 0;
402398
% elseif nhkv_pld==1
403399
% %JdotA = 4/Re8*(2^alpha_g+1)/3*(abs(Rdot)/R)^(alpha_g-1);
404400
% JdotA = 4/Re8/3*(2^alpha_g+1)*sign(Rdot)*(abs(Rdot)/R)^(alpha_g)*R^2/Rdot^2;

src/forward_solver/m_imr_spectral.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@
474474
% integral precomputations
475475
Lstr = ['L' num2str(L,18)];
476476
Lstr = strrep(Lstr,'.','p');
477-
if exist('stress_store.mat','file') ~= 0
478-
load('stress_store.mat','store');
477+
if exist('d_stress_store.mat','file') ~= 0
478+
load('d_stress_store.mat','store');
479479
if isfield(store,Lstr) == 1
480480
if size(store.(Lstr),2) >= N, Nstart = 0;
481481
else
Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
r_coord = ones(lR,lr_N).*logspace(-0.5,lr_length,lr_N);
88
% calculating the shear
99
varsigmadot_r = f_gammadot_r(r_coord,R,U,lR,lr_N);
10-
f_r = sf_carreau(v_nc,v_lambda,varsigmadot_r);
1110
[xcon,ycon] = meshgrid(t,r_coord(1,:));
1211
ycon = log10(ycon);
1312
clevels = 50;
@@ -16,7 +15,7 @@
1615
ntau_r = tau_r/max_tau_r;
1716

1817
% f contour figure
19-
figure(5)
18+
figure(1)
2019
hold on;
2120
xlabel('$t / t_c$', 'Interpreter', 'Latex', 'FontSize', 20);
2221
ylabel('log$_{10}(\it{r}/R_o)$','Interpreter','Latex','FontSize',24);
@@ -39,32 +38,37 @@
3938
xa.LineWidth = 1.5;
4039
box on;
4140
plot(t, log10(R),lm,'LineWidth',3);
42-
contourf(xcon',ycon',f_r,clevels,'edgecolor','none')
41+
contourf(xcon',ycon',ntau_r,clevels,'edgecolor','none')
4342
saveas(gcf,'./figs/baseline/fcon_T','png')
4443

45-
% shear stress contour figure
46-
figure(6)
47-
hold on;
48-
xlabel('$t / t_c$', 'Interpreter', 'Latex', 'FontSize', 20);
49-
ylabel('log$_{10}(\it{r}/R_o)$','Interpreter','Latex','FontSize',24);
50-
colormap jet;
51-
cbar = colorbar;
52-
cbar.Label.String = '$\tau_{rr}/\mathrm{max}(\tau_{rr})$';
53-
set(cbar,'TickLabelInterpreter','latex');
54-
pos = get(cbar,'Position');
55-
cbar.Label.Position = [1.5*pos(1) -1.2];
56-
cbar.Label.Rotation = 0;
57-
cbar.Label.Interpreter = 'latex';
58-
clim([-1 1])
59-
xlim([0 fig_tend]);
60-
xticks(tickrange)
61-
set(gcf,'color','w');
62-
set(gca,'FontName','Times','FontSize',20);
63-
set(gca,'TickLabelInterpreter','latex')
64-
xa = gca;
65-
xa.TickLength = [.015 .015];
66-
xa.LineWidth = 1.5;
67-
box on;
68-
plot(t, log10(R),lm,'LineWidth',3);
69-
contourf(xcon',ycon',ntau_r,clevels,'edgecolor','none');
70-
saveas(gcf,'./figs/baseline/taucon_T','png')
44+
% shear as a function of r (radial coordinate) calculation
45+
function sofr = f_gammadot_r(r,R,Rdot,N,M)
46+
47+
sofr = zeros(N,M);
48+
for i = 1:N
49+
for j = 1:M
50+
if r(i,j) >= R(i,1)
51+
sofr(i,j) = -2*Rdot(i,1)*(R(i,1)^2)/((r(i,j))^3);
52+
else
53+
sofr(i,j) = NaN;
54+
end
55+
end
56+
end
57+
end
58+
59+
function [feps_r] = f_f_filter(f_r,N,M)
60+
eps = 0.01;
61+
feps_r = zeros(size(f_r));
62+
for i = 1:N
63+
for j = 1:M
64+
if f_r(i,j) > 1-eps
65+
feps_r(i,j) = NaN;
66+
elseif f_r(i,j) < eps
67+
feps_r(i,j) = NaN;
68+
else
69+
feps_r(i,j) = f_r(i,j);
70+
end
71+
end
72+
end
73+
74+
end

src/post_processing/f_f_filter.m

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/post_processing/f_gammadot_r.m

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)