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
4f0b7e4a
Commit
4f0b7e4a
authored
3 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[staggered][fvGeometry] Add helper functions for corners
parent
cbc6b055
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2830
Test 3D with new staggered freeflow model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/facecentered/staggered/fvelementgeometry.hh
+17
-1
17 additions, 1 deletion
...iscretization/facecentered/staggered/fvelementgeometry.hh
with
17 additions
and
1 deletion
dumux/discretization/facecentered/staggered/fvelementgeometry.hh
+
17
−
1
View file @
4f0b7e4a
...
@@ -197,6 +197,14 @@ public:
...
@@ -197,6 +197,14 @@ public:
const
Element
&
element
()
const
const
Element
&
element
()
const
{
return
*
elementPtr_
;
}
{
return
*
elementPtr_
;
}
//! Returns true if the IP of an scvf lies on a concave corner
bool
scvfIntegrationPointInConcaveCorner
(
const
SubControlVolumeFace
&
scvf
)
const
{
return
GG
::
GeometryHelper
::
scvfIntegrationPointInConcaveCorner
(
*
this
,
scvf
);
}
//! Returns the the scvf of neighbor element with the same integration point and unit outer normal
const
SubControlVolumeFace
&
outsideScvfWithSameIntegrationPoint
(
const
SubControlVolumeFace
&
scvf
)
const
{
return
GG
::
GeometryHelper
::
outsideScvfWithSameIntegrationPoint
(
*
this
,
scvf
);
}
private
:
private
:
const
auto
&
scvfIndices_
()
const
const
auto
&
scvfIndices_
()
const
...
@@ -249,7 +257,7 @@ public:
...
@@ -249,7 +257,7 @@ public:
,
geometryHelper_
(
gridGeometry
.
gridView
())
,
geometryHelper_
(
gridGeometry
.
gridView
())
{}
{}
//! Get a sub control volume face with a lo
c
al scv index
//! Get a sub control volume face with a
g
lo
b
al scv
f
index
const
SubControlVolumeFace
&
scvf
(
const
GridIndexType
scvfIdx
)
const
const
SubControlVolumeFace
&
scvf
(
const
GridIndexType
scvfIdx
)
const
{
return
scvfs_
[
findLocalIndex_
(
scvfIdx
,
scvfIndices_
())];
}
{
return
scvfs_
[
findLocalIndex_
(
scvfIdx
,
scvfIndices_
())];
}
...
@@ -385,6 +393,14 @@ public:
...
@@ -385,6 +393,14 @@ public:
return
*
gridGeometry_
;
return
*
gridGeometry_
;
}
}
//! Returns true if the IP of an scvf lies on a concave corner
bool
scvfIntegrationPointInConcaveCorner
(
const
SubControlVolumeFace
&
scvf
)
const
{
return
GG
::
GeometryHelper
::
scvfIntegrationPointInConcaveCorner
(
*
this
,
scvf
);
}
//! Returns the the scvf of neighbor element with the same integration point and unit outer normal
const
SubControlVolumeFace
&
outsideScvfWithSameIntegrationPoint
(
const
SubControlVolumeFace
&
scvf
)
const
{
return
GG
::
GeometryHelper
::
outsideScvfWithSameIntegrationPoint
(
*
this
,
scvf
);
}
private
:
private
:
//! Binding of an element preparing the geometries of the whole stencil
//! Binding of an element preparing the geometries of the whole stencil
//! called by the local jacobian to prepare element assembly
//! called by the local jacobian to prepare element assembly
...
...
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