Closed vnikoofard closed 1 year ago
The issue is that you define the time-derivative of a scalar field using a vectorial quantity (the gradient of the same field). This is simply incompatible, but unfortunately the error message is difficult to improve because of the automatic parsing of the right hand side. Since you're considering a 1D problem, you should be able to fix the problem using eq = PDE({"u": "-d_dx(u)"})
.
The issue is that you define the time-derivative of a scalar field using a vectorial quantity (the gradient of the same field). This is simply incompatible, but unfortunately the error message is difficult to improve because of the automatic parsing of the right hand side. Since you're considering a 1D problem, you should be able to fix the problem using
eq = PDE({"u": "-d_dx(u)"})
.
Thanks for your help. You are right.
I don't know if I have to open another topic or here I can about the result of the code. Applying your suggestion the code works but the result is strange. Even with the implicit
method there are instability in the final result.
Hi,
trying to solve the convection equation with the following code
I receive the following error
I tried different solvers but the erro persists.