Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
b8b3329f
Commit
b8b3329f
authored
Nov 22, 2018
by
Dennis Gläser
Browse files
[mpfa][helper] rename getScvfArea() -> computeScvfArea()
parent
c4436d02
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/mpfa/helper.hh
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
();
...
...
dumux/discretization/cellcentered/mpfa/subcontrolvolumeface.hh
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment