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

📄 gaussianeddy.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[v,psi]=gaussianeddy(eta,ro,vo)%GAUSSIANEDDY Velocity and streamfunction for a Gaussian vortex.%%   GAUSSIANEDDY computes the velocity and streamfunction observed at%   the origin due to an eddy having a Gaussian streamfunction profile%   located at a specified point.%%   [v,psi]=gaussianeddy(eta,ro,vo);%%     Input%	eta: complex-valued position of eddy (km)%	ro:  size of eddy (km)%	vo:  velocity at edge, negative for anticyclone (cm/s) %%     Output%	v,psi:	azimuthal velocity and streamfunction at origin%%   'gaussianeddy --f' generates a sample figure%   __________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2001, 2004 J.M. Lilly --- type 'help jlab_license' for details      if strcmp(eta,'--f')  gaussian_fig; returnendeta=eta*1000;ro=ro*1000;vo=vo/100;psi=-1*vo*ro*exp(1/2*(1-abs(eta).^2./ro.^2));v=-1*eta*(vo./ro)*sqrt(-1).*exp(1/2*(1-abs(eta).^2./ro.^2))*100;function[]=gaussian_figro=10;vo=10;eta=sqrt(-1)*5+[-50:.1:50]';[v,psi]=gaussianeddy(eta,ro,vo);figure,subplot(121),uvplot(real(eta),v),title('Cyclone sliced south of center, halfway to edge')subplot(122)polar(angle(v),abs(v))title('Hodograph of Gaussian eddy')

⌨️ 快捷键说明

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