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
b56ad1ff
Commit
b56ad1ff
authored
3 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[richards] Make analytical robin interface optional
parent
313724a0
No related branches found
Branches containing commit
No related tags found
1 merge request
!2574
Fix/richards analytic storage derivative
Pipeline
#3781
waiting for manual action
Stage: trigger
Stage: downstream modules
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/porousmediumflow/richards/localresidual.hh
+17
-3
17 additions, 3 deletions
dumux/porousmediumflow/richards/localresidual.hh
test/porousmediumflow/richards/lens/problem.hh
+0
-21
0 additions, 21 deletions
test/porousmediumflow/richards/lens/problem.hh
with
17 additions
and
24 deletions
dumux/porousmediumflow/richards/localresidual.hh
+
17
−
3
View file @
b56ad1ff
...
...
@@ -34,6 +34,18 @@
#include
<dumux/discretization/extrusion.hh>
#include
<dumux/flux/referencesystemformulation.hh>
namespace
Dumux
::
Detail
{
// helper structs and functions detecting if the user-defined problem class
// implements addRobinFluxDerivatives
template
<
typename
T
,
typename
...
Ts
>
using
RobinDerivDetector
=
decltype
(
std
::
declval
<
T
>
().
addRobinFluxDerivatives
(
std
::
declval
<
Ts
>
()...));
template
<
class
T
,
typename
...
Args
>
static
constexpr
bool
hasAddRobinFluxDerivatives
()
{
return
Dune
::
Std
::
is_detected
<
RobinDerivDetector
,
T
,
Args
...
>::
value
;
}
}
// end namespace Dumux::Detail
namespace
Dumux
{
/*!
...
...
@@ -486,9 +498,11 @@ public:
const
ElementFluxVariablesCache
&
elemFluxVarsCache
,
const
SubControlVolumeFace
&
scvf
)
const
{
/* forward to problem for the user to implement the Robin derivatives*/
problem
.
addRobinFluxDerivatives
(
derivativeMatrices
,
element
,
fvGeometry
,
curElemVolVars
,
elemFluxVarsCache
,
scvf
);
if
constexpr
(
Detail
::
hasAddRobinFluxDerivatives
<
Problem
,
PartialDerivativeMatrices
,
Element
,
FVElementGeometry
,
ElementVolumeVariables
,
ElementFluxVariablesCache
,
SubControlVolumeFace
>
()
)
problem
.
addRobinFluxDerivatives
(
derivativeMatrices
,
element
,
fvGeometry
,
curElemVolVars
,
elemFluxVarsCache
,
scvf
);
}
private
:
...
...
This diff is collapsed.
Click to expand it.
test/porousmediumflow/richards/lens/problem.hh
+
0
−
21
View file @
b56ad1ff
...
...
@@ -73,8 +73,6 @@ class RichardsLensProblem : public PorousMediumFlowProblem<TypeTag>
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
Indices
=
typename
GetPropType
<
TypeTag
,
Properties
::
ModelTraits
>::
Indices
;
using
GridGeometry
=
GetPropType
<
TypeTag
,
Properties
::
GridGeometry
>
;
using
FVElementGeometry
=
typename
GridGeometry
::
LocalView
;
using
SubControlVolumeFace
=
typename
GridGeometry
::
SubControlVolumeFace
;
enum
{
// copy some indices for convenience
pressureIdx
=
Indices
::
pressureIdx
,
...
...
@@ -194,25 +192,6 @@ public:
// \}
/*!
* \brief Adds Robin flux derivatives for wetting phase. This is needed in case of solution dependent Neumann conditions.
*
* \param derivativeMatrices The matrices containing the derivatives
* \param element The element
* \param fvGeometry The finite volume element geometry
* \param curElemVolVars The current element volume variables
* \param elemFluxVarsCache The element flux variables cache
* \param scvf The sub control volume face
*/
template
<
class
PartialDerivativeMatrices
,
class
ElementVolumeVariables
,
class
ElementFluxVariablesCache
>
void
addRobinFluxDerivatives
(
PartialDerivativeMatrices
&
derivativeMatrices
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
ElementFluxVariablesCache
&
elemFluxVarsCache
,
const
SubControlVolumeFace
&
scvf
)
const
{}
private
:
PrimaryVariables
initial_
(
const
GlobalPosition
&
globalPos
)
const
{
...
...
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