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

📄 plot2dsnapshot_b.m

📁 spectral element method
💻 M
字号:
% Plot2dSnapshot_b(x,y,v,indx,vsat)%% INPUT		x,y	2D coordinates of GLL nodes (global vector)%		v	field to be plotted (global vector)%		indx	cell info, output from Init2dSnapshot%		vsat	color scale [-vsat vsat]% OUTPUT	h	patch handle %function h=Plot2dSnapshot_b(x,y,v,indx,vsat)[NGLL,NGLL,NELX,NELY] = size(x);NEL=NELX*NELY;clfset(gcf,'DefaultPatchEdgeColor','none');axis([x(1,1,1) x(NGLL,1,NELX) y(1,1,1) y(NGLL,NGLL,end)])for e=1:NEL,  xl = x(:,:,e);  yl = y(:,:,e);  vl = v(:,:,e);  h=patch('Vertices',[xl(:) yl(:)],'Faces',indx, ...          'FaceVertexCData',vl(:),'FaceColor','interp');endaxis equal tighttitle('SEM2D snapshot')xlabel('X')ylabel('Y')if exist('vsat','var'), set(gca,'CLim',[-vsat vsat]); endcolorbar('vert')

⌨️ 快捷键说明

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