boundaryconditions.m

来自「非守恒-无激波-跨声速 非守恒-无激波-跨声速」· M 代码 · 共 11 行

M
11
字号
function BoundaryConditions(h,N)
global rou T V;
%Subsonic inflow boundary(point 1) conditions
 rou(h,1)=1;
 V(h,1)=2*V(h,2)-V(h,3);
 T(h,1)=1;
%Supersonic outflow boundary(point N) conditions  
 V(h,N)=2*V(h,N-1)-V(h,N-2);
 rou(h,N)=2*rou(h,N-1)-rou(h,N-2);
 T(h,N)=2*T(h,N-1)-T(h,N-2);

⌨️ 快捷键说明

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