Skip to content
Snippets Groups Projects
Commit 5fea2eb0 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[kepsilon] Improve switching of k

parent df43c8cb
No related branches found
No related tags found
1 merge request!1040Freeflow/kepsilon wallfunction rebased
...@@ -275,7 +275,9 @@ public: ...@@ -275,7 +275,9 @@ public:
*/ */
const Scalar turbulentKineticEnergyWallFunction(unsigned int elementID) const const Scalar turbulentKineticEnergyWallFunction(unsigned int elementID) const
{ {
return storedTurbulentKineticEnergy_[elementID]; unsigned int wallElementID = asImp_().wallElementID_[elementID];
unsigned int matchingPointID = matchingPointID_[wallElementID];
return storedTurbulentKineticEnergy_[matchingPointID];
} }
//! \brief Returns the nominal wall shear stress (accounts for poor approximation of viscous sublayer) //! \brief Returns the nominal wall shear stress (accounts for poor approximation of viscous sublayer)
......
This diff is collapsed.
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