Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux-course
Commits
7b6f0d11
Commit
7b6f0d11
authored
Jul 19, 2018
by
Thomas Fetzer
Browse files
[exercise-coupling-ff-pm]{turbulence] Correct boundary values
parent
7e25c256
Changes
3
Hide whitespace changes
Inline
Side-by-side
exercises/exercise-coupling-ff-pm/README.md
View file @
7b6f0d11
...
...
@@ -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__
:
...
...
exercises/exercise-coupling-ff-pm/turbulence/ex_turbulence_ffproblem.hh
View file @
7b6f0d11
...
...
@@ -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
;
...
...
exercises/solution/exercise-coupling-ff-pm/turbulence/ex_turbulence_ffproblem.hh
View file @
7b6f0d11
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment