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
7bf9a096
Commit
7bf9a096
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa][ivdatahandle] add AB matrix to members
parent
9abe4824
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1337
WIP Fix/dirichlet caching v2
,
!1298
Restructure mpfa flux caches
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh
+17
-1
17 additions, 1 deletion
...tization/cellcentered/mpfa/interactionvolumedatahandle.hh
with
17 additions
and
1 deletion
dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh
+
17
−
1
View file @
7bf9a096
...
...
@@ -38,7 +38,18 @@ namespace Detail {
* \ingroup CCMpfaDiscretization
* \brief Common base class to all handles. Stores arrays of the
* matrices involved in the interaction volume-local systems
* of equations.
* of equations. Apart from the transmissibility matrix we
* store those matrices that are needed e.g. for later face
* pressure reconstruction.
* The fluxes as well as the local systems of equations can
* be expressed as functions of the intermediate unknown face
* face values \f$\bar{\mathbf{u}}\f$ and the known cell/Dirichlet
* values \f$\mathbf{u}\f$ using the matrices \f$\mathbf{A}\f$,
* \f$\mathbf{B}\f$, \f$\mathbf{C}\f$, \f$\mathbf{D}\f$ and the
* vector of Neumann fluxes \f$\mathbf{N}\f$ as follows:
*
* Fluxes: \f$\mathbf{f} = \mathbf{C}\bar{\mathbf{u}} + \mathbf{D}\mathbf{u}\f$
* Local eq system: \f$\mathbf{A}\bar{\mathbf{u}} = \mathbf{B}\mathbf{u} + \mathbf{N}\f$
*
* \tparam MVT The matrix/vector traits collecting type information used by the iv
* \tparam size1 first size specifier for the arrays
...
...
@@ -48,6 +59,7 @@ template<class MVT, int size1, int size2>
class
MatrixDataHandleBase
{
using
AMatrix
=
typename
MVT
::
AMatrix
;
using
BMatrix
=
typename
MVT
::
BMatrix
;
using
CMatrix
=
typename
MVT
::
CMatrix
;
using
TMatrix
=
typename
MVT
::
TMatrix
;
using
CellVector
=
typename
MVT
::
CellVector
;
...
...
@@ -61,6 +73,9 @@ public:
const
AMatrix
&
A
()
const
{
return
A_
[
contextIdx1_
][
contextIdx2_
];
}
AMatrix
&
A
()
{
return
A_
[
contextIdx1_
][
contextIdx2_
];
}
const
BMatrix
&
AB
()
const
{
return
AB_
[
contextIdx1_
][
contextIdx2_
];
}
BMatrix
&
AB
()
{
return
AB_
[
contextIdx1_
][
contextIdx2_
];
}
const
TMatrix
&
T
()
const
{
return
T_
[
contextIdx1_
][
contextIdx2_
];
}
TMatrix
&
T
()
{
return
T_
[
contextIdx1_
][
contextIdx2_
];
}
...
...
@@ -78,6 +93,7 @@ protected:
std
::
array
<
std
::
array
<
TMatrix
,
size2
>
,
size1
>
T_
;
//!< The transmissibility matrix
std
::
array
<
std
::
array
<
AMatrix
,
size2
>
,
size1
>
A_
;
//!< Inverse of the iv-local system matrix
std
::
array
<
std
::
array
<
CMatrix
,
size2
>
,
size1
>
AB_
;
//!< A_ left multiplied to B
std
::
array
<
std
::
array
<
CMatrix
,
size2
>
,
size1
>
CA_
;
//!< A_ right multiplied to C
std
::
array
<
std
::
array
<
OutsideTij
,
size2
>
,
size1
>
tijOutside_
;
//!< The transmissibilities for "outside" faces (on surface grids)
};
...
...
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