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
e268c88a
Commit
e268c88a
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[boxdfm] fix compiler error from periodic bcs
parent
b3a67910
No related branches found
No related tags found
2 merge requests
!1269
[1pncmin tests changed]
,
!1233
Fix/periodic boundaries
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/porousmediumflow/boxdfm/fvgridgeometry.hh
+30
-2
30 additions, 2 deletions
dumux/porousmediumflow/boxdfm/fvgridgeometry.hh
with
30 additions
and
2 deletions
dumux/porousmediumflow/boxdfm/fvgridgeometry.hh
+
30
−
2
View file @
e268c88a
...
...
@@ -238,7 +238,7 @@ public:
referenceElement
.
subEntity
(
idxInInside
,
1
,
vIdxLocal
,
dim
),
dim
);
// maybe add boundary scvf
if
(
intersection
.
boundary
())
if
(
intersection
.
boundary
()
&&
!
intersection
.
neighbor
()
)
{
numScvf_
+=
isGeometry
.
corners
();
numBoundaryScvf_
+=
isGeometry
.
corners
();
...
...
@@ -266,6 +266,9 @@ public:
boundaryDofIndices_
[
vIdxGlobal
]
=
true
;
}
}
// make sure we have no periodic boundaries
else
if
(
intersection
.
boundary
()
&&
intersection
.
neighbor
())
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Periodic boundaries are not supported by the box-dfm scheme"
);
// maybe add fracture scvs & scvfs
if
(
fractureGridAdapter
.
composeFacetElement
(
isVertexIndices
))
...
...
@@ -351,6 +354,16 @@ public:
bool
dofOnBoundary
(
unsigned
int
dofIdx
)
const
{
return
boundaryDofIndices_
[
dofIdx
];
}
//! If a vertex / d.o.f. is on a fracture
bool
dofOnFracture
(
unsigned
int
dofIdx
)
const
{
return
fractureDofIndices_
[
dofIdx
];
}
//! Periodic boundaries are not supported for the box-dfm scheme
bool
dofOnPeriodicBoundary
(
std
::
size_t
dofIdx
)
const
{
return
false
;
}
//! The index of the vertex / d.o.f. on the other side of the periodic boundary
std
::
size_t
periodicallyMappedDof
(
std
::
size_t
dofIdx
)
const
{
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Periodic boundaries are not supported by the box-dfm scheme"
);
}
//! Returns the map between dofs across periodic boundaries
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>
periodicVertexMap
()
const
{
return
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>
();
}
private
:
const
FeCache
feCache_
;
...
...
@@ -475,7 +488,7 @@ public:
referenceElement
.
subEntity
(
idxInInside
,
1
,
vIdxLocal
,
dim
),
dim
);
if
(
intersection
.
boundary
())
if
(
intersection
.
boundary
()
&&
!
intersection
.
neighbor
()
)
{
numScvf_
+=
numCorners
;
numBoundaryScvf_
+=
numCorners
;
...
...
@@ -492,6 +505,10 @@ public:
}
}
// make sure we have no periodic boundaries
else
if
(
intersection
.
boundary
()
&&
intersection
.
neighbor
())
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Periodic boundaries are not supported by the box-dfm scheme"
);
// maybe add fracture scvs & scvfs
if
(
fractureGridAdapter
.
composeFacetElement
(
isVertexIndices
))
{
...
...
@@ -513,10 +530,21 @@ public:
bool
dofOnBoundary
(
unsigned
int
dofIdx
)
const
{
return
boundaryDofIndices_
[
dofIdx
];
}
//! If a vertex / d.o.f. is on a fracture
bool
dofOnFracture
(
unsigned
int
dofIdx
)
const
{
return
fractureDofIndices_
[
dofIdx
];
}
//! Periodic boundaries are not supported for the box-dfm scheme
bool
dofOnPeriodicBoundary
(
std
::
size_t
dofIdx
)
const
{
return
false
;
}
//! Returns true if an intersection coincides with a fracture element
bool
isOnFracture
(
const
Element
&
element
,
const
Intersection
&
intersection
)
const
{
return
facetOnFracture_
[
facetMapper_
.
subIndex
(
element
,
intersection
.
indexInInside
(),
1
)];
}
//! The index of the vertex / d.o.f. on the other side of the periodic boundary
std
::
size_t
periodicallyMappedDof
(
std
::
size_t
dofIdx
)
const
{
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Periodic boundaries are not supported by the box-dfm scheme"
);
}
//! Returns the map between dofs across periodic boundaries
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>
periodicVertexMap
()
const
{
return
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>
();
}
private
:
const
FeCache
feCache_
;
...
...
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