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
fce10396
"README.md" did not exist on "631693ace7b6c366f33ffdb2c532f0b4570c3c42"
Commit
fce10396
authored
9 years ago
by
Dennis Gläser
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Implicit] Adjust CC and Box ElementBoundaryTypes to new structure
parent
ab455103
No related branches found
No related tags found
1 merge request
!617
[WIP] Next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/implicit/box/elementboundarytypes.hh
+18
-12
18 additions, 12 deletions
dumux/implicit/box/elementboundarytypes.hh
dumux/implicit/cellcentered/elementboundarytypes.hh
+17
-13
17 additions, 13 deletions
dumux/implicit/cellcentered/elementboundarytypes.hh
with
35 additions
and
25 deletions
dumux/implicit/box/elementboundarytypes.hh
+
18
−
12
View file @
fce10396
...
...
@@ -75,9 +75,11 @@ public:
* \param problem The problem object which needs to be simulated
* \param element The DUNE Codim<0> entity for which the boundary
* types should be collected
* \param fvGeometry The element's finite volume geometry
*/
void
update
(
const
Problem
&
problem
,
const
Element
&
element
)
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
)
{
int
numVertices
=
element
.
subEntities
(
dim
);
...
...
@@ -87,15 +89,18 @@ public:
hasNeumann_
=
false
;
hasOutflow_
=
false
;
for
(
int
i
=
0
;
i
<
numVertices
;
++
i
)
{
(
*
this
)[
i
].
reset
();
for
(
auto
&&
scv
:
fvGeometry
.
scvs
())
{
int
scvIdxLocal
=
scv
.
indexInElement
();
(
*
this
)[
scvIdxLocal
].
reset
();
if
(
problem
.
model
().
onBoundary
(
element
,
i
))
{
problem
.
boundaryTypes
((
*
this
)[
i
],
element
.
template
subEntity
<
dim
>(
i
));
if
(
problem
.
model
().
onBoundary
(
scv
))
{
(
*
this
)[
scvIdxLocal
]
=
problem
.
boundaryTypes
(
element
,
scv
);
hasDirichlet_
=
hasDirichlet_
||
(
*
this
)[
i
].
hasDirichlet
();
hasNeumann_
=
hasNeumann_
||
(
*
this
)[
i
].
hasNeumann
();
hasOutflow_
=
hasOutflow_
||
(
*
this
)[
i
].
hasOutflow
();
hasDirichlet_
=
hasDirichlet_
||
(
*
this
)[
scvIdxLocal
].
hasDirichlet
();
hasNeumann_
=
hasNeumann_
||
(
*
this
)[
scvIdxLocal
].
hasNeumann
();
hasOutflow_
=
hasOutflow_
||
(
*
this
)[
scvIdxLocal
].
hasOutflow
();
}
}
}
...
...
@@ -106,12 +111,13 @@ public:
* \param problem The problem object which needs to be simulated
* \param element The DUNE Codim<0> entity for which the boundary
* types should be collected
* \param fvGeometry The element's finite volume geometry
*/
void
update
(
const
Problem
&
problem
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
)
{
update
(
problem
,
element
);
}
const
Element
&
element
)
{
const
auto
&
fvGeometry
=
problem
.
model
().
fvGeometries
(
element
);
update
(
problem
,
element
,
fvGeometry
);
}
/*!
* \brief Returns whether the element has a vertex which contains
...
...
This diff is collapsed.
Click to expand it.
dumux/implicit/cellcentered/elementboundarytypes.hh
+
17
−
13
View file @
fce10396
...
...
@@ -76,7 +76,8 @@ public:
* types should be collected
*/
void
update
(
const
Problem
&
problem
,
const
Element
&
element
)
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
)
{
this
->
resize
(
1
);
...
...
@@ -86,26 +87,29 @@ public:
(
*
this
)[
0
].
reset
();
if
(
problem
.
model
().
onBoundary
(
element
))
for
(
auto
&&
scv
:
fvGeometry
.
scvs
(
))
{
for
(
const
auto
&
intersection
:
intersections
(
problem
.
gridView
(),
element
))
if
(
!
problem
.
model
().
onBoundary
(
scv
))
return
;
for
(
const
auto
&&
scvFace
:
fvGeometry
.
scvfs
())
{
if
(
intersection
.
boundary
())
{
problem
.
boundaryTypes
((
*
this
)[
0
],
intersection
);
hasDirichlet_
=
hasDirichlet_
||
(
*
this
)[
0
].
hasDirichlet
();
hasNeumann_
=
hasNeumann
_
||
(
*
this
)[
0
].
has
Neumann
();
hasOutflow_
=
hasOutflow
_
||
(
*
this
)[
0
].
has
Outflow
();
}
if
(
!
scvFace
.
boundary
())
continue
;
(
*
this
)[
0
]
=
problem
.
boundaryTypes
(
element
,
scvFace
);
hasDirichlet_
=
hasDirichlet
_
||
(
*
this
)[
0
].
has
Dirichlet
();
hasNeumann_
=
hasNeumann
_
||
(
*
this
)[
0
].
has
Neumann
();
hasOutflow_
=
hasOutflow_
||
(
*
this
)[
0
].
hasOutflow
();
}
}
}
void
update
(
const
Problem
&
problem
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
)
const
Element
&
element
)
{
const
auto
&
fvGeometry
=
problem
.
model
().
fvGeometries
(
element
);
update
(
problem
,
element
);
}
...
...
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