Hyperbolic Equation Instability

AI Thread Summary
The discussion revolves around calculating the derivative of a distribution function involving an electric field, where a discontinuity in the electric field causes instability in the numerical scheme. The right-hand side of the equation is solved using central difference, but significant differences between adjacent grid points lead to large gradients in the dxF value. Suggestions include exploring MUSCL and TVD schemes, which are effective for handling such discontinuities in computational fluid dynamics. It is recommended to switch between central differencing and a low-order upwinding scheme based on local gradients to enhance stability. Implementing a weighted average of these methods near the discontinuity could improve the numerical solution.
Tempa
Messages
6
Reaction score
0
Hello,

I'm trying to calculate the following equation which is the derivative in 'x' of a distribution function:
d(dxF)/dt = d(Efield.(dvxF))/dx

The problem comes because the right hand of the equation is solved by using central difference, but there is a zone where there is a discontinuity in the electric field. The electric field is not exactly the same on each point (but more or less the same order of magnitude) but there is a zone where I have in increment so the difference between two adjacent grid is so big that creates an instability. Is there any way to smooth the numerical scheme?

= (E[i+1][j]. dvxF[i+1][j]-E[i-1][j].dvxF[i-1][j])/dx

This is more or less how it goes. Imagine there is a point where the difference between E[i+1][j] and E[i-1][j] is so big that, creating a big gradient in the dxF value.

I've been studying the MUSCL and TVD schemes but i don't quite understand well the procedure
 
Physics news on Phys.org
Did you really mean to put this in the aerospace engineering forum?
 
Yes because I'm simulating an MHD accelerator, is just a specific problem I have. But if its not the correct place I can post it in another forum. Sorry about that
 
No I was just curious. It is just not something I am familiar with I suppose. Then again, I am not a numerical methods guy.
 
TVD schemes are a good place to start. If you search on CFD "Shock Capturing" Schemes, you'll find a lot of resources that should be applicable.

Essentially, at the core, what you would like to do is use local gradients to switch between your central differencing scheme (no numerical dissipation) and a low-order upwinding scheme (lots of numerical dissipation).

As a first cut, try solving using both methods and use a weighted average of a local gradient to determine the weightings. At that point near your discontinuity, force your solver to use the low-order scheme; this could help your stability.
 
minger, thank you very much for your advise
 
Due to the constant never ending supply of "cool stuff" happening in Aerospace these days I'm creating this thread to consolidate posts every time something new comes along. Please feel free to add random information if its relevant. So to start things off here is the SpaceX Dragon launch coming up shortly, I'll be following up afterwards to see how it all goes. :smile: https://blogs.nasa.gov/spacex/
Back
Top