⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fcsolitaryx.m

📁 波浪数值模拟
💻 M
字号:
dx = 0.5;dt = 1;load fCsolitaryxEcr.dat;   EC = fCsolitaryxEcr;  load fCsolitaryxUcr.dat;   UC = fCsolitaryxUcr;  [n,m] = size(EC);xeta = [0:m-1]*dx + dx/2;xu = [0:m]*dx;h2 = 0.45*ones(1,m);ECmax = max(EC,[],2);time = [1:n]*dt;figure(2),clf, orient tallsubplot(4,1,4)plot(xeta,h2),gridset(gca,'ydir','reverse')xlabel('Cross-shore coordinate (m)')ylabel('Depth (m)')subplot(4,1,3)plot(time,ECmax),gridxlabel('Time (s)')ylabel('max \eta (m)')for i=1:n,   subplot(4,1,1)   plot(xeta,EC(i,:)),grid   ylabel('\eta (m)')   axis([0 max(xeta) -0.01 0.03])   s = sprintf('fCsolitaryx.init:  Time = %4.1f (sec)',dt*(i-1));   title(s);   subplot(4,1,2)   plot(xu,UC(i,:)),grid   ylabel('U (m/s)')   axis([0 max(xeta) -0.1 0.1]) %  s = sprintf('fCsolitaryx.init:  Time = %4.1f (sec)',dt*(i-1)); %  title(s);    pause(0.05); %   pause;end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -