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
a48c93fd
Commit
a48c93fd
authored
Nov 24, 2021
by
Bernd Flemisch
Browse files
[test][porousmediumflow][richardsnc] use new base spatial params
parent
91dae18d
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/porousmediumflow/richardsnc/problem.hh
View file @
a48c93fd
...
...
@@ -156,14 +156,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/richardsnc/spatialparams.hh
View file @
a48c93fd
...
...
@@ -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>
...
...
@@ -39,12 +39,12 @@ namespace Dumux {
*/
template
<
class
GridGeometry
,
class
Scalar
>
class
RichardsWellTracerSpatialParams
:
public
FVSpatialParams
<
GridGeometry
,
Scalar
,
RichardsWellTracerSpatialParams
<
GridGeometry
,
Scalar
>>
:
public
FV
PorousMedium
SpatialParams
MP
<
GridGeometry
,
Scalar
,
RichardsWellTracerSpatialParams
<
GridGeometry
,
Scalar
>>
{
using
GridView
=
typename
GridGeometry
::
GridView
;
using
ParentType
=
FVSpatialParams
<
GridGeometry
,
Scalar
,
RichardsWellTracerSpatialParams
<
GridGeometry
,
Scalar
>>
;
using
ParentType
=
FV
PorousMedium
SpatialParams
MP
<
GridGeometry
,
Scalar
,
RichardsWellTracerSpatialParams
<
GridGeometry
,
Scalar
>>
;
enum
{
dimWorld
=
GridView
::
dimensionworld
};
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
...
...
@@ -105,6 +105,14 @@ public:
return
makeFluidMatrixInteraction
(
outerPcKrSwCurve_
);
}
/*!
* \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