correct the treatment of the pressure equation

the derivative of the inlet contribution should go to the correction
location in duneD_.
This commit is contained in:
Kai Bao
2017-09-15 13:42:15 +02:00
parent c3b4188295
commit 5ffd2bf026
2 changed files with 42 additions and 29 deletions

View File

@@ -322,9 +322,9 @@ namespace Opm
const int perf,
std::vector<EvalWell>& mob) const;
EvalWell getControlEq() const;
void assembleControlEq() const;
EvalWell getPressureEq(const int seg) const;
void assemblePressureEq(const int seg) const;
// hytrostatic pressure loss
EvalWell getHydorPressureLoss(const int seg) const;
@@ -348,7 +348,7 @@ namespace Opm
// Sequential incomplete LU decomposition as the preconditioner
Dune::SeqILU0<MatrixType, VectorType, VectorType> preconditioner(D, 1.0);
// Preconditioned conjugate gradient solver
// Preconditioned BICGSTAB solver
Dune::BiCGSTABSolver<VectorType> linsolver(linearOperator,
preconditioner,
1.e-6, // desired residual reduction factor