Skip to content
Snippets Groups Projects
Commit 62bfd7f7 authored by Robert K's avatar Robert K
Browse files

velocity.

parent 980d5116
No related branches found
No related tags found
1 merge request!4Latest features added to dune-fem-dg.
Pipeline #11235 failed
......@@ -18,6 +18,10 @@ class Compressible2DEuler:
def maxLambda(U,n):
rho, u,v, p = Compressible2DEuler.toPrim(U)
return abs(u*n[0]+v*n[1]) + sqrt(gamma*p/rho)
def velocity(U):
return as_vector( [U[1],U[2]] )
# def physical(U)
# return conditional( (U[0]>1e-8) )
Model = Compressible2DEuler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment