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
9df7f08c
Commit
9df7f08c
authored
5 years ago
by
Kilian Weishaupt
Committed by
Ned Coltman
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggered][freeflow] Replace isBJS with isBeaversJoseph and deprecate old interface
parent
fea3993e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1833
Feature/improve beavers joseph
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/staggered/freeflow/boundarytypes.hh
+34
-10
34 additions, 10 deletions
dumux/discretization/staggered/freeflow/boundarytypes.hh
with
34 additions
and
10 deletions
dumux/discretization/staggered/freeflow/boundarytypes.hh
+
34
−
10
View file @
9df7f08c
...
...
@@ -31,7 +31,7 @@ namespace Dumux {
/*!
* \ingroup StaggeredDiscretization
* \brief Class to specify the type of a boundary for the staggered Navier-Stokes model.
* \brief Class to specify the type of a boundary
condition
for the staggered Navier-Stokes model.
*/
template
<
int
numEq
>
class
StaggeredFreeFlowBoundaryTypes
:
public
Dumux
::
BoundaryTypes
<
numEq
>
...
...
@@ -41,7 +41,6 @@ class StaggeredFreeFlowBoundaryTypes : public Dumux::BoundaryTypes<numEq>
public:
StaggeredFreeFlowBoundaryTypes
()
{
for
(
int
eqIdx
=
0
;
eqIdx
<
numEq
;
++
eqIdx
)
resetEq
(
eqIdx
);
}
...
...
@@ -55,7 +54,7 @@ public:
boundaryInfo_
[
eqIdx
].
visited
=
false
;
boundaryInfo_
[
eqIdx
].
isSymmetry
=
false
;
boundaryInfo_
[
eqIdx
].
isB
JS
=
false
;
boundaryInfo_
[
eqIdx
].
isB
eaversJoseph
=
false
;
}
/*!
...
...
@@ -99,11 +98,19 @@ public:
* \brief Set a boundary condition for a single equation to
* Beavers-Joseph-Saffman (special case of Dirichlet b.c.).
*/
[[
deprecated
(
"Use setBeaversJoseph instead. Will be removed after 3.2"
)]]
void
setBJS
(
int
eqIdx
)
{
setBeaversJoseph
(
eqIdx
);
}
/*!
* \brief Set a boundary condition for a single equation to
* Beavers-Joseph(-Saffmann) (special case of Dirichlet b.c.).
*/
void
setBeaversJoseph
(
unsigned
eqIdx
)
{
resetEq
(
eqIdx
);
boundaryInfo_
[
eqIdx
].
visited
=
true
;
boundaryInfo_
[
eqIdx
].
isB
JS
=
true
;
boundaryInfo_
[
eqIdx
].
isB
eaversJoseph
=
true
;
}
/*!
...
...
@@ -112,28 +119,45 @@ public:
*
* \param eqIdx The index of the equation
*/
[[
deprecated
(
"Use isBeaversJoseph instead. Will be removed after 3.2"
)]]
bool
isBJS
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isBJS
;
}
{
return
isBeaversJoseph
(
eqIdx
);
}
/*!
* \brief Returns true if an equation is used to specify a
* Beavers-Joseph(-Saffman) boundary condition.
*
* \param eqIdx The index of the equation
*/
bool
isBeaversJoseph
(
unsigned
eqIdx
)
const
{
return
boundaryInfo_
[
eqIdx
].
isBeaversJoseph
;
}
/*!
* \brief Returns true if some equation is used to specify a
* Beavers-Joseph-Saffman boundary condition.
*/
[[
deprecated
(
"Use hasBeaversJoseph instead. Will be removed after 3.2"
)]]
bool
hasBJS
()
const
{
return
hasBeaversJoseph
();
}
/*!
* \brief Returns true if some equation is used to specify a
* Beavers-Joseph(-Saffman) boundary condition.
*/
bool
hasBeaversJoseph
()
const
{
for
(
int
i
=
0
;
i
<
numEq
;
++
i
)
if
(
boundaryInfo_
[
i
].
isB
JS
)
if
(
boundaryInfo_
[
i
].
isB
eaversJoseph
)
return
true
;
return
false
;
}
protected
:
struct
StaggeredFreeFlowBoundaryInfo
{
struct
StaggeredFreeFlowBoundaryInfo
{
bool
visited
;
bool
isSymmetry
;
bool
isB
JS
;
bool
isB
eaversJoseph
;
};
std
::
array
<
StaggeredFreeFlowBoundaryInfo
,
numEq
>
boundaryInfo_
;
...
...
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