Solving Generalized Crank-Nicolson Problem with MATLAB

1 reply · 10K views · last reply
flyingcarpet
Messages
2
Reaction score
0
can anybody help me about the attached problem about generalized Crank-Nicolson scheme. I need MATLAB code. How can i write a tri-diagonal solver for this problem?
 
Attachments
  • Photo of a handwritten finite-difference scheme for the diffusion equation, with the theta-weighted form Δt equation and a line below defining μ = (αΔt)/(Δx²), followed by a printed computations problem statement listing initial and boundary conditions, schemes with λ values, and μ values to test.
    untitled.JPG
    44.4 KB · Views: 471
Can you explain what you mean with tri-diagonal solver?