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
Commits
f09ab934
Commit
f09ab934
authored
9 years ago
by
Ole Klein
Browse files
Options
Downloads
Patches
Plain Diff
tutorial 04: minor text corrections
parent
4ec6efbd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorial04/doc/tutorial04.tex
+9
-9
9 additions, 9 deletions
tutorial04/doc/tutorial04.tex
with
9 additions
and
9 deletions
tutorial04/doc/tutorial04.tex
+
9
−
9
View file @
f09ab934
...
...
@@ -175,8 +175,8 @@ DUNE and PDELab header files
and contains the
\lstinline
{
main
}
function where the execution starts.
The purpose of the
\lstinline
{
main
}
function is
to instantiate DUNE grid objects and call the
\lstinline
{
driver
}
function.
\item
File
\lstinline
{
driver.hh
}
instantiates the necessary PDELab classes
for solving a
non
linear stationary problem and finally solves the problem.
\item
File
\lstinline
{
driver.hh
}
instantiates the necessary PDELab classes
for solving a linear
in
stationary problem and finally solves the problem.
\item
File
\lstinline
{
wavefem.hh
}
contains the local operator classes
\lstinline
{
WaveFEM
}
and
\lstinline
{
WaveL2
}
realizing the spatial
and temporal residual forms.
...
...
@@ -195,7 +195,7 @@ backgroundcolor=\color{listingbg}]{../src/tutorial04.ini}
\subsection
{
Function
\lstinline
{
main
}}
The
\lstinline
{
main
}
function is very similar to the one in tutorial 03.
In order to simplify things
just
structured grids
\lstinline
{
OneDGrid
}
In order to simplify things
only the
structured grids
\lstinline
{
OneDGrid
}
and
\lstinline
{
YaspGrid
}
are used.
\subsection
{
Function
\lstinline
{
driver
}}
...
...
@@ -209,7 +209,7 @@ frame=single,
backgroundcolor=
\color
{
listingbg
}
]
{
../src/driver.hh
}
There are several changes now in the driver due to the system of PDEs.
The first step is to set
a
the grid function space using the given finite
The first step is to set
up
the grid function space using the given finite
element map:
\lstinputlisting
[linerange=
{
15-18
}
,
basicstyle=
\ttfamily\small
,
...
...
@@ -260,8 +260,8 @@ closure
basicstyle=
\ttfamily\small
,
frame=single,
backgroundcolor=
\color
{
listingbg
}
]
{
../src/driver.hh
}
now returning
now
two components in a
\lstinline
{
FieldVector
}
.
The first component is the initial value for
$
u
$
the second component
now returning two components in a
\lstinline
{
FieldVector
}
.
The first component is the initial value for
$
u
$
and
the second component
is the initial value for
$
\partial
_
t u
$
. Then a PDELab grid function
can be constructed from the lambda closure
\lstinputlisting
[linerange=
{
35-35
}
,
...
...
@@ -307,7 +307,7 @@ and then combine it using:
basicstyle=
\ttfamily\small
,
frame=single,
backgroundcolor=
\color
{
listingbg
}
]
{
../src/driver.hh
}
Note that you could different constraints for each component
Note that you could
define
different constraints for each component
space although it is the same underlying function space.
Now the constraints container can be assembled as before:
...
...
@@ -361,7 +361,7 @@ we select a quadrature rule
basicstyle=
\ttfamily\small
,
frame=single,
backgroundcolor=
\color
{
listingbg
}
]
{
../src/wavefem.hh
}
and may now loop over the quadrature points
and may now loop over the quadrature points
.
For each quadrature point, evaluate the basis function
of the first component:
...
...
@@ -395,7 +395,7 @@ With the integration factor
basicstyle=
\ttfamily\small
,
frame=single,
backgroundcolor=
\color
{
listingbg
}
]
{
../src/wavefem.hh
}
the residuals can now be accumulated
the residuals can now be accumulated
:
\lstinputlisting
[linerange=
{
102-105
}
,
basicstyle=
\ttfamily\small
,
frame=single,
...
...
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