nde.m

버전 1.5.0.0 (209 KB) 작성자: Mark Holmes
solves the nonlinear diffusion equation u_t = Du_xx + f(x,t,u,u_x)
다운로드 수: 110
업데이트 날짜: 2018/3/2

라이선스 보기

Solve, and then plot, the solution of the nonlinear diffusion equation
u_t = Du_xx + f(x,t,u,u_x) for xL < x < xR, 0 < t < T
where
BCs: a0*u(xL,t) + b0*u_x(xL,t) = c0
a1*u(xR,t) + b1*u_x(xR,t) = c1
IC: u(x,0)=g(x)
The algorithm uses the Crank-Nicolson method with a uniform grid. With this, Newton's method is used to solve the resulting nonlinear system. Overall it is relatively fast. For example, for Fischer's equation, it solves the problem in about 0.02 sec on an iMac (and it takes about 0.4 sec when nx=nt=1000).

인용 양식

Mark Holmes (2024). nde.m (https://www.mathworks.com/matlabcentral/fileexchange/65481-nde-m), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

NDE/

버전 게시됨 릴리스 정보
1.5.0.0

Corrected a few minor typos (the PDE solver was not changed).

1.0.0.0