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

Add stokes quadrilateral test

parent 7d5a613f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ dune_add_formcompiler_system_test(UFLFILE stokes.ufl
INIFILE stokes.mini
)
dune_add_formcompiler_system_test(UFLFILE stokes_quadrilateral.ufl
BASENAME stokes_quadrilateral
INIFILE stokes_quadrilateral.mini
)
dune_add_formcompiler_system_test(UFLFILE stokes_sym.ufl
BASENAME stokes_sym
INIFILE stokes_sym.mini
......
__name = stokes_quadrilateral_{__exec_suffix}
__exec_suffix = {diff_suffix}
diff_suffix = numdiff, symdiff | expand num
cells = 8 8
extension = 1. 1.
[wrapper.vtkcompare]
name = {__name}
extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
exact_solution_expression = g
compare_l2errorsquared = 1e-11
cell = quadrilateral
x = SpatialCoordinate(cell)
v_bctype = conditional(x[0] < 1. - 1e-8, 1, 0)
g_v = as_vector((4.*x[1]*(1.-x[1]), 0.0))
g_p = 8.*(1.-x[0])
g = (g_v, g_p)
P2 = VectorElement("Lagrange", cell, 2, dirichlet_constraints=v_bctype, dirichlet_expression=g_v)
P1 = FiniteElement("Lagrange", cell, 1)
TH = P2 * P1
v, q = TestFunctions(TH)
u, p = TrialFunctions(TH)
r = (inner(grad(v), grad(u)) - div(v)*p - q*div(u))*dx
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