diff --git a/doc/handbook/dumux-handbook.tex b/doc/handbook/dumux-handbook.tex index 9fd1ae899..4b1c7f19a 100644 --- a/doc/handbook/dumux-handbook.tex +++ b/doc/handbook/dumux-handbook.tex @@ -89,6 +89,7 @@ Universit\"at Stuttgart, Paffenwaldring 61, D-70569 Stuttgart, Germany}\\ \input{intro} \input{getting-started} \input{tutorial} +\input{structure} \input{models} \bibliographystyle{plain} diff --git a/doc/handbook/structure.tex b/doc/handbook/structure.tex new file mode 100644 index 000000000..3e95c64a1 --- /dev/null +++ b/doc/handbook/structure.tex @@ -0,0 +1,2 @@ +\chapter{Structure} + diff --git a/examples/tutorial_decoupled.cc b/examples/tutorial_decoupled.cc index 4202559e7..08df9e1e5 100644 --- a/examples/tutorial_decoupled.cc +++ b/examples/tutorial_decoupled.cc @@ -39,38 +39,38 @@ int main(int argc, char** argv) const int dim=2; /*@\label{tutorial-decoupled:dim}@*/ // create a grid object - typedef double NumberType; /*@\label{tutorial-decoupled:grid-begin}@*/ - typedef Dune::SGrid GridType; - typedef GridType::LevelGridView GridView; - typedef Dune::FieldVector FieldVector; + typedef double Scalar; /*@\label{tutorial-decoupled:grid-begin}@*/ + typedef Dune::SGrid Grid; + typedef Grid::LevelGridView GridView; + typedef Dune::FieldVector FieldVector; Dune::FieldVector N(10); N[0] = 30; FieldVector L(0); FieldVector H(300); H[0] = 600; - GridType grid(N,L,H); + Grid grid(N,L,H); GridView gridView(grid.levelView(0));/*@\label{tutorial-decoupled:grid-end}@*/ // define fluid and solid properties and constitutive relationships Dune::Water wettingfluid; /*@\label{tutorial-decoupled:water}@*/ Dune::Oil nonwettingfluid; /*@\label{tutorial-decoupled:oil}@*/ - Dune::TutorialSoil soil; /*@\label{tutorial-decoupled:soil}@*/ - Dune::TwoPhaseRelations materialLaw(soil, wettingfluid, nonwettingfluid);/*@\label{tutorial-decoupled:twophaserelations}@*/ + Dune::TutorialSoil soil; /*@\label{tutorial-decoupled:soil}@*/ + Dune::TwoPhaseRelations materialLaw(soil, wettingfluid, nonwettingfluid);/*@\label{tutorial-decoupled:twophaserelations}@*/ // create object containing the variables - typedef Dune::VariableClass VariableType; - VariableType variables(gridView); + typedef Dune::VariableClass VariableClass; + VariableClass variables(gridView); // create object including the problem definition - typedef Dune::TutorialProblemDecoupled Problem; + typedef Dune::TutorialProblemDecoupled Problem; Problem problem(variables, wettingfluid, nonwettingfluid, soil, materialLaw,L, H); /*@\label{tutorial-decoupled:problem}@*/ // create object including the discretisation of the pressure equation - typedef Dune::FVTotalVelocity2P DiffusionType; - DiffusionType diffusion(gridView, problem, "pw"); /*@\label{tutorial-decoupled:diffusion}@*/ + typedef Dune::FVTotalVelocity2P Diffusion; + Diffusion diffusion(gridView, problem, "pw"); /*@\label{tutorial-decoupled:diffusion}@*/ // create object including the space discretisation of the saturation equation - typedef Dune::FVSaturationWetting2P TransportType; - TransportType transport(gridView, problem, "vt"); /*@\label{tutorial-decoupled:transport}@*/ + typedef Dune::FVSaturationWetting2P Transport; + Transport transport(gridView, problem, "vt"); /*@\label{tutorial-decoupled:transport}@*/ // some parameters used in the IMPES-object int iterFlag = 2; @@ -78,8 +78,8 @@ int main(int argc, char** argv) double maxDefect = 1e-5; // create object including the IMPES (IMplicit Pressure Explicit Saturation) algorithm - typedef Dune::IMPES IMPESType; - IMPESType impes(diffusion, transport, iterFlag, nIter, maxDefect); /*@\label{tutorial-decoupled:impes}@*/ + typedef Dune::IMPES IMPES; + IMPES impes(diffusion, transport, iterFlag, nIter, maxDefect); /*@\label{tutorial-decoupled:impes}@*/ // some parameters needed for the TimeLoop-object double tStart = 0; // start simulation at t = tStart @@ -89,7 +89,7 @@ int main(int argc, char** argv) double cFLFactor = 0.9; // security factor for the Courant-Friedrichs-Lewy-Criterion // create TimeLoop-object - Dune::TimeLoop timeloop(tStart, tEnd, fileName, modulo, cFLFactor); /*@\label{tutorial-decoupled:timeloop}@*/ + Dune::TimeLoop timeloop(tStart, tEnd, fileName, modulo, cFLFactor); /*@\label{tutorial-decoupled:timeloop}@*/ Dune::Timer timer; timer.reset();