Skip to content
Snippets Groups Projects
Commit a279e38d authored by Markus Wolff's avatar Markus Wolff
Browse files

changes due to changes in the adaptive 2p model


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6670 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent fb31cfcd
No related branches found
No related tags found
No related merge requests found
gridFile = grids/refinegrid.dgf
tEnd = 100000000
levelInit =4
levelMin =0
levelMax =4
...@@ -132,7 +132,9 @@ int main(int argc, char** argv) ...@@ -132,7 +132,9 @@ int main(int argc, char** argv)
// instantiate and run the concrete problem // instantiate and run the concrete problem
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
TimeManager timeManager; TimeManager timeManager;
Problem problem(timeManager, *gridPtr); Problem problem(timeManager, gridPtr->leafView());
problem.setGrid(*gridPtr);
problem.gridAdapt().setLevels(Params::tree().get<int>("levelMin"), Params::tree().get<int>("levelMax"));
// load restart file if necessarry // load restart file if necessarry
if (restart) if (restart)
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <dumux/decoupled/2p/transport/fv/fvsaturation2p.hh> #include <dumux/decoupled/2p/transport/fv/fvsaturation2p.hh>
#include <dumux/decoupled/2p/transport/fv/capillarydiffusion.hh> #include <dumux/decoupled/2p/transport/fv/capillarydiffusion.hh>
#include <dumux/decoupled/2p/transport/fv/gravitypart.hh> #include <dumux/decoupled/2p/transport/fv/gravitypart.hh>
#include <dumux/decoupled/2p/variableclass2p_gridadapt.hh>
#include "test_impes_adaptive_spatialparams.hh" #include "test_impes_adaptive_spatialparams.hh"
...@@ -104,8 +105,14 @@ public: ...@@ -104,8 +105,14 @@ public:
typedef Dumux::LiquidPhase<Scalar, Dumux::SimpleH2O<Scalar> > type; typedef Dumux::LiquidPhase<Scalar, Dumux::SimpleH2O<Scalar> > type;
}; };
SET_PROP(TestIMPESAdaptiveProblem, Variables)
{
typedef Dumux::VariableClass2PGridAdapt<TypeTag> type;
};
// Enable gravity // Enable gravity
SET_BOOL_PROP(TestIMPESAdaptiveProblem, EnableGravity, false); SET_BOOL_PROP(TestIMPESAdaptiveProblem, EnableGravity, false);
SET_BOOL_PROP(TestIMPESAdaptiveProblem, AdaptiveGrid, true);
SET_TYPE_PROP(TestIMPESAdaptiveProblem, EvalCflFluxFunction, Dumux::EvalCflFluxCoats<TypeTag>); SET_TYPE_PROP(TestIMPESAdaptiveProblem, EvalCflFluxFunction, Dumux::EvalCflFluxCoats<TypeTag>);
...@@ -128,9 +135,10 @@ SET_INT_PROP(TestIMPESAdaptiveProblem, MaxIntersections, 8); ...@@ -128,9 +135,10 @@ SET_INT_PROP(TestIMPESAdaptiveProblem, MaxIntersections, 8);
* where the argument defines the simulation endtime. * where the argument defines the simulation endtime.
*/ */
template<class TypeTag = TTAG(TestIMPESAdaptiveProblem)> template<class TypeTag = TTAG(TestIMPESAdaptiveProblem)>
class TestIMPESAdaptiveProblem: public IMPESProblem2Padaptive<TypeTag> class TestIMPESAdaptiveProblem: public IMPESProblem2P<TypeTag>//IMPESProblem2Padaptive<TypeTag>
{ {
typedef IMPESProblem2Padaptive<TypeTag> ParentType; //typedef IMPESProblem2Padaptive<TypeTag> ParentType;
typedef IMPESProblem2P<TypeTag> ParentType;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Grid)) Grid; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Grid)) Grid;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView; typedef typename GET_PROP_TYPE(TypeTag, PTAG(GridView)) GridView;
...@@ -165,8 +173,8 @@ typedef typename GET_PROP_TYPE(TypeTag, PTAG(BoundaryTypes)) BoundaryTypes; ...@@ -165,8 +173,8 @@ typedef typename GET_PROP_TYPE(TypeTag, PTAG(BoundaryTypes)) BoundaryTypes;
typedef typename GET_PROP(TypeTag, PTAG(SolutionTypes))::PrimaryVariables PrimaryVariables; typedef typename GET_PROP(TypeTag, PTAG(SolutionTypes))::PrimaryVariables PrimaryVariables;
public: public:
TestIMPESAdaptiveProblem(TimeManager &timeManager, Grid &grid) : TestIMPESAdaptiveProblem(TimeManager &timeManager, const GridView &gridView) :
ParentType(timeManager, grid) ParentType(timeManager, gridView)
{ {
this->setOutputInterval(10); this->setOutputInterval(10);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment