Method of Characteristics for Hyperbolic PDE

Click For Summary
SUMMARY

The discussion focuses on solving a hyperbolic partial differential equation (PDE) using the method of characteristics in Matlab. The equation in question is ∂n/∂t + G(t)∂n/∂L = 0, with initial condition n(t,0)=B(t)/G(t) and boundary condition n(0,L)=ns, where ns represents an initial distribution. The main challenge is incorporating discrete initial values of n at various sizes L into the solution, particularly when no explicit functions for these conditions are available. The participant seeks guidance on how to propagate these values effectively within the framework of the method of characteristics.

PREREQUISITES
  • Understanding of hyperbolic partial differential equations (PDEs)
  • Familiarity with the method of characteristics
  • Proficiency in Matlab programming
  • Knowledge of initial and boundary value problems
NEXT STEPS
  • Research how to implement the method of characteristics in Matlab for PDEs
  • Explore techniques for interpolating discrete data points to create functions for initial conditions
  • Study the implications of boundary conditions on hyperbolic PDE solutions
  • Learn about numerical methods for solving PDEs when analytical solutions are not feasible
USEFUL FOR

Matlab programmers, applied mathematicians, and researchers working on hyperbolic PDEs, particularly those dealing with initial and boundary conditions in computational models.

Graham Power
Messages
3
Reaction score
0
I am trying to build a program in Matlab to solve the following hyperbolic PDE by the method of characteristics

∂n/∂t + G(t)∂n/∂L = 0

with the inital and boundary conditions

n(t,0)=B(t)/G(t) and
n(0,L)=ns

Here ns is an intial distribution (bell curve) but I don't have a function to fit it. I just have different values of n at various sizes, L (from 0 to 1000μm).

I know that the method of characterisitics gives the solution

∂n/∂s=0
∂t/∂s=1
∂L/∂s=G(t)

which gives the characteristic curve as L-G(t)*t=L0. So the values of n @ any initial size, L0, remain constant along the characteristic curve.

My problem is how do I incorporate the original n values at time zero and various sizes into the equation. I want to say:

n@(L0)=n@(L-G(t)*t)

If the initial condition was given as a function of L0, say n(0,L)= f(L0)=sin(L0), then I could just sub in the characteristic equation and calculate n(t,L) as sin(L-G(t)*t). But I don't have a function that describes the initial condition, just vaues of n at various sizes, L as said above.

The other problem is the boundary condition, this should make up one section of the solution and the initial condition the other.

But again how do I actually say n@(t,0)=B(t)/G(t)=n@(L-G(t)*t).

Say if n(t,0)=g(t), so the boundary condition is a function of time explicitly, not the case for me, B and G are actually a function of concentration which is changing with time, then the solution for the PDE above subject to the boundary would be;

n(t,L)=g(t-(L/G(t))

So I get the method overall, I am just confused how I propagate each value when I don't have functions to describe the initial and boundary conditions, like f(L0) and g(t) shown above.

I posted about this ages ago but if anyone had some feedback on this it would be great.
 
Physics news on Phys.org
The characteristic curve is

L=L_0+\int_0^t{G(\xi)d\xi}
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K