Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
4a129ccb
Commit
4a129ccb
authored
8 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Set up stokes dg example
parent
87b878f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/stokes/CMakeLists.txt
+5
-0
5 additions, 0 deletions
test/stokes/CMakeLists.txt
test/stokes/stokes_dg.ufl
+17
-0
17 additions, 0 deletions
test/stokes/stokes_dg.ufl
with
22 additions
and
0 deletions
test/stokes/CMakeLists.txt
+
5
−
0
View file @
4a129ccb
...
@@ -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
)
This diff is collapsed.
Click to expand it.
test/stokes/stokes_dg.ufl
0 → 100644
+
17
−
0
View file @
4a129ccb
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]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment