Is the oscillation in the picture a boundary condition problem?

2 visualizaciones (últimos 30 días)
Rahul
Rahul el 16 de Ag. de 2024
Comentada: Rahul el 21 de Ag. de 2024
Hi,
I have an equation which is as follows
When I solve this equation using the pdepe it shows an oscillation pattern at the edge as it is here (shown by arrow).
I changed my parameters a lot but this oscillation sometime reduces, but not zero. My bc are as follows
pl = 0;
ql = 1;
pr = 0;
qr = 1;
Can you tell how to reduce this oscillations?
Also, in the above equation, for the diffusion coefficient (sigma) the minimum value for which the pdepe converges is 1 below which the solution becomes diverging, it should not be actually.
with regards
  16 comentarios
Umar
Umar el 18 de Ag. de 2024

Hi @Rahul,

The code that you provided was incorrect. So, I had to fix the errors and update the code. Please see attached. Hopefully, this answers your question.

Rahul
Rahul el 21 de Ag. de 2024
Hi Umar,
Thanks a lot for your support.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by