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

📄 fcsolitaryy.m

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

⌨️ 快捷键说明

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