Skip to content
Snippets Groups Projects
Commit 4a129ccb authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Set up stokes dg example

parent 87b878f5
No related branches found
No related tags found
No related merge requests found
...@@ -9,3 +9,8 @@ dune_add_system_test(TARGET stokes_numdiff ...@@ -9,3 +9,8 @@ dune_add_system_test(TARGET stokes_numdiff
INIFILE stokes_numdiff.mini INIFILE stokes_numdiff.mini
SCRIPT dune_vtkcompare.py SCRIPT dune_vtkcompare.py
) )
add_generated_executable(UFLFILE stokes_dg.ufl
TARGET stokes_dg_numdiff
FORM_COMPILER_ARGS --numerical-jacobian
)
cell = triangle
P2 = VectorElement("Lagrange", cell, 2)
P1 = FiniteElement("Lagrange", cell, 1)
TH = P2 * P1
v, q = TestFunctions(TH)
u, p = TrialFunctions(TH)
n = FacetNormal(cell)('+')
eps = -1.0
r = \
+ eps*inner(avg(grad(v))*n, jump(u))*dS
# + inner(grad(u), grad(v))*dx \
# - inner(avg(grad(u))*n, jump(v))*dS \
forms = [r]
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