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

Port all the tests I forgot

parent 23677214
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 28 deletions
......@@ -2,7 +2,7 @@ f = Expression("Dune::FieldVector<double,2> c(0.5); c-= x; return 4.*(1.-c.two_n
g = Expression("Dune::FieldVector<double,2> c(0.5); c-= x; return std::exp(-1.*c.two_norm2());", on_intersection=True)
cell = triangle
V = FiniteElement("DG", cell, 1, dirichlet_expression=g)
V = FiniteElement("DG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
......
......@@ -8,6 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-14
compare_l2errorsquared = 5e-8
......@@ -5,8 +5,11 @@ c = (0.5-x[0])**2
g = exp(-1.*c)
f = 2*(1.-2*c)*g
V = FiniteElement("CG", cell, 1, dirichlet_expression=g)
V = FiniteElement("CG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
exact_solution = g
is_dirichlet = 1
dirichlet_expression = g
......@@ -8,6 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-2
compare_l2errorsquared = 6e-7
......@@ -30,3 +30,4 @@ r = inner(grad(u), grad(v))*dx \
- gamma*g*v*ds
forms = [r]
exact_solution = g
......@@ -8,5 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_l2errorsquared = 9e-8
......@@ -5,8 +5,11 @@ c = (0.5-x[0])**2 + (0.5-x[1])**2
g = exp(-1.*c)
f = 2*(2.-2*c)*g
V = FiniteElement("CG", cell, 1, dirichlet_expression=g)
V = FiniteElement("CG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
exact_solution = g
is_dirichlet = 1
dirichlet_expression = g
......@@ -10,6 +10,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-14
compare_l2errorsquared = 3e-7
......@@ -4,8 +4,11 @@ x = SpatialCoordinate(cell)
f = -4.
g = x[0]*x[0] + x[1]*x[1]
V = FiniteElement("CG", "triangle", 1, dirichlet_expression=g)
V = FiniteElement("CG", "triangle", 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
\ No newline at end of file
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
exact_solution = g
is_dirichlet = 1
dirichlet_expression = g
......@@ -8,6 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-1
compare_l2errorsquared = 6e-7
......@@ -30,3 +30,4 @@ r = inner(grad(u), grad(v))*dx \
- gamma*g*v*ds
forms = [r]
exact_solution = g
......@@ -10,6 +10,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-1
compare_l2errorsquared = 5e-7
......@@ -29,3 +29,4 @@ r = inner(grad(u), grad(v))*dx \
- gamma*g*v*ds
forms = [r]
exact_solution = g
......@@ -8,6 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-14
compare_l2errorsquared = 9e-5
......@@ -4,8 +4,11 @@ x = SpatialCoordinate(cell)
f = -6.
g = x[0]*x[0] + x[1]*x[1] + x[2]*x[2]
V = FiniteElement("CG", cell, 1, dirichlet_expression=g)
V = FiniteElement("CG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
\ No newline at end of file
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
exact_solution = g
is_dirichlet = 1
dirichlet_expression = g
......@@ -10,6 +10,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-14
compare_l2errorsquared = 1e-4
......@@ -4,8 +4,11 @@ x = SpatialCoordinate(cell)
f = -6.
g = x[0]*x[0] + x[1]*x[1] + x[2]*x[2]
V = FiniteElement("CG", "tetrahedron", 1, dirichlet_expression=g)
V = FiniteElement("CG", "tetrahedron", 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
\ No newline at end of file
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
exact_solution = g
is_dirichlet = 1
dirichlet_expression = g
......@@ -8,6 +8,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1
compare_l2errorsquared = 1e-4
......@@ -30,3 +30,4 @@ r = inner(grad(u), grad(v))*dx \
- gamma*g*v*ds
forms = [r]
exact_solution = g
......@@ -10,6 +10,4 @@ name = {__name}
extension = vtu
[formcompiler]
exact_solution_expression = g
compare_dofs = 1e-2
compare_l2errorsquared = 3e-5
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