Skip to content
Snippets Groups Projects
Commit 2885c7ef authored by Dennis Gläser's avatar Dennis Gläser Committed by Alexander Kissinger
Browse files

[2pdfm] mobility update in the volume variables

After updating the matrix saturations in the interface condition the mobilities in the matrix have to be updated. This is essential in the dfm approach and was not implemented.
parent 513d0abf
No related branches found
No related tags found
1 merge request!86Fix/2pdfm bug
......@@ -211,6 +211,20 @@ public:
porosityFracture_ = problem.spatialParams().porosityFracture(element,
fvGeometry,
scvIdx);
// After modifying the Matrix saturations we have to update the fluid state and the matrix mobilities
PrimaryVariables updatedMatrixPV;
updatedMatrixPV[pressureIdx] = priVars[pressureIdx];
updatedMatrixPV[saturationIdx] = satWMatrix_;
this->completeFluidState(priVars, problem, element, fvGeometry, scvIdx, fluidState_);
mobilityMatrix_[wPhaseIdx] =
MaterialLaw::krw(materialParamsMatrix, satWMatrix_)
/ fluidState_.viscosity(wPhaseIdx);
mobilityMatrix_[nPhaseIdx] =
MaterialLaw::krn(materialParamsMatrix, satWMatrix_)
/ fluidState_.viscosity(nPhaseIdx);
}
/*!
......
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