From 35f940783e252055e48690c536c7dbefabe3b6ae Mon Sep 17 00:00:00 2001 From: Philipp Nuske <philipp.nuske@mailbox.org> Date: Tue, 14 Feb 2012 17:11:38 +0000 Subject: [PATCH] - added a tiny exercise to the coupled tutorial: change from cubes to simplex git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7776 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- doc/handbook/dumux-handbook.tex | 1 + doc/handbook/tutorial-coupled.tex | 9 ++++++--- tutorial/tutorialproblem_coupled.hh | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/handbook/dumux-handbook.tex b/doc/handbook/dumux-handbook.tex index 51fd5be9d7..f69b694435 100644 --- a/doc/handbook/dumux-handbook.tex +++ b/doc/handbook/dumux-handbook.tex @@ -42,6 +42,7 @@ \usepackage{enumerate} \usepackage{rotating} \usepackage{subfig} +\usepackage{units} \ifpdf \usepackage{auto-pst-pdf} diff --git a/doc/handbook/tutorial-coupled.tex b/doc/handbook/tutorial-coupled.tex index f7d8115fe4..a0936421ae 100644 --- a/doc/handbook/tutorial-coupled.tex +++ b/doc/handbook/tutorial-coupled.tex @@ -351,9 +351,9 @@ to make only some small changes in the tutorial files. \item \textbf{Changing the Model Domain and the Boundary Conditions} \\ Change the size of the model domain so that you get a rectangle with - edge lengths of $\text{x} = 400 m$ and $\text{y} = 500 m$ and with - discretization lengths of $\Delta \text{x} = 20$ m and $\Delta - \text{y} = 20$ m. + edge lengths of $\text{x} = \unit[400]{m}$ and $\text{y} = \unit[500]{m}$ and with + discretization lengths of $\Delta \text{x} = \unit[20]{m}$ and $\Delta + \text{y} = \unit[20]{m}$. Change the boundary conditions in the file \texttt{tutorialproblem\_coupled.hh} so that water enters from the @@ -363,6 +363,9 @@ to make only some small changes in the tutorial files. Compile the main file by typing \texttt{make tutorial\_coupled} and run the model as explained above. + \item \textbf{Changing the shape of the discrete elements} \\ + 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/}. The shape of the employed elements can be visualized in paraview by choosing \texttt{Surface with Edges}. + \item \textbf{Changing Fluids} \\ Now you can change the fluids. Use DNAPL instead of Oil and Brine instead of Water. To do that, you have to select different components via the property system in the problem file: \begin{enumerate} diff --git a/tutorial/tutorialproblem_coupled.hh b/tutorial/tutorialproblem_coupled.hh index 330c6a728a..105cf8348f 100644 --- a/tutorial/tutorialproblem_coupled.hh +++ b/tutorial/tutorialproblem_coupled.hh @@ -57,7 +57,7 @@ SET_PROP(TutorialProblemCoupled, Problem) /*@\label{tutorial-coupled:set-problem // Set grid and the grid creator to be used SET_TYPE_PROP(TutorialProblemCoupled, Grid, Dune::YaspGrid</*dim=*/2>); /*@\label{tutorial-coupled:set-grid}@*/ -SET_TYPE_PROP(TutorialProblemCoupled, GridCreator, Dumux::CubeGridCreator<TypeTag>); /*@\label{tutorial-coupled:set-grid}@*/ +SET_TYPE_PROP(TutorialProblemCoupled, GridCreator, Dumux::CubeGridCreator<TypeTag>); /*@\label{tutorial-coupled:set-gridcreator}@*/ // Set the wetting phase SET_PROP(TutorialProblemCoupled, WettingPhase) /*@\label{tutorial-coupled:2p-system-start}@*/ -- GitLab