MATLAB Solving 2nd Order PDE System with Crank-Nicholson

Click For Summary
SUMMARY

This discussion focuses on solving a system of second-order partial differential equations (PDEs) using the Crank-Nicholson (CN) method. The system includes nonlinear terms, particularly in the first equation involving the variable E, which complicates the application of the CN scheme. The user suggests employing the Newton-Raphson method to address the nonlinearity and seeks confirmation on the appropriateness of this approach. The conversation emphasizes the need for clarity in notation to avoid confusion when dealing with vector quantities.

PREREQUISITES
  • Understanding of second-order partial differential equations (PDEs)
  • Familiarity with the Crank-Nicholson method for numerical solutions
  • Knowledge of Newton-Raphson method for solving nonlinear equations
  • Proficiency in MATLAB for implementing numerical algorithms
NEXT STEPS
  • Research the implementation of the Crank-Nicholson method for nonlinear PDEs
  • Study the Newton-Raphson method in the context of PDE systems
  • Explore perturbation methods for simplifying nonlinear equations
  • Learn about MATLAB's PDE toolbox for solving complex systems
USEFUL FOR

Mathematicians, engineers, and researchers working on numerical methods for PDEs, particularly those interested in nonlinear systems and numerical analysis using MATLAB.

hunt_mat
Homework Helper
Messages
1,816
Reaction score
33
I have the following system of PDEs:
<br /> \hat{\rho}\hat{c}_{th}\frac{\partial\hat{T}}{\partial\hat{x}}-\alpha_{1}\frac{\partial}{\partial\hat{x}}\left(\hat{k}(\hat{x})\frac{\partial\hat{T}}{\partial\hat{x}}\right)=\alpha_{1}\hat{\sigma}(\hat{x})\hat{E}<br />
<br /> \frac{\partial}{\partial\hat{x}}(\hat{\varepsilon}(\hat{x})\hat{E})=-\beta\hat{c}<br />
<br /> \frac{\partial\hat{c}}{\partial\hat{t}}-\gamma_{1}\frac{\partial}{\partial\hat{x}}\left(\hat{D}(\hat{x})\frac{\partial\hat{c}}{\partial\hat{x}}\right)= \gamma_{2}\left(\frac{\partial\hat{E}}{\partial\hat{x}}+\frac{\partial\hat{c}}{\partial\hat{x}}-\frac{\partial\hat{T}}{\partial\hat{x}}\right)<br />

I would like to solve this system using the Crank-Nicholson method. Now for a linear equation, the CN scheme is well defined, MATLAB has some very nice algorithms for this.

However the first equation has a nonlinear term in E, and I have no equation which time steps E. I suppose that I could use a Newton-Raphson scheme to get the solution. Would that be the correct way forward?
 
Physics news on Phys.org
What is your question?
 
What would be the best way forward? As stated in my post.
 
hunt_mat said:
What would be the best way forward? As stated in my post.
Sorry about that.
For some reason no text after your first equation is visible in Safari on iOS.
 
a perturbation expansion for E (kill all the \hat{}, it makes the equations hard to read and is confusing, unless they are all vector quantities,l then you have a mess and an intractable system).
 

Similar threads

Replies
2
Views
1K
Replies
5
Views
8K
  • · Replies 5 ·
Replies
5
Views
763
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K