Suggestions for scheme to use to solve PDE numerically

  • Context: Graduate 
  • Thread starter Thread starter Chim
  • Start date Start date
  • Tags Tags
    Pde Suggestions
Click For Summary
SUMMARY

This discussion focuses on numerically solving a non-linear parabolic partial differential equation (PDE) related to laser ablation using MATLAB. The governing equation is given by ∂T(x,t)/∂t = ∂/∂x(A*∂T/∂x) + B*exp(-C*t²)*exp(-D*x), with A as a function of T, and B, C, and D as positive constants. The Crank-Nicolson method is recommended for numerical solutions, emphasizing the need for a fine mesh due to the sensitivity of the source term. Non-dimensionalization of time and space is advised to clarify the scale of time steps and ensure stability in the numerical solution.

PREREQUISITES
  • Understanding of non-linear parabolic PDEs
  • Familiarity with MATLAB and the 'pdepe' function
  • Knowledge of numerical methods, particularly the Crank-Nicolson method
  • Concept of non-dimensionalization in numerical analysis
NEXT STEPS
  • Research the Crank-Nicolson method for solving PDEs
  • Learn about non-dimensionalization techniques in numerical analysis
  • Explore MATLAB's 'pdepe' function documentation for advanced usage
  • Investigate stability criteria for numerical methods applied to PDEs
USEFUL FOR

Researchers and engineers modeling thermal processes, particularly those involved in laser ablation, as well as MATLAB users seeking to solve complex PDEs numerically.

Chim
Messages
5
Reaction score
0
Hello everyone,
I am trying to model the process of laser ablation on a material using MATLAB. The governing equation is of the form:
∂T(x,t)/∂t = ∂/∂x(A*∂T/∂x) + B*exp(-C*t2)*exp(-D*x)
with one Initial condition and two boundary conditions.
Using the built-in 'pdepe' function in Matlab gave inaccurate results, so I have been reading material on solving it numerically. This being a non-linear parabolic pde (correct me if wrong), I am facing difficulty on how to proceed. All the materials that I have referred to so far only address problems where the last term (source term) of the equation is a function of T(x,t). Please guide me.
 
Physics news on Phys.org
Is A a function of x or t or T?

If its not a function of any of the above this is just a non-homogenous heat equation and you can solve it analytically.

If it's a function of x or t or both, it's still a linear equation.

If it's a function of T then indeed this is non-linear.
 
Double Post. Sorry.
 
Usually for these problems the Crank-Nicolson method suffices. Note that your source term is quite sensitive to t and x with an exponential decay so a very fine mesh is probably needed when x<<1 and t<<1 to capture the source term accurately.

Also, in numerical methods, it doesn't matter (much) if the source term depends on T or not. In this case, the source term is known on every point of the grid if B,C,D are not functions of T.

You should also be able to get the analytical solution as kai_sikorski mentioned. It is always good to have an analytical solution.
 
Sorry. Forgot to mention about the coefficients earlier.
A is a function of T, whereas B,C and D are positive constants.

kai_sikorski said:
Is A a function of x or t or T?

If its not a function of any of the above this is just a non-homogenous heat equation and you can solve it analytically.

If it's a function of x or t or both, it's still a linear equation.

If it's a function of T then indeed this is non-linear.
 
As you have noticed that i will be needing an extremely fine mesh, I was using a time step of 1ns and a 10nm step for distance x. Is it possible that using these increments might affect the stability of the solution?
I would also like to mention that I need to study the behaviour in the first 100ns and the ablation was observed till a few μm.

bigfooted said:
Usually for these problems the Crank-Nicolson method suffices. Note that your source term is quite sensitive to t and x with an exponential decay so a very fine mesh is probably needed when x<<1 and t<<1 to capture the source term accurately.

Also, in numerical methods, it doesn't matter (much) if the source term depends on T or not. In this case, the source term is known on every point of the grid if B,C,D are not functions of T.

You should also be able to get the analytical solution as kai_sikorski mentioned. It is always good to have an analytical solution.
 
It might be a good idea to non-dimensionalize time and space. Quantities with units make it hard to tell what's large and what's small. Is 1ns small? Well it depends on how fast the forcing in the problem is varying. If C~(1 ns)^2, or smaller then your time step might be huge in comparison. So I would non-nimensionalize time by (C)^{-1/2}, and space by (D)^{-1}, that way the forcing is changing over order 1 quantities in space and time and the meaning of what a small time step is will be more clear.

Stability is usually related to the time step being too large compared to the space step. I just read the documentation for pdepe though and it seems that it actually chooses an appropriate time step on it's own, the time points you specify are just the time points it will give you a solution at, but they have nothing to do with what time step it actually used. So presumably it chooses something that should be stable.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K