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

📄 orrsom.m

📁 matlab6矩阵微分工具 matlab6矩阵微分工具
💻 M
字号:
%  The script file orrsom.m computes the eigenvalues of the Orr-Sommerfeld%  equation using NxN Chebyshev differentiation matrices.% S.C. Reddy, J.A.C. Weideman 1998N = input(' Order of the differentiation matrix: N = ? ');R = input(' Reynolds number: R = ? ');i = sqrt(-1);[x,DM] = chebdif(N+2,2);                       % Compute second derivative    D2 = DM(2:N+1,2:N+1,2);                    % Enforce Dirichlet BCs                                     [x,D4] = cheb4c(N+2);                          % Compute fourth derivative     I = eye(size(D4));                        % Identity matrixA = (D4-2*D2+I)/R-2*i*I-i*diag(1-x.^2)*(D2-I); % Set up A and B matricesB = D2-I;e = eig(A,B);

⌨️ 快捷键说明

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