Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
863d1d84
Commit
863d1d84
authored
6 years ago
by
Thomas Fetzer
Browse files
Options
Downloads
Patches
Plain Diff
[rans] Catch not using or wrongl using the mandatory function for the RANS model
parent
b8e5ebbe
No related branches found
No related tags found
1 merge request
!1101
[rans] Catch not using or wrongl using the mandatory function for the RANS model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/freeflow/rans/problem.hh
+9
-0
9 additions, 0 deletions
dumux/freeflow/rans/problem.hh
with
9 additions
and
0 deletions
dumux/freeflow/rans/problem.hh
+
9
−
0
View file @
863d1d84
...
...
@@ -89,6 +89,7 @@ public:
{
using
std
::
abs
;
std
::
cout
<<
"Update static wall properties. "
;
calledUpdateStaticWallProperties
=
true
;
// update size and initial values of the global vectors
wallElementID_
.
resize
(
this
->
fvGridGeometry
().
elementMapper
().
size
());
...
...
@@ -132,6 +133,10 @@ public:
}
}
std
::
cout
<<
"NumWallIntersections="
<<
wallPositions
.
size
()
<<
std
::
endl
;
if
(
wallPositions
.
size
()
==
0
)
DUNE_THROW
(
Dune
::
InvalidStateException
,
"No wall intersections have been found. Make sure that the isOnWall(globalPos) is working properly."
);
// search for shortest distance to wall for each element
for
(
const
auto
&
element
:
elements
(
gridView
))
...
...
@@ -214,6 +219,9 @@ public:
using
std
::
max
;
using
std
::
min
;
std
::
cout
<<
"Update dynamic wall properties."
<<
std
::
endl
;
if
(
!
calledUpdateStaticWallProperties
)
DUNE_THROW
(
Dune
::
InvalidStateException
,
"You have to call updateStaticWallProperties() once before you call updateDynamicWallProperties()."
);
static
const
int
flowNormalAxis
=
getParamFromGroup
<
int
>
(
this
->
paramGroup
(),
"RANS.FlowNormalAxis"
,
-
1
);
...
...
@@ -413,6 +421,7 @@ public:
}
public
:
bool
calledUpdateStaticWallProperties
=
false
;
std
::
vector
<
unsigned
int
>
wallElementID_
;
std
::
vector
<
Scalar
>
wallDistance_
;
std
::
vector
<
std
::
array
<
std
::
array
<
unsigned
int
,
2
>
,
dim
>>
neighborID_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment