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

small bugs in time-step calculation of decoupled 2p modell fixed


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5380 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 2cec2810
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,7 @@ public:
Scalar dPcdSI = MaterialLaw::dpC_dSw(problem_.spatialParameters().materialLawParams(globalPos,
*(intersection.inside())), satI);
const Dune::FieldVector<Scalar, dimWorld>& unitOuterNormal = intersection.centerUnitOuterNormal();
if (intersection.neighbor())
......@@ -136,7 +137,7 @@ public:
potentialW = problem_.variables().potentialWetting(globalIdxI, indexInInside);
potentialNW = problem_.variables().potentialNonwetting(globalIdxI, indexInInside);
Scalar satJ = problem_.variables().saturation()[globalIdxI];
Scalar satJ = problem_.variables().saturation()[globalIdxJ];
Scalar lambdaWJ = problem_.variables().mobilityWetting(globalIdxJ);
Scalar lambdaNWJ = problem_.variables().mobilityNonwetting(globalIdxJ);
......@@ -438,11 +439,11 @@ public:
cflFluxFunction_ = 0;
}
if (cflFluxDefault > 1)
std::cout << "cflFluxDefault = " << cflFluxDefault << "\n";
if (cflFluxFunction_ > 1)
std::cout << "cflFluxFunction_ = " << cflFluxFunction_ << "\n";
// if (cflFluxDefault > 1)
// std::cout << "cflFluxDefault = " << cflFluxDefault << "\n";
//
// if (cflFluxFunction_ > 1)
// std::cout << "cflFluxFunction_ = " << cflFluxFunction_ << "\n";
Scalar returnValue = std::max(cflFluxFunction_, cflFluxDefault);
reset();
......@@ -473,7 +474,7 @@ private:
static const int pressureType_ = GET_PROP_VALUE(TypeTag, PTAG(PressureFormulation));
static const int velocityType_ = GET_PROP_VALUE(TypeTag, PTAG(VelocityFormulation));
static const int saturationType_ = GET_PROP_VALUE(TypeTag, PTAG(SaturationFormulation));
static const Scalar eps_ = 1e-2;
static const Scalar eps_ = 5e-3;
};
}
......
......@@ -227,7 +227,7 @@ typename EvalCflFluxDefault<TypeTag>::Scalar EvalCflFluxDefault<TypeTag>::getCfl
}
if (saturationType_ == Sn)
{
volumeCorrectionFactorOutNW = std::max((1 - sat - residualSatNW), 1e-2);
volumeCorrectionFactorOutW = std::max((1 - sat - residualSatW), 1e-2);
volumeCorrectionFactorOutNW = std::max((sat - residualSatNW), 1e-2);
}
......
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