Skip to content
Snippets Groups Projects
Commit f8a268d3 authored by René Heß's avatar René Heß
Browse files

Cleanup heatequation tests

parent b74e4d86
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ extension = vtu ...@@ -14,7 +14,7 @@ extension = vtu
[formcompiler] [formcompiler]
explicit_time_stepping = 0, 1 | expand scheme explicit_time_stepping = 0, 1 | expand scheme
exact_solution_expression = g exact_solution_expression = g
compare_l2errorsquared = 1e-5 compare_l2errorsquared = 1e-7
# Disable explicit tests for now # Disable explicit tests for now
{__exec_suffix} == explicit | exclude {__exec_suffix} == explicit | exclude
...@@ -9,18 +9,21 @@ v = TestFunction(V) ...@@ -9,18 +9,21 @@ v = TestFunction(V)
n = FacetNormal(cell)('+') n = FacetNormal(cell)('+')
# penalty factor
gamma = 1.0 gamma = 1.0
# SSIP: -1.0, IIPG: 0.0, NIPG: 1.0
theta = 1.0 theta = 1.0
poisson = inner(grad(u), grad(v))*dx \ poisson = inner(grad(u), grad(v))*dx \
+ inner(n, avg(grad(u)))*jump(v)*dS \ + inner(n, avg(grad(u)))*jump(v)*dS \
+ gamma*jump(u)*jump(v)*dS \ + gamma*jump(u)*jump(v)*dS \
+ theta*jump(u)*inner(avg(grad(v)), n)*dS \ - theta*jump(u)*inner(avg(grad(v)), n)*dS \
- inner(n, grad(u))*v*ds \ - inner(n, grad(u))*v*ds \
+ gamma*u*v*ds \ + gamma*u*v*ds \
- theta*u*inner(grad(v), n)*ds \ + theta*u*inner(grad(v), n)*ds \
- f*v*dx \ - f*v*dx \
+ theta*g*inner(grad(v), n)*ds \ - theta*g*inner(grad(v), n)*ds \
- gamma*g*v*ds - gamma*g*v*ds
mass = (u*v)*dx mass = (u*v)*dx
......
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