Commit d039e847 authored by Alexander Kissinger's avatar Alexander Kissinger
Browse files

Several changes in the coupled tutorial in the handbook

git-svn-id: svn:// 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent db4dbf85
......@@ -339,7 +339,7 @@ The following exercises will give you the opportunity to learn how you
can change soil parameters, boundary conditions, run-time parameters
and fluid properties in \Dumux. Possible solutions to these exercises are given in the tutorial folder in the
sub-folder \texttt{solutions\_coupled} as \texttt{.diff} files. In these files only the lines that are different from the original file are listed.
They can be opened with any editor.
They can be opened using the program \texttt{kompare}, simply type \texttt{kompare SOLUTIONFILE} into the terminal.
\subsubsection{Exercise 1}
\renewcommand{\labelenumi}{\alph{enumi})} For Exercise 1 you have
......@@ -372,6 +372,8 @@ For the visualization of the results using paraview please refer to section \ref
run the model as explained above.
\item \textbf{Changing the Shape of the Discrete Elements} \\
In order to complete this exercise you need a grid module capable of handeling
simplex grids, like \texttt{ALUSimplexGrid}. If this is not the case please skip this exercise.
Change the types of elements used for discretizing the domain. In line \ref{tutorial-coupled:set-gridcreator} of the problem
file the type of gridcreator is chosen. By choosing a different grid creator you can discretize the domain with different elements.
Hint: You can find gridcreators in \texttt{dumux/common/}, change for example from \texttt{cubegridcreator.hh} to \texttt{simplexgridcreator.hh}.
......@@ -437,7 +439,7 @@ Call the \texttt{set}-functions from the constructor of the \texttt{tutorialspat
\caption{Exercise 1f: Set-up of a model domain with a heterogeneity. $\Delta x = 20 \;\text{m}$ $\Delta y = 20\;\text{m}$.}\label{tutorial-coupled:exercise1_d}
domain. You can use the fluids of exercise 1c).\\
domain. You can use the fluids of exercise 1b).\\
\textbf{Hint:} The current position of the control volume can be obtained using \texttt{element\allowbreak.geometry()\allowbreak.corner(scvIdx)}, which
returns a vector of the global coordinates of the current position.\\
When does the front cross the material border? In paraview, the
......@@ -461,10 +463,11 @@ guardian macros in lines \ref{tutorial-coupled:guardian1} and
in the header files (e.g. change
\mbox{\texttt{DUMUX\_EX2\_TUTORIALPROBLEM\_COUPLED\_HH}}). Include the new problem file in \texttt{tutorial\}.
Besides adjusting the guardian macros, the new problem file should define and
use a new type tag for the problem as well as a new problem class
e.g. \mbox{\texttt{Ex2TutorialProblemCoupled}}. Similarly adjust your new spatial parameters file. If you are using Eclipse there is
e.g. \mbox{\texttt{Ex2TutorialProblemCoupled}}. The type tag definition has to be adjusted in \texttt{tutorial\} too (see line \ref{tutorial-coupled:set-type-tag}).
Similarly adjust your new spatial parameters file. If you are using Eclipse there is
a very helpful function called \texttt{Refactor} which you can use to change
all similar variables or types in your current file in one go. Just place the cursor at the variable or type you want to change
and use the \texttt{Refactor} $\rightarrow$ \texttt{Rename} functionality. Make sure to assign your
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment