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
b8b3329f
Commit
b8b3329f
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa][helper] rename getScvfArea() -> computeScvfArea()
parent
c4436d02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1325
Feature/mpfa-scv-gradient-reconstruction
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/cellcentered/mpfa/helper.hh
+2
-4
2 additions, 4 deletions
dumux/discretization/cellcentered/mpfa/helper.hh
dumux/discretization/cellcentered/mpfa/subcontrolvolumeface.hh
+1
-1
1 addition, 1 deletion
.../discretization/cellcentered/mpfa/subcontrolvolumeface.hh
with
3 additions
and
5 deletions
dumux/discretization/cellcentered/mpfa/helper.hh
+
2
−
4
View file @
b8b3329f
...
...
@@ -176,11 +176,9 @@ public:
* \brief Calculates the area of an scvf.
* \param scvfCorners Container with the corners of the scvf
*/
static
CoordScalar
get
ScvfArea
(
const
ScvfCornerVector
&
scvfCorners
)
static
CoordScalar
compute
ScvfArea
(
const
ScvfCornerVector
&
scvfCorners
)
{
return
(
scvfCorners
[
1
]
-
scvfCorners
[
0
]).
two_norm
();
}
/*!
* \brief Calculates the number of scvfs in a given element geometry type.
* \param gt The element geometry type
...
...
@@ -470,7 +468,7 @@ public:
* \brief Calculates the area of an scvf.
* \param scvfCorners Container with the corners of the scvf
*/
static
CoordScalar
get
ScvfArea
(
const
ScvfCornerVector
&
scvfCorners
)
static
CoordScalar
compute
ScvfArea
(
const
ScvfCornerVector
&
scvfCorners
)
{
// after Wolfram alpha quadrilateral area
return
0.5
*
Dumux
::
crossProduct
(
scvfCorners
[
3
]
-
scvfCorners
[
0
],
scvfCorners
[
2
]
-
scvfCorners
[
1
]).
two_norm
();
...
...
This diff is collapsed.
Click to expand it.
dumux/discretization/cellcentered/mpfa/subcontrolvolumeface.hh
+
1
−
1
View file @
b8b3329f
...
...
@@ -145,7 +145,7 @@ public:
// use helper class to obtain area & integration point
ipGlobal_
=
helper
.
getScvfIntegrationPoint
(
corners_
,
q
);
area_
=
helper
.
get
ScvfArea
(
corners_
);
area_
=
helper
.
compute
ScvfArea
(
corners_
);
}
//! The area of the sub control volume face
...
...
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