Skip to content
Snippets Groups Projects
Commit 06c98c39 authored by Hanchuan Wu's avatar Hanchuan Wu Committed by Kilian Weishaupt
Browse files

[pnm][2p][fluxVarCache] wetting phase cross sectional area can not be larger...

[pnm][2p][fluxVarCache] wetting phase cross sectional area can not be larger than total cross sectional area
parent 17e939f7
No related branches found
No related tags found
1 merge request!2997[pnm][2p][fluxVarCache] wetting phase cross sectional area can not be larger...
Pipeline #12757 passed
+2
......@@ -83,6 +83,11 @@ public:
wettingLayerArea_[i] = Throat::wettingLayerCrossSectionalArea(curvatureRadius(), theta, cornerHalfAngles[i]);
throatCrossSectionalArea_[wPhaseIdx()] = std::accumulate(wettingLayerArea_.begin(), wettingLayerArea_.end(), 0.0);
if (const Scalar totalArea = spatialParams.throatCrossSectionalArea(element, elemVolVars); throatCrossSectionalArea_[wPhaseIdx()] > totalArea)
{
std::cout << "\n\n *** WARNING : Sum of wetting phase layer areas exceeds total throat cross-sectional area. Clamping the result. *** \n" << std::endl;
throatCrossSectionalArea_[wPhaseIdx()] = totalArea;
}
throatCrossSectionalArea_[nPhaseIdx()] = spatialParams.throatCrossSectionalArea(element, elemVolVars) - throatCrossSectionalArea_[wPhaseIdx()];
}
else // single-phase flow
......
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