레포트 > 기타

[레포트]유체역학 Solve Blasius Problem in MATLAB

등록일 : 2018-05-30
갱신일 : 2018-05-30


  [레포트]유체역학 Solve Blasius Problem in MATLAB.hwp   [size : 948 Kbyte]
  1,000   4 Page
 
  100%
 
[레포트]유체역학 Solve Blasius Problem in MATLAB
`Solve Blasius Problem in MATLAB`
problem : Solve Blasius equation in numerical method

1. Blasius equation
-
- Boundary Conditions :

2. Defined function (m-file)
- Blasius.m
function df = Blasius(eta,y)
df = [y(2) ; y(3) ; -0.5y(1)y(3)];
- mat4bc.m
function res = mat4bc(y0,yinf)
res = [y0(1) ; y0(2) ; yinf(2)-1];

3. Command Window (code)

`` solinit = bvpinit([0:2:8],[0 0 1]);
`` sol = bvp4c(@Blasius,@mat4bc,solinit...

`Solve Blasius Problem in MATLAB`
problem : Solve Blasius equation in numerical method

1. Blasius equation
-
- Boundary Conditions :

2. Defined function (m-file)
- Blasius.m
function df = Blasius(eta,y)
df = [y(2) ; y(3) ; -0.5y(1)y(3)];
- mat4bc.m
function res = mat4bc(y0,yinf)
res = [y0(1) ; y0(2) ; yinf(2)-1];

3. Command Window (code)

`` solinit = bvpinit([0:2:8],[0 0 1]);
`` sol = bvp4c(@Blasius,@mat4bc,solinit);
`` eta_int = [0:0.2:8.0];
`` f_int = deval(sol,eta_int);
`` fprintf(`n \t f \t df/dn \t d2f/dn2 \n`);
`` for i = 1:length(eta_int)
fprintf(`%3.2f %8.4f %8.4f %8.4f…(생략)

∴Tip Menu

유체역학   Solve   Blasius   Problem   in   MATLAB