Skip to content
Snippets Groups Projects
Commit 7e533976 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

add a euler module

parent c1503263
No related branches found
No related tags found
1 merge request!4Latest features added to dune-fem-dg.
Pipeline #11216 failed
from ufl import *
exec(open("euler.ufl").read())
def RiemanProblem(UL,UR):
x = SpatialCoordinate(space.cell())
return conditional(x[0]<0,as_vector(UL),as_vector(UR))
def Sod():
return RiemanProblem( Model.toCons([1,0,0,1]),
Model.toCons([0.125,0,0,0.1]) )
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