Crank Nicolson method to solve a PDE
Click For Summary
Discussion Overview
The discussion revolves around the implementation of the Crank-Nicolson method to solve a non-linear partial differential equation (PDE). Participants are exploring issues related to code correctness, stability conditions, and the formulation of the problem.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant reports difficulties in obtaining correct results from their code implementing the Crank-Nicolson method for a non-linear PDE.
- Another participant suggests that the code may not be solving the PDE correctly and emphasizes the need to construct a matrix-vector system for the solution.
- There are questions regarding the maximum timestep for stability, with one participant providing a specific timestep value.
- Several participants discuss the form of the PDE, with clarifications about its linearity and the correct formulation of the equation.
- Participants request the posting of the difference scheme for the PDE and express preferences for LaTeX formatting for clarity.
- There is a focus on constructing the matrix A and vector b from the difference scheme, with requests for specific examples of their construction.
Areas of Agreement / Disagreement
Participants express differing views on the correctness of the code and the formulation of the PDE. There is no consensus on the solution approach or the stability of the method as applied in the current code.
Contextual Notes
Participants highlight potential issues with the code, including the need for clearer definitions of the matrix and vector involved in the Crank-Nicolson method. There are also concerns about the stability of the chosen timestep and the formulation of the PDE.
Similar threads
- · Replies 36 ·
- · Replies 13 ·
- · Replies 2 ·
- · Replies 2 ·
- · Replies 2 ·
- · Replies 3 ·
- · Replies 4 ·
- · Replies 12 ·
- · Replies 2 ·
- · Replies 4 ·