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
b2ab39d0
Commit
b2ab39d0
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa][localassemblerbase] add function to reconstruct face unknowns
parent
9c58d0cf
No related branches found
No related tags found
1 merge request
!1325
Feature/mpfa-scv-gradient-reconstruction
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
+23
-0
23 additions, 0 deletions
dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
with
23 additions
and
0 deletions
dumux/discretization/cellcentered/mpfa/localassemblerbase.hh
+
23
−
0
View file @
b2ab39d0
...
@@ -138,6 +138,29 @@ class InteractionVolumeAssemblerBase
...
@@ -138,6 +138,29 @@ class InteractionVolumeAssemblerBase
DUNE_THROW
(
Dune
::
NotImplemented
,
"Implementation does not provide a assemble() function for the cell/Dirichlet unknowns"
);
DUNE_THROW
(
Dune
::
NotImplemented
,
"Implementation does not provide a assemble() function for the cell/Dirichlet unknowns"
);
}
}
/*!
* \brief Assembles the vector of face unknowns within an interaction volume.
* \note This requires the data handle to be fully assembled already.
*
* \param handle The data handle in which the vector is stored
* \param iv The interaction volume
*/
template
<
class
DataHandle
,
class
IV
>
static
typename
IV
::
Traits
::
MatVecTraits
::
FaceVector
assembleFaceUnkowns
(
const
DataHandle
&
handle
,
const
IV
&
iv
)
{
typename
IV
::
Traits
::
MatVecTraits
::
FaceVector
u
;
resizeVector_
(
u
,
iv
.
numFaces
());
handle
.
AB
().
mv
(
handle
.
uj
(),
u
);
// maybe add gravity terms
if
(
handle
.
deltaG
().
size
()
==
iv
.
numUnknowns
())
handle
.
AB
().
umv
(
handle
.
deltaG
(),
u
);
return
u
;
}
/*!
/*!
* \brief Assembles the gravitational flux contributions on the scvfs within an
* \brief Assembles the gravitational flux contributions on the scvfs within an
* interaction volume.
* interaction volume.
...
...
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