Boundary conditions in the time evolution of Spectral Method in PDE

Click For Summary
SUMMARY

This discussion focuses on implementing boundary conditions in the time evolution of a 1D heat equation using spectral methods, specifically Chebyshev polynomials. The user is working with the equation $$u_t=k u_{xx}$$ and boundary conditions $$u(t,-1)=\alpha$$ and $$u(t,1)=\beta$$. They successfully set up the spectral expansion for the initial condition $$u(0,x)=f(x)$$ but seek guidance on incorporating boundary conditions into the time-stepping process. Suggestions include making spatial boundary conditions homogeneous and potentially adding a linear solution to the initial guess.

PREREQUISITES
  • Understanding of Partial Differential Equations (PDEs)
  • Familiarity with Spectral Methods and Chebyshev Polynomials
  • Knowledge of Numerical Methods for Time Integration
  • Experience with Mathematical Modeling Tools such as MMT or FFT
NEXT STEPS
  • Research how to implement boundary conditions in spectral methods for PDEs
  • Study the application of homogeneous boundary conditions in numerical simulations
  • Explore advanced texts on spectral methods, particularly those focusing on time-dependent problems
  • Learn about linear superposition techniques in the context of PDEs
USEFUL FOR

Researchers, mathematicians, and engineers involved in numerical analysis, particularly those focusing on solving partial differential equations using spectral methods.

Leonardo Machado
Messages
56
Reaction score
2
TL;DR
I need some help to implement a boundary condition to a 1D heat equation when dealing with it using spectral expansion.
Hi everyone!

I am studying spectral methods to solve PDEs having in mind to solve a heat equation in 2D, but now i am struggling with the time evolution with boundary conditions even in 1D. For example,

$$
u_t=k u_{xx},
$$
$$
u(t,-1)=\alpha,
$$
$$
u(t,1)=\beta,
$$
$$
u(0,x)=f(x),
$$
$$
u(t,x)=\sum^{N-1}_{n=0} a_n(t) T_{n}(x).
$$

T(x) is for Chebyshev polynomials.

I can easily create through MMT or FFT the spectral expansion for u(0,x), including the boundaries, to initiate the time-stepping via the first equation as,

$$
\sum^{N-1}_{n=0} \frac{da_n(t)}{dt} T_n(x)=\sum^{N-1}_{n=0} a^{(2)}_n(t) T_n(x).
$$

which implies in

$$
a_n(t+ \delta t)=k a_n(t)+a^{(2)}_n \delta t.
$$

But the point is.. how do i use the boundary conditions in the time-step? I can't find it in the bibliography.

I think that the usual thing to do would be use the boundary conditions as

$$
\sum^{N-1}_{n=0} a_n(t+\delta t) T_n(-1)=\sum^{N-1}_{n=0} a_n(t+\delta t)=\alpha,
$$

$$
\sum^{N-1}_{n=0} a_n(t+\delta t) T_n(1)=\sum^{N-1}_{n=0} a_n(t+\delta t)=\beta,
$$

but I'm not sure how to implement it in the time-stepping... Any suggestions? I would love to know a book that deals with it!

PS: I had problems using the caption in the LaTeX, the idex runs for n instead of N and t_N should be T_n! I don't know why it became like this.
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
Leonardo Machado said:
Summary:: I need some help to implement a boundary condition to a 1D heat equation when dealing with it using spectral expansion.

Hi everyone!

I am studying spectral methods to solve PDEs having in mind to solve a heat equation in 2D, but now i am struggling with the time evolution with boundary conditions even in 1D. For example,

$$
u_t=k u_{xx},
$$
$$
u(t,-1)=\alpha,
$$
$$
u(t,1)=\beta,
$$
$$
u(0,x)=f(x),
$$
$$
u(t,x)=\sum^{N-1}_{n=0} a_n(t) T_{n}(x).
$$

T(x) is for Chebyshev polynomials.

I can easily create through MMT or FFT the spectral expansion for u(0,x), including the boundaries, to initiate the time-stepping via the first equation as,

$$
\sum^{N-1}_{n=0} \frac{da_n(t)}{dt} T_n(x)=\sum^{N-1}_{n=0} a^{(2)}_n(t) T_n(x).
$$

which implies in

$$
a_n(t+ \delta t)=k a_n(t)+a^{(2)}_n \delta t.
$$

But the point is.. how do i use the boundary conditions in the time-step? I can't find it in the bibliography.

I think that the usual thing to do would be use the boundary conditions as

$$
\sum^{N-1}_{n=0} a_n(t+\delta t) T_n(-1)=\sum^{N-1}_{n=0} a_n(t+\delta t)=\alpha,
$$

$$
\sum^{N-1}_{n=0} a_n(t+\delta t) T_n(1)=\sum^{N-1}_{n=0} a_n(t+\delta t)=\beta,
$$

but I'm not sure how to implement it in the time-stepping... Any suggestions? I would love to know a book that deals with it!

PS: I had problems using the caption in the LaTeX, the idex runs for n instead of N and t_N should be T_n! I don't know why it became like this.
Just a thought, but typically you'd want to make the spatial BCs homogenous, such as adding a linear solution to your guess. Know what I'm talking about?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K