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

Merge branch 'feature/stokes-3d-tests' into 'master'

Test with analytical solution for Stokes 3D

See merge request dominic/dune-perftool!185
parents 974e6d7f 9ca50c86
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,4 @@ extension = vtu
[formcompiler]
numerical_jacobian = 0, 1 | expand num
compare_l2errorsquared = 2e-8
\ No newline at end of file
cell = hexahedron
x = SpatialCoordinate(cell)
g_v = as_vector((16.*x[1]*(1.-x[1])*x[2]*(1.-x[2]), 0.0, 0.0))
g_v = as_vector((4.*x[1]*(1.-x[1]), 0.0, 0.0))
bctype = conditional(x[0] < 1. - 1e-8, 1, 0)
P2 = VectorElement("DG", cell, 2)
......@@ -33,3 +33,4 @@ r = inner(grad(u), grad(v))*dx \
- q*inner(g_v, n)*ds
forms = [r]
exact_solution = g_v, 8.*(1.-x[0])
......@@ -12,3 +12,4 @@ extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 1e-10
\ No newline at end of file
......@@ -2,7 +2,7 @@ cell = hexahedron
x = SpatialCoordinate(cell)
v_bctype = conditional(x[0] < 1. - 1e-8, 1, 0)
g_v = as_vector((16.*x[1]*(1.-x[1])*x[2]*(1.-x[2]), 0.0, 0.0))
g_v = as_vector((4.*x[1]*(1.-x[1]), 0.0, 0.0))
P2 = VectorElement("Lagrange", cell, 2)
P1 = FiniteElement("Lagrange", cell, 1)
......@@ -14,5 +14,6 @@ u, p = TrialFunctions(TH)
r = (inner(grad(v), grad(u)) - div(v)*p - q*div(u))*dx
forms = [r]
exact_solution = g_v, 8.*(1.-x[0])
is_dirichlet = v_bctype, v_bctype, v_bctype, 0
dirichlet_expression = g_v, None
__name = sumfact_poisson_dg_3d_diagonal
cells = 8 8 8
cells = 4 4 4
extension = 1. 1. 1.
[wrapper.vtkcompare]
......@@ -13,8 +13,8 @@ compare_l2errorsquared = 1e-5
vectorize_quad = 1
vectorize_grads = 0
vectorize_diagonal = 1
quadrature_order = 6
quadrature_order = 6, 6, 6
fastdg = 1
[formcompiler.ufl_variants]
degree = 2
degree = 3
......@@ -15,3 +15,4 @@ extension = vtu
numerical_jacobian = 0
sumfact = 1
fastdg = 1, 0 | expand fastdg
compare_l2errorsquared = 1e-10
\ No newline at end of file
cell = hexahedron
x = SpatialCoordinate(cell)
g_v = as_vector((16.*x[1]*(1.-x[1])*x[2]*(1.-x[2]), 0.0, 0.0))
g_v = as_vector((4.*x[1]*(1.-x[1]), 0.0, 0.0))
bctype = conditional(x[0] < 1. - 1e-8, 1, 0)
P2 = VectorElement("DG", cell, 2)
......@@ -33,3 +33,4 @@ r = inner(grad(u), grad(v))*dx \
- q*inner(g_v, n)*ds
forms = [r]
exact_solution = g_v, 8.*(1.-x[0])
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