1D linear advection #2650
Replies: 4 comments 2 replies
-
I've fixed the formatting of your code. Can you post the exact error please (i.e. the whole error output you see)? One thing that may be going on is that we usually refer to the 1D element as |
Beta Was this translation helpful? Give feedback.
-
Thank you, UFL:ERROR Can't add expressions with different shapes. I've got the same error with DP |
Beta Was this translation helpful? Give feedback.
-
Thank you, I put the comma, and it seems to solve the issue. Now, I get a different error :) dq=Function(V) |
Beta Was this translation helpful? Give feedback.
-
Thank you all |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to change the code of time-dependent DG linear advection using unwinding https://www.firedrakeproject.org/demos/DG_advection.py.html
to solve the problem in 1D and apply Euler for time-updating.
the initial condition is
q(x,0)= x for x<0 .5 and 1-x otherwise.
the boundary condition is q(0,t)=0
and the velocity, u=1
I got the error (DQ is supported, but handled incorrectly)
could you please let me know where the problem is?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions