Solving first order hyperbolic equations with py-pde #270
-
First of all, thanks for sharing this awesome package. Is py-pde is capable of solving first order hyperbolic equations, e.g. transport equations? From the mathematical point of view, for a constant value of c the equation needs just one boundary condition (left bc for positive values of c; right bc for negative values of c). But according to the reference manual each axis needs to have boundary conditions specified on its both ends. I was wondering whether there is a workaround, which would allow to specify only one boundary condition for the x-axis? Ultimately, I would like to solve a set of two coupled continuity equations: where v_a, v_i and beta are constant coefficients. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm afraid that this is not currently possible. You could try your luck with setting an arbitrary condition on the right, but I know that advective terms, like the second ones on the right, are difficult to treat correctly and I haven't explored this in any way. |
Beta Was this translation helpful? Give feedback.
I'm afraid that this is not currently possible. You could try your luck with setting an arbitrary condition on the right, but I know that advective terms, like the second ones on the right, are difficult to treat correctly and I haven't explored this in any way.