Skip to content
Snippets Groups Projects
Commit 593acef6 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[stokes][localResidual] Add a wall friction term

*To account for a dimensional reduction from 3d to 2d
parent c6cd9c3b
No related branches found
No related tags found
1 merge request!235[stokes][localResidual] Add a wall friction term
......@@ -328,6 +328,12 @@ protected:
{
source[momentumXIdx + dimIdx] -= pressureGradAtSCVCenter[dimIdx];
source[momentumXIdx + dimIdx] += volVars.density()*this->problem_().gravity()[dimIdx];
// add a wall friction term to account for a dimensional reduction from 3d to 2d
const auto pos = this->element_().geometry().corner(scvIdx);
const Scalar height = this->problem_().extrusionFactorAtPos(pos);
const Scalar wallFriction = 12*volVars.velocity()[dimIdx]*volVars.dynamicViscosity()/(height*height);
source[momentumXIdx + dimIdx] -= wallFriction;
}
}
......
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