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
f1d77760
Commit
f1d77760
authored
3 years ago
by
Timo Koch
Committed by
Dennis Gläser
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[navierstokes] Add outflow to Navier-Stokes boundary types
parent
9d20466a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2552
Remove general outflow bc type
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/freeflow/navierstokes/boundarytypes.hh
+29
-0
29 additions, 0 deletions
dumux/freeflow/navierstokes/boundarytypes.hh
with
29 additions
and
0 deletions
dumux/freeflow/navierstokes/boundarytypes.hh
+
29
−
0
View file @
f1d77760
...
...
@@ -54,6 +54,7 @@ public:
boundaryInfo_
[
eqIdx
].
isSymmetry
=
false
;
boundaryInfo_
[
eqIdx
].
isBeaversJoseph
=
false
;
boundaryInfo_
[
eqIdx
].
isOutflow
=
false
;
}
/*!
...
...
@@ -123,11 +124,39 @@ public:
return
false
;
}
/*!
* \brief Set an outflow boundary condition
*/
void
setOutflow
(
const
int
eqIdx
)
{
resetEq
(
eqIdx
);
boundaryInfo_
[
eqIdx
].
isOutflow
=
true
;
}
/*!
* \brief Returns true if an outflow boundary condition was set
* \param eqIdx The index of the equation
*/
bool
isOutflow
(
const
int
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isOutflow
;
}
/*!
* \brief Returns true if some equation has an outflow boundary condition
*/
bool
hasOutflow
()
const
{
for
(
int
i
=
0
;
i
<
numEq
;
++
i
)
if
(
boundaryInfo_
[
i
].
isOutflow
)
return
true
;
return
false
;
}
protected
:
//! use bitfields to minimize the size
struct
NavierStokesBoundaryInfo
{
bool
isSymmetry
:
1
;
bool
isOutflow
:
1
;
bool
isBeaversJoseph
:
1
;
};
...
...
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