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
3cc88ee5
Commit
3cc88ee5
authored
Nov 24, 2021
by
Bernd Flemisch
Browse files
[test][richards] use new base spatial params in lens test
parent
42d52aea
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/porousmediumflow/richards/lens/problem.hh
View file @
3cc88ee5
...
...
@@ -106,14 +106,6 @@ public:
const
std
::
string
&
name
()
const
{
return
name_
;
}
/*!
* \brief Returns the temperature [K] within a finite volume
*
* This problem assumes a temperature of 10 degrees Celsius.
*/
Scalar
temperature
()
const
{
return
273.15
+
10
;
};
// -> 10°C
/*!
* \brief Returns the reference pressure [Pa] of the nonwetting
* fluid phase within a finite volume
...
...
test/porousmediumflow/richards/lens/spatialparams.hh
View file @
3cc88ee5
...
...
@@ -25,7 +25,7 @@
#ifndef DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
#define DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
#include <dumux/
material/
spatialparams
/fv
.hh>
#include <dumux/
porousmediumflow/fv
spatialparams
mp
.hh>
#include <dumux/material/fluidmatrixinteractions/2p/vangenuchten.hh>
#include <dumux/porousmediumflow/richards/model.hh>
...
...
@@ -38,10 +38,10 @@ namespace Dumux {
*/
template
<
class
GridGeometry
,
class
Scalar
>
class
RichardsLensSpatialParams
:
public
FVSpatialParams
<
GridGeometry
,
Scalar
,
RichardsLensSpatialParams
<
GridGeometry
,
Scalar
>>
:
public
FV
PorousMedium
SpatialParams
MP
<
GridGeometry
,
Scalar
,
RichardsLensSpatialParams
<
GridGeometry
,
Scalar
>>
{
using
ThisType
=
RichardsLensSpatialParams
<
GridGeometry
,
Scalar
>
;
using
ParentType
=
FVSpatialParams
<
GridGeometry
,
Scalar
,
ThisType
>
;
using
ParentType
=
FV
PorousMedium
SpatialParams
MP
<
GridGeometry
,
Scalar
,
ThisType
>
;
using
GridView
=
typename
GridGeometry
::
GridView
;
using
FVElementGeometry
=
typename
GridGeometry
::
LocalView
;
using
SubControlVolume
=
typename
FVElementGeometry
::
SubControlVolume
;
...
...
@@ -117,6 +117,13 @@ public:
return
makeFluidMatrixInteraction
(
pcKrSwCurveOuterDomain_
);
}
/*!
* \brief Returns the temperature [K] at a given location
* \param globalPos The global coordinates for the given location
*/
Scalar
temperatureAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
273.15
+
10.0
;
};
// -> 10°C
private:
bool
isInLens_
(
const
GlobalPosition
&
globalPos
)
const
{
...
...
Write
Preview
Markdown
is supported
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