tutorial: add defaults so that they run without parameters, make handbook compile again

This commit is contained in:
Andreas Lauser
2012-09-24 20:13:29 +02:00
parent 5371f08ac1
commit 4c2885cc82
4 changed files with 20 additions and 14 deletions
+8 -8
View File
@@ -50,8 +50,7 @@
// provides Dune::FieldVector
#include <dune/common/fvector.hh>
namespace Dumux
{
namespace Dumux {
template<class TypeTag>
class TutorialProblemDecoupled;
@@ -59,16 +58,14 @@ class TutorialProblemDecoupled;
//////////
// Specify the properties for the lens problem
//////////
namespace Properties
{
namespace Properties {
// create a new type tag for the problem
NEW_TYPE_TAG(TutorialProblemDecoupled, INHERITS_FROM(FVPressureTwoP, FVTransportTwoP, IMPESTwoP, TutorialSpatialParamsDecoupled)); /*@\label{tutorial-decoupled:create-type-tag}@*/
// Set the problem property
SET_PROP(TutorialProblemDecoupled, Problem) /*@\label{tutorial-decoupled:set-problem}@*/
{
typedef Dumux::TutorialProblemDecoupled<TypeTag> type;
};
SET_TYPE_PROP(TutorialProblemDecoupled, /*@\label{tutorial-decoupled:set-problem}@*/
Problem,
Dumux::TutorialProblemDecoupled<TypeTag>);
// Set the grid type
SET_TYPE_PROP(TutorialProblemDecoupled, Grid, Dune::YaspGrid<2>); /*@\label{tutorial-decoupled:set-grid-type}@*/
@@ -100,6 +97,9 @@ SET_SCALAR_PROP(TutorialProblemDecoupled, ImpetCflFactor, 0.95); /*@\label{tutor
// Disable gravity
SET_BOOL_PROP(TutorialProblemDecoupled, EnableGravity, false); /*@\label{tutorial-decoupled:gravity}@*/
// define how long the simulation should run [s]
SET_SCALAR_PROP(TutorialProblemDecoupled, EndTime, 100e3);
// define the properties required by the cube grid creator
SET_SCALAR_PROP(TutorialProblemDecoupled, DomainSizeX, 300.0);
SET_SCALAR_PROP(TutorialProblemDecoupled, DomainSizeY, 60.0);