Commit 7b6f0d11 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[exercise-coupling-ff-pm]{turbulence] Correct boundary values

parent 7e25c256
......@@ -357,7 +357,8 @@ Instead of computing the whole cross-section of a channel, you can use symmetric
values.setAllSymmetry();
```
In addition, you have to remove the condition `onUpperBoundary_(globalPos)` from the `isOnWall(globalPos)` method.
In addition, you have to remove the condition `onUpperBoundary_(globalPos)` from the `isOnWall(globalPos)`
and `initialAtPos(globalPos)` method.
__Task C__:
......
......@@ -276,7 +276,7 @@ public:
values[Indices::velocityXIdx] = refVelocity();
values[Indices::temperatureIdx] = refTemperature();
if(onUpperBoundary_(globalPos))
if(onUpperBoundary_(globalPos) || onLowerBoundary_(globalPos))
values[Indices::velocityXIdx] = 0.0;
return values;
......
......@@ -307,8 +307,13 @@ public:
values[Indices::velocityXIdx] = refVelocity();
values[Indices::temperatureIdx] = refTemperature();
if(onUpperBoundary_(globalPos))
#if EXNUMBER >= 2
if(onLowerBoundary_(globalPos))
values[Indices::velocityXIdx] = 0.0;
#else
if(onUpperBoundary_(globalPos) || onLowerBoundary_(globalPos))
values[Indices::velocityXIdx] = 0.0;
#endif
return values;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment