Crank Nicolson method with convective and insulated boundary conditions

조회 수: 2 (최근 30일)
Mahyar Taghizade
Mahyar Taghizade 2021년 11월 29일
답변: Alok Kumar 2022년 4월 20일
Hi!
For one dimensional heat diffusion with Crank Nicolson method, I had trouble writing a code for convective boundary condition at x=L and insulated boundary condition at x=0.
I would really appreciate it if you can help me with these 2 boundary condition codes.
Thank you in advance!

답변 (1개)

Alok Kumar
Alok Kumar 2022년 4월 20일
leaving -u(n+1,k); shift all other variables to the right hand side of the equals sign
-u(n+1,k)= -u(n,k) -w.*u(n,k)+w.*q;

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by