Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-pdelab-tutorials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
PDELab
dune-pdelab-tutorials
Merge requests
!76
Bugfix in Navier Stokes exercise
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bugfix in Navier Stokes exercise
bugfix/tutorial09
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
René Heß
requested to merge
bugfix/tutorial09
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
091b89df
1 commit,
5 years ago
1 file
+
10
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tutorial09/exercise/doc/exercise09.tex
+
10
−
9
Options
@@ -130,25 +130,26 @@ dune-course/release-build/dune-pdelab-tutorials/tutorial09/exercise/task/src_dir
p|
_{
t=0
}
&
= 0.
\\
\end{align*}
A discretization of this equation is: Find
A
semi-
discretization
in space
of this equation is: Find
$
(
\vec
{
u
}_
h,p
_
h
)
\in
U
_
h
\times
Q
_
h
$
with
\begin{equation*}
r
_
h(
\vec
{
u
}_
h, p
_
h,
v
_
h, q
_
h) = 0
\qquad
\forall
(
v
_
h,q
_
h)
\in
V
_
h
\times
Q
_
h
\rho
(
\partial
_
t
\vec
{
u
}_
h,
\vec
{
v
}_
h)
_
\Omega
+
r
_
h(
\vec
{
u
}_
h, p
_
h,
\vec
{
v
}
_
h, q
_
h) = 0
\qquad
\forall
(
\vec
{
v
}
_
h,q
_
h)
\in
V
_
h
\times
Q
_
h
\end{equation*}
for appropriate function spaces
$
U
_
h
$
,
$
V
_
h
$
,
$
Q
_
h
$
and residual
\begin{equation}
r
_
h(
u,p,v
,q)
=
\nu
(
\nabla
u
,
\nabla
v
)
_{
0,
\Omega
}
- (p,
\nabla
\cdot
v
)
_{
0,
\Omega
}
- (q,
\nabla
\cdot
u
)
_{
0,
\Omega
}
+
\rho
((
\nabla
u) u, v
)
_{
0,
\Omega
}
r
_
h(
\vec
{
u
}
,p,
\vec
{
v
}
,q)
=
\nu
(
\nabla
\vec
{
u
}
,
\nabla
\vec
{
v
}
)
_{
0,
\Omega
}
- (p,
\nabla
\cdot
\vec
{
v
}
)
_{
0,
\Omega
}
- (q,
\nabla
\cdot
\vec
{
u
}
)
_{
0,
\Omega
}
+
\rho
((
\nabla
\vec
{
u
}
)
\vec
{
u
}
,
\vec
{
v
}
)
_{
0,
\Omega
}
\label
{
eq:ns-residual
}
\end{equation}
Go to the source directory of this exercise. There you will find the files
\lstinline
{
navier
_
stokes.ufl
}
and
\lstinline
{
navier
_
stokes.ini
}
. Open the UFL
file and implement the correct residual and boundary conditions. For
generating the
\CC\
file and compiling go to the build directory and type
file and implement the correct residual for the spatial discretization and
the correct boundary conditions. For generating the
\CC\
file and compiling
go to the build directory and type
\begin{lstlisting}
make navier
_
stokes
\end{lstlisting}
Loading